From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Binding org-insert-todo-heading to M-S-RET Date: Sat, 12 Jan 2019 11:55:03 +0100 Message-ID: <878szqywl4.fsf@nicolasgoaziou.fr> References: <877efbgi4i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giH2H-0001iU-9d for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 06:01:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giGwY-0006pp-KZ for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 05:55:11 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:58723) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giGwX-0006kj-Bl for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 05:55:09 -0500 In-Reply-To: <877efbgi4i.fsf@gmail.com> (=?utf-8?Q?=22K=C3=A9vin?= Le Gouguec"'s message of "Fri, 11 Jan 2019 19:32:29 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec Cc: emacs-orgmode@gnu.org Hello, K=C3=A9vin Le Gouguec writes: > Here is a very minor gripe I have with org-mode: is there a reason why > org-insert-todo-heading should be bound to (kbd "M-S-"), rather > than (kbd "M-S-RET")? > > AFAIU, using "" limits the key binding to the actual "=E2=8F=8E" > function key, while using "RET" makes any key chord that sends the > "carriage return" character ("=E2=8F=8E" and "C-m") work transparently. > > I admit that Alt-Shift-Control-M sounds unwieldy, but my muscle memory > has become so accustomed to using "C-m" instead of "" that I > would welcome a change allowing this alternative. > > ( > From my understanding of (emacs)Keymaps and (emacs)Named ASCII > Chars, using "RET" also has the advantage that bindings can work in > terminals; IIUC terminals translate presses to "=E2=8F=8E" into the "= RET" > control character, so Emacs never knows that "" was pressed. > > However in this particular case I don't believe that the argument > applies, since AFAIK terminals cannot transmit "S-RET" to Emacs. > "M-RET" works though, precisely because it uses "RET" and not > "". > ) > > Thank you for your time. Fair enough. I changed a few to RET in master. Regards, --=20 Nicolas Goaziou