From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Hongyi Zhao 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-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_40, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URI_DOTEDU autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 07 Apr 2022 01:59:54 -0000 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