GNU bug report logs - #50030
C-M-SPC is not working

Previous Next

Package: emacs;

Reported by: Pedro Delfino <p.delfino01 <at> gmail.com>

Date: Thu, 12 Aug 2021 18:03:02 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50030 in the body.
You can then email your comments to 50030 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Thu, 12 Aug 2021 18:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pedro Delfino <p.delfino01 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 12 Aug 2021 18:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pedro Delfino <p.delfino01 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: C-M-SPC is not working
Date: Thu, 12 Aug 2021 14:25:10 -0300
[Message part 1 (text/plain, inline)]
Hi,

I have been using mark-sexp often because I am working with Common Lisp.
Until now, the binding C-M-SPC has worked out pretty well.

For some reason that I do not understand, the binding has changed. Now,
emacs says mark-sexp is bounded to C-M-@ (which does not really work using
the keyboard, by the way).

This is my humble config file
<https://github.com/pdelfino/my-emacs-config/blob/main/.emacs>. I am not
sure why this has happened. As you see, I have not touched on this specific
point.

I can only use mark-sexp with the `M-x mark-sexp` which is not very handy.
I wish the keybinding worked out.

Is this some side-effect from another modification? Why did this happen?
And how can I fix it?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Recipe using "emacs -Q"

1 - Create an emacs lisp file, could be .emacs;

2 - Insert any valid s-expression, could be
(load (expand-file-name "~/.quicklisp/slime-helper.el"))

3 - Put the cursor -!- in the beginning of the s-expression
-!-(load (expand-file-name "~/.quicklisp/slime-helper.el"))

4 - Try using `C-M-SPC` or `C-M-@` to achieve mark-sexp. It does NOT work
(and it should work).

5 - Press M-x and execute `mark-sexp` it DOES work. Thus, all the
s-expression is selected.




;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Information automatically extracted:

In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
 of 2020-03-26, modified by Debian built on lcy01-amd64-020
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description:    Ubuntu 20.04.2 LTS

Recent messages:
<left> is undefined
<up> is undefined
Mark set
Saved text until "dhardt")
       (:li "18 anonymous")))))"
Mark set
Indenting region...done
Undo!
Type C-x 1 to delete the help window, C-M-v to scroll help.


Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --enable-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --build
 x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
 --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs-mEZBk7/emacs-26.3+1=.
-fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LC_CTYPE: pt_BR.UTF-8
  value of $LC_MONETARY: pt_BR.UTF-8
  value of $LC_NUMERIC: pt_BR.UTF-8
  value of $LC_TIME: pt_BR.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  helm--remap-mouse-mode: t
  async-bytecomp-package-mode: t
  diff-auto-refine-mode: t
  paredit-mode: t
  rainbow-delimiters-mode: t
  delete-selection-mode: t
  global-wakatime-mode: t
  wakatime-mode: t
  disable-mouse-global-mode: t
  ido-everywhere: t
  show-paren-mode: t
  slime-trace-dialog-minor-mode: t
  slime-autodoc-mode: t
  slime-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  transient-mark-mode: t

Load-path shadows:
~/.emacs.d/elpa/slime-20210512.1220/slime-tests hides
/home/pedro/.quicklisp/dists/quicklisp/software/slime-v2.26.1/slime-tests
~/.emacs.d/elpa/slime-20210512.1220/slime-autoloads hides
/home/pedro/.quicklisp/dists/quicklisp/software/slime-v2.26.1/slime-autoloads
~/.emacs.d/elpa/slime-20210512.1220/slime hides
/home/pedro/.quicklisp/dists/quicklisp/software/slime-v2.26.1/slime

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
eieio-opt speedbar sb-image ezimage dframe find-func help-fns radix-tree
winner helm-command helm-elisp helm-eval edebug helm-info helm-mode
helm-files filenotify tramp tramp-compat tramp-loaddefs trampver
ucs-normalize shell pcomplete parse-time helm-buffers helm-occur
helm-tags helm-locate helm-grep helm-regexp format-spec helm-utils
helm-types helm-help helm async-bytecomp helm-global-bindings
helm-easymenu helm-source helm-multi-match helm-lib async vc-git
diff-mode map cus-edit wid-edit paredit rainbow-delimiters delsel
centeredpoint wakatime-mode disable-mouse wombat-theme wheatgrass-theme
ido cus-start cus-load paren slime-sbcl-exts slime-asdf grep slime-fancy
slime-indentation slime-cl-indent cl-indent slime-trace-dialog
slime-fontifying-fu slime-package-fu slime-references
slime-compiler-notes-tree slime-scratch slime-presentations advice
bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context
slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c
slime-editing-commands slime-autodoc slime-repl elp slime-parse slime
derived cl-extra help-mode edmacro kmacro elec-pair lisp-mnt gud apropos
compile etags xref project arc-mode archive-mode noutline outline
easy-mmode pp comint ansi-color ring hyperspec thingatpt browse-url cl
finder-inf slime-autoloads info package easymenu epg-config url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 586759 22158)
 (symbols 48 41619 4)
 (miscs 40 1760 174)
 (strings 32 125152 3746)
 (string-bytes 1 3499967)
 (vectors 16 59198)
 (vector-slots 8 1067848 18426)
 (floats 8 143 476)
 (intervals 56 2144 0)
 (buffers 992 16))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Thu, 12 Aug 2021 18:16:02 GMT) Full text and rfc822 format available.

