From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6gsgC7RFTmJmTwAAWB0awg (envelope-from ) for ; Wed, 06 Apr 2022 22:00:20 -0400 Received: by simark.ca (Postfix, from userid 112) id 1416E1F344; Wed, 6 Apr 2022 22:00:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 795961ED17 for ; Wed, 6 Apr 2022 22:00:19 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 265E4385781A for ; Thu, 7 Apr 2022 02:00:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 265E4385781A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649296819; bh=rj9iDGzxzqS59UsXpUzMwrQBkjHIAA/R9tUrDUCOGyw=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Ro6CEmYnV2Edcbh5MJXwHBtQ+YPV8eabcqEEYkSATAbqS4lzneiGdE11ZIM5mBlT1 5c/t59LgdzA2iTi70skMjBc2aEo1Ef6tU0MQzJhhmAWRBOKCxxeqUKOfF2gU6PCF7S tZYJMbxLB6Pd2jAHG+QkaUuKpsLXk3T0IIlBhRXs= Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 0A2543858D37 for ; Thu, 7 Apr 2022 01:59:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0A2543858D37 Received: by mail-ej1-x630.google.com with SMTP id l26so7913124ejx.1 for ; Wed, 06 Apr 2022 18:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rj9iDGzxzqS59UsXpUzMwrQBkjHIAA/R9tUrDUCOGyw=; b=jaugx1MTxPLklX8lovGgKt/e2STz+Zx2SPKJUbeu8onTPBdILFymlAE3WDUwRTRwij Z02/fV4lWNhPpaR5WeNyJdd6tiI+wvfGXwwZEjQXKORIj4/aEv4ji7RmZQf+y+/Gt2Pz sQTrJ6+iqiwHawj654yGECqh7TcqPX78ydfqGYrYRhqikV/mPqiBfPU8eHtVoe5fscfB AinHy1LL/WX1EBe5g+8EkFuCpGq/AZeQJ0YvP13K1tJfQm+uTwo52JZ8epijXUaEctbe j+uA+qpf7BeF/5BiRCSWKrHP+zxw51fdjWhhDm7nCBdPFMBx7ZdX2L8ZJKg2A6l6AXdK uTEA== X-Gm-Message-State: AOAM530iBPOQqrSC7ShsscjgzHy6gIVZVheNCoIQaqKJeR+3l8zEa7BF MVWRjS1HRXvmwgmgxoMtSUlj1eoy111Fgd2+I68B8z4h8gTFpg== X-Google-Smtp-Source: ABdhPJzQXJ9s3u3JyX/hP23+4855xXQ62fbKy4oREJvKaeS7U4VQJxoTqfgBsn1MnUTPhngU/1u/16CG+n5+BhVafPc= X-Received: by 2002:a17:906:9c84:b0:6e0:7c75:6f01 with SMTP id fj4-20020a1709069c8400b006e07c756f01mr10877872ejc.103.1649296790248; Wed, 06 Apr 2022 18:59:50 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 7 Apr 2022 09:59:39 +0800 Message-ID: Subject: The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated. To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hongyi Zhao via Gdb Reply-To: Hongyi Zhao Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" I've noticed the "An Introduction to GDB in Emacs" here [1]. The above introduction says the following: ``` Set a breakpoint by going to the source line of the program you're debugging, and typing: C-x [space] (That's the space bar.) GDB will tell you that you've just set a breakpoint. ``` But I noticed the following key binding by running `C-h k C-x [space] RET` on my machine: ``` rectangle-mark-mode is an autoloaded, interactive and compiled function defined in rect.el.gz. Signature (rectangle-mark-mode &optional ARG) Documentation Toggle the region as rectangular. This is a minor mode. If called interactively, toggle the Rectangle-Mark mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate rectangle-mark-mode. The mode's hook is called both when the mode is enabled and when it is disabled. Activates the region if needed. Only lasts until the region is deactivated. View in manual Key Bindings ctl-x-map SPC global-map C-x SPC ``` [1] https://courses.cs.washington.edu/courses/cse378/97au/help/gdb-emacs.html Regards, -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province