GNU bug report logs - #39545
26.3; C-S-a gets translated to C-a in message-mode

Previous Next

Package: emacs;

Reported by: kuba.orlik <at> sealcode.org (Kuba Orlik (sealcode.org))

Date: Mon, 10 Feb 2020 13:39:03 UTC

Severity: minor

Tags: easy, fixed

Found in version 26.3

Fixed in version 28.1

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 39545 in the body.
You can then email your comments to 39545 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#39545; Package emacs. (Mon, 10 Feb 2020 13:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to kuba.orlik <at> sealcode.org (Kuba Orlik (sealcode.org)):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Feb 2020 13:39:03 GMT) Full text and rfc822 format available.

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

From: kuba.orlik <at> sealcode.org (Kuba Orlik (sealcode.org))
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; C-S-a gets translated to C-a in message-mode
Date: Mon, 10 Feb 2020 12:39:19 +0100
1. M-x message-mode
2. Enter some text
3. Press C-S-a

The point moves to the beggining of the line, but doesn't select the
text along the way, as C-S-a usually does


In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10)
 of 2019-08-29 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12007000
System Description:	Manjaro Linux

Recent messages:
Are you sure you want to execute 2 marks? (y or n) y
Are you sure you want to execute 1 mark? (y or n) y [2 times]
Are you sure you want to execute 2 marks? (y or n) y
Are you sure you want to execute 1 mark? (y or n) y
Template key: 
Invalid key ‘r’
Template key: 
Invalid key ‘e’
Template key: 
user-error: Abort
Quit
Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
 CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

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

Important settings:
  value of $LC_MESSAGES: en_GB.UTF-8
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_GB.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: mu4e:view

Minor modes in effect:
  diff-auto-refine-mode: t
  override-global-mode: t
  delete-selection-mode: t
  global-edit-server-edit-mode: t
  projectile-mode: t
  my-override-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow emacsbug network-stream nsm starttls mailalias qp mail-extr sort
winner helm-buffers helm-occur helm-grep helm-regexp helm-utils
helm-help helm-types helm helm-source eieio-compat helm-multi-match
helm-lib async face-remap misearch multi-isearch xref project timezone
shr-color url-util shr svg xml dom bookmark pp tabify vc-git diff-mode
org-rmail org-mhe org-irc org-info org-gnus nnir org-docview org-bibtex
bibtex org-bbdb org-w3m org-capture cl org-mu4e org-element avl-tree
generator org org-macro org-footnote org-pcomplete pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp ob
ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint
ob-core ob-eval org-compat org-macs org-loaddefs find-func mu4e desktop
frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main
mu4e-view cal-menu calendar cal-loaddefs browse-url gnus-art mm-uu
mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls
utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus
nnheader wid-edit mu4e-headers mu4e-compose mu4e-context mu4e-draft
mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-message
flow-fill mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists
mu4e-vars message rmc puny dired dired-loaddefs format-spec rfc822 mml
mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
mu4e-meta elec-pair time solarized-light-theme solarized-palettes
solarized solarized-faces color dash use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
cl-extra help-mode use-package-core delsel edit-server advice projectile
grep compile comint ansi-color ring ibuf-ext ibuffer ibuffer-loaddefs
thingatpt finder-inf rx 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
easy-mmode edmacro kmacro cl-loaddefs cl-lib paren hl-line 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 482154 55142)
 (symbols 48 47900 1)
 (miscs 40 814 793)
 (strings 32 148961 6814)
 (string-bytes 1 4410463)
 (vectors 16 54773)
 (vector-slots 8 1655749 52308)
 (floats 8 619 360)
 (intervals 56 1530 1168)
 (buffers 992 28))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Mon, 10 Feb 2020 18:37:01 GMT) Full text and rfc822 format available.

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

From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: kuba.orlik--- via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: 39545 <at> debbugs.gnu.org, "Kuba Orlik sealcode.org" <kuba.orlik <at> sealcode.org>
Subject: Re: bug#39545: 26.3; C-S-a gets translated to C-a in message-mode
Date: Mon, 10 Feb 2020 10:36:02 -0800
kuba.orlik--- via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> 1. M-x message-mode
> 2. Enter some text
> 3. Press C-S-a
>
> The point moves to the beggining of the line, but doesn't select the
> text along the way, as C-S-a usually does

