unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Vladimir Nikishkin <lockywolf@gmail.com>
Cc: 35533@debbugs.gnu.org
Subject: bug#35533: 26.2; Weird <i> and <I> keybindings in an (insert-table) environment.
Date: Thu, 2 May 2019 10:00:52 -0300	[thread overview]
Message-ID: <CABczVwf019XDKHtnYX90KR9Ci2kE7M_2RMaK7bGrBvjJVkBbkA@mail.gmail.com> (raw)
In-Reply-To: <87k1f9gkq4.fsf@delllaptop.lockywolf.net>


[-- Attachment #1.1: Type: text/plain, Size: 969 bytes --]

Hello.

> The bug (or, rather a strange behaviour), can be reproduced in the
> following way:
> 1)Create a new buffer.
> 2)Insert a text table by calling M-x insert-table RET
> 3)Put the point in the first cell.
> 4)Type: C-h w table-forward-cell RET

Just for clarity, the second step is to type: M-x table-insert RET
Then, of course, hit RET to accept all of the defaults.

> You will see a keybinding called 'C-c C-c <i>'.
> You can see similar weird keybindings for other table-* commands.
>
> Those actual keys are nowhere to be found, and no-one on the
> #emacs channel on Freenode knows what they are.
>
> It would be nice to either document those keys. Or, perhaps,
> it's a bug in Emacs.
>

I believe it's a bug.
'C-h v table-cell-map RET' shows at the end that the bindings are to
'j', 'm', 'I' and 'i', and not to their printed representations.

I attach a patch that adds a missing '?' to all those characters, in
table-cell-bindings.

Best regards,
Mauro.

[-- Attachment #1.2: Type: text/html, Size: 1225 bytes --]

[-- Attachment #2: 0001-Fix-read-syntax-for-some-characters.patch --]
[-- Type: text/x-patch, Size: 1650 bytes --]

From 3d01c3e2f5db34dcfbfda1849e985526da309b5b Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Thu, 2 May 2019 09:51:01 -0300
Subject: [PATCH] Fix read syntax for some characters

* lisp/textmodes/table.el (table-cell-bindings): Add missing '?', to
  use the proper read syntax.  (Bug#35533)
---
 lisp/textmodes/table.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index bed8b2f..f27c705 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -930,16 +930,16 @@ table-target-history
 ;; refill the table cache.  If the command were not listed fast
 ;; typing can cause unwanted cache refill.
 (defconst table-cell-bindings
-  '(([(control i)]	. table-forward-cell)
-    ([(control I)]	. table-backward-cell)
+  '(([(control ?i)]	. table-forward-cell)
+    ([(control ?I)]	. table-backward-cell)
     ([tab]		. table-forward-cell)
     ([(shift backtab)]	. table-backward-cell) ; for HPUX console keyboard
     ([(shift iso-lefttab)]    . table-backward-cell) ; shift-tab on a microsoft natural keyboard and redhat linux
     ([(shift tab)]	. table-backward-cell)
     ([backtab]          . table-backward-cell) ; for terminals (e.g., xterm)
     ([return]		. *table--cell-newline)
-    ([(control m)]	. *table--cell-newline)
-    ([(control j)]	. *table--cell-newline-and-indent)
+    ([(control ?m)]	. *table--cell-newline)
+    ([(control ?j)]	. *table--cell-newline-and-indent)
     ([mouse-3]		. *table--present-cell-popup-menu)
     ([(control ?>)]	. table-widen-cell)
     ([(control ?<)]	. table-narrow-cell)
-- 
2.7.4


  reply	other threads:[~2019-05-02 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-02 11:27 bug#35533: 26.2; Weird <i> and <I> keybindings in an (insert-table) environment Vladimir Nikishkin
2019-05-02 13:00 ` Mauro Aranda [this message]
2019-05-11 15:02   ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABczVwf019XDKHtnYX90KR9Ci2kE7M_2RMaK7bGrBvjJVkBbkA@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=35533@debbugs.gnu.org \
    --cc=lockywolf@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).