Message #8 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pedro Delfino <p.delfino01 <at> gmail.com>
Cc: 50030 <at> debbugs.gnu.org
Subject: Re: bug#50030: C-M-SPC is not working
Date: Thu, 12 Aug 2021 21:15:24 +0300
> From: Pedro Delfino <p.delfino01 <at> gmail.com>
> Date: Thu, 12 Aug 2021 14:25:10 -0300
> 
> 1 - Create an emacs lisp file, could be .emacs;
> 
> 2 - Insert any valid s-expression, could be 
> (load (expand-file-name "~/.quicklisp/slime-helper.el"))
> 
> 3 - Put the cursor -!- in the beginning of the s-expression
> -!-(load (expand-file-name "~/.quicklisp/slime-helper.el"))
> 
> 4 - Try using `C-M-SPC` or `C-M-@` to achieve mark-sexp. It does NOT work (and it should work).

I cannot reproduce this in Emacs 26.3.  If, after step 4, you type
"C-h l" (that's the letter ell, not the digit one), what do you see?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Thu, 12 Aug 2021 22:02:01 GMT) Full text and rfc822 format available.

Message #11 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Pedro Delfino <p.delfino01 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50030 <at> debbugs.gnu.org
Subject: Re: bug#50030: C-M-SPC is not working
Date: Thu, 12 Aug 2021 18:34:26 -0300
[Message part 1 (text/plain, inline)]
Thanks for trying to help.



On Thu, Aug 12, 2021 at 3:15 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> "C-h l" (that's the letter ell, not the digit one), what do you see?

Please, see the screenshot attached.

Not sure if this is related, but I switched the control key with the
caps lock key in my Ubuntu. You can how I did it here:

https://askubuntu.com/questions/1353423/why-setxkbmap-in-bashrc-is-intermittently-working-why-it-takes-awhile-to-load
[Screenshot from 2021-08-12 18-31-33.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Fri, 13 Aug 2021 06:35:02 GMT) Full text and rfc822 format available.

Message #14 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pedro Delfino <p.delfino01 <at> gmail.com>
Cc: 50030 <at> debbugs.gnu.org
Subject: Re: bug#50030: C-M-SPC is not working
Date: Fri, 13 Aug 2021 09:33:55 +0300
> From: Pedro Delfino <p.delfino01 <at> gmail.com>
> Date: Thu, 12 Aug 2021 18:34:26 -0300
> Cc: 50030 <at> debbugs.gnu.org
> 
> On Thu, Aug 12, 2021 at 3:15 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> > "C-h l" (that's the letter ell, not the digit one), what do you see?
> 
> Please, see the screenshot attached.

I see no C-M-SPC or C-M-@ anywhere in sight (assuming you show all of
the relevant parts of the *Help* buffer).  Which probably means Emacs
didn't receive those keys, and that explains why it doesn't work for
you.

So I think this is indeed something with your keyboard configuration.

> Not sure if this is related, but I switched the control key with the
> caps lock key in my Ubuntu.

If you undo that swapping, does the problem go away?




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 14 Aug 2021 23:52:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Sun, 29 Aug 2021 20:25:01 GMT) Full text and rfc822 format available.

Message #19 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50030 <at> debbugs.gnu.org, Pedro Delfino <p.delfino01 <at> gmail.com>
Subject: Re: bug#50030: C-M-SPC is not working
Date: Sun, 29 Aug 2021 22:24:32 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> I see no C-M-SPC or C-M-@ anywhere in sight (assuming you show all of
> the relevant parts of the *Help* buffer).  Which probably means Emacs
> didn't receive those keys, and that explains why it doesn't work for
> you.
>
> So I think this is indeed something with your keyboard configuration.
>
>> Not sure if this is related, but I switched the control key with the
>> caps lock key in my Ubuntu.
>
> If you undo that swapping, does the problem go away?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 50030 <at> debbugs.gnu.org and Pedro Delfino <p.delfino01 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 29 Aug 2021 20:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Sun, 29 Aug 2021 20:27:01 GMT) Full text and rfc822 format available.

Message #24 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50030 <at> debbugs.gnu.org, Pedro Delfino <p.delfino01 <at> gmail.com>
Subject: Re: bug#50030: C-M-SPC is not working
Date: Sun, 29 Aug 2021 22:26:00 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> More information was requested, but no response was given within a
> month, so I'm closing this bug report. 

(Oops; that was premature -- it's actually only been two weeks.  Had
sorted the debbugs in the wrong order.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50030; Package emacs. (Mon, 30 Aug 2021 19:53:02 GMT) Full text and rfc822 format available.

Message #27 received at 50030 <at> debbugs.gnu.org (full text, mbox):

From: Pedro Delfino <p.delfino01 <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 50030 <at> debbugs.gnu.org
Subject: Re: bug#50030: C-M-SPC is not working
Date: Mon, 30 Aug 2021 16:51:26 -0300
Hi guys,

Sorry for taking so long to answer.  Thanks for the help!

You guys asked:

If you undo that swapping, does the problem go away?


Yes, it does. The problem is the swapping.

But I need it more than C-M-SPC working. So, I am improvising C-M-m
until I manage to swap the keys in a better way.

Best,
Pedro

On Sun, Aug 29, 2021 at 5:26 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> > More information was requested, but no response was given within a
> > month, so I'm closing this bug report.
>
> (Oops; that was premature -- it's actually only been two weeks.  Had
> sorted the debbugs in the wrong order.)
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no



-- 
Pedro Delfino
http://www.pdelfino.com.br/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 Sep 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.