C-S-a doesn't "usually" do that -- maybe it's a part of `cua-mode', and
that's not getting enabled in `message-mode'? That's a guess, but if
it's a correct guess, you should be able to figure out why `cua-mode'
isn't enabled in message composition buffers.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Mon, 10 Feb 2020 18:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Mon, 10 Feb 2020 19:08:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: 39545 <at> debbugs.gnu.org, kuba.orlik <at> sealcode.org
Subject: Re: bug#39545: 26.3; C-S-a gets translated to C-a in message-mode
Date: Mon, 10 Feb 2020 14:07:28 -0500
Eric Abrahamsen <eric <at> ericabrahamsen.net> writes:

> kuba.orlik--- via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>
>> 1. M-x message-mode
>> 2. Enter some text
>> 3. Press C-S-a
>>
>> The point moves to the beggining of the line, but doesn't select the
>> text along the way, as C-S-a usually does
>
> C-S-a doesn't "usually" do that -- maybe it's a part of `cua-mode', and
> that's not getting enabled in `message-mode'?

It's enabled by transient-mark-mode which is turned on by default.  I
think the problem is that in message-mode C-a is bound to
message-beginning-of-line which misses the "^" in its interactive
string.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Mon, 10 Feb 2020 19:14:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: 39545 <at> debbugs.gnu.org, kuba.orlik <at> sealcode.org
Subject: Re: bug#39545: 26.3; C-S-a gets translated to C-a in message-mode
Date: Mon, 10 Feb 2020 21:13:38 +0200
> From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
> Date: Mon, 10 Feb 2020 10:36:02 -0800
> Cc: kuba.orlik <at> sealcode.org
> 
> > 1. M-x message-mode
> > 2. Enter some text
> > 3. Press C-S-a
> >
> > The point moves to the beggining of the line, but doesn't select the
> > text along the way, as C-S-a usually does
> 
> C-S-a doesn't "usually" do that -- maybe it's a part of `cua-mode'

No, it's a normal Emacs "shift-selection" feature: any cursor motion
command (C-a in this case) typed with the Shift key held will select
the text it moves across.  You can see it in *scratch* in "emacs -Q",
even.

> and that's not getting enabled in `message-mode'?

No, I think it's because in message-mode C-a is bound to
message-beginning-of-line, and that doesn't have "^" in its
interactive spec, like beginning-of-line does.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Mon, 10 Feb 2020 19:39:02 GMT) Full text and rfc822 format available.

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

From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39545 <at> debbugs.gnu.org, kuba.orlik <at> sealcode.org
Subject: Re: bug#39545: 26.3; C-S-a gets translated to C-a in message-mode
Date: Mon, 10 Feb 2020 11:38:33 -0800
On 02/10/20 21:13 PM, Eli Zaretskii wrote:
>> From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
>> Date: Mon, 10 Feb 2020 10:36:02 -0800
>> Cc: kuba.orlik <at> sealcode.org
>> 
>> > 1. M-x message-mode
>> > 2. Enter some text
>> > 3. Press C-S-a
>> >
>> > The point moves to the beggining of the line, but doesn't select the
>> > text along the way, as C-S-a usually does
>> 
>> C-S-a doesn't "usually" do that -- maybe it's a part of `cua-mode'
>
> No, it's a normal Emacs "shift-selection" feature: any cursor motion
> command (C-a in this case) typed with the Shift key held will select
> the text it moves across.  You can see it in *scratch* in "emacs -Q",
> even.
>
>> and that's not getting enabled in `message-mode'?
>
> No, I think it's because in message-mode C-a is bound to
> message-beginning-of-line, and that doesn't have "^" in its
> interactive spec, like beginning-of-line does.

Oops, thanks to both of you for the correction! I tested in *scratch*
and saw "C-e (translated from C-S-e) runs the command move-end-of-line"
and checked no further.

Maybe we can see what Lars thinks about changing the interactive spec
for the message function.




Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 24 Feb 2020 18:25:02 GMT) Full text and rfc822 format available.

Added tag(s) easy. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 24 Feb 2020 18:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39545; Package emacs. (Thu, 20 Aug 2020 14:13:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Eric Abrahamsen <eric <at> ericabrahamsen.net>, 39545 <at> debbugs.gnu.org,
 kuba.orlik <at> sealcode.org
Subject: Re: bug#39545: 26.3; C-S-a gets translated to C-a in message-mode
Date: Thu, 20 Aug 2020 16:12:24 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> and that's not getting enabled in `message-mode'?
>
> No, I think it's because in message-mode C-a is bound to
> message-beginning-of-line, and that doesn't have "^" in its
> interactive spec, like beginning-of-line does.

I've now added this in Emacs 28.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 14:13:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 39545 <at> debbugs.gnu.org and kuba.orlik <at> sealcode.org (Kuba Orlik (sealcode.org)) Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 14:13:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 4 years and 290 days ago.

Previous Next


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