* <delete> key exits Shell Mode (on Windows) @ 2007-10-17 10:48 Gareth Rees 2007-10-18 8:18 ` Jason Rumney ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Gareth Rees @ 2007-10-17 10:48 UTC (permalink / raw) To: bug-gnu-emacs; +Cc: Gareth Rees I'm running GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on Microsoft Windows XP. My SHELL environment variable is set to "bash". In a fresh emacs -q I type M-x shell RET <delete> What I expect to happen: the bell should ring. (<delete> should delete the character after point, but point is at the end of the buffer so there is nothing to delete.) What happens: the shell exits. The reason for this is that <delete> is translated to C-d by `function-key-map' and in Shell Mode C-d is bound to `comint-delchar-or-maybe-eof'. I suggest that <delete> and C-d be disunified in Shell Mode on Windows, and the former should be bound to `delete-char'. (This was reported in July, but not very clearly; see http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-07/msg00210.html I hope this report is better.) -- Gareth Rees ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: <delete> key exits Shell Mode (on Windows) 2007-10-17 10:48 <delete> key exits Shell Mode (on Windows) Gareth Rees @ 2007-10-18 8:18 ` Jason Rumney 2007-10-18 13:30 ` Jonathan Goldblatt 2007-12-25 17:17 ` Richard Stallman 2 siblings, 0 replies; 4+ messages in thread From: Jason Rumney @ 2007-10-18 8:18 UTC (permalink / raw) To: Gareth Rees; +Cc: bug-gnu-emacs Gareth Rees wrote: > I suggest that <delete> and C-d be disunified in Shell Mode on > Windows, and the former should be bound to `delete-char'. I don't think Windows should be treated specially here. Although RMS previously reported that he does not see the bug, that may be because the key labeled "delete" is generating <deletechar> in emacs -nw on GNU/Linux. Under X <delete> is produced, and the same bug is apparent. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: <delete> key exits Shell Mode (on Windows) 2007-10-17 10:48 <delete> key exits Shell Mode (on Windows) Gareth Rees 2007-10-18 8:18 ` Jason Rumney @ 2007-10-18 13:30 ` Jonathan Goldblatt 2007-12-25 17:17 ` Richard Stallman 2 siblings, 0 replies; 4+ messages in thread From: Jonathan Goldblatt @ 2007-10-18 13:30 UTC (permalink / raw) To: Gareth Rees; +Cc: bug-gnu-emacs >>>>> "Gareth" == Gareth Rees <gareth.rees@pobox.com> writes: Gareth> What I expect to happen: the bell should Gareth> ring. (<delete> should delete the character after Gareth> point, but point is at the end of the buffer so there Gareth> is nothing to delete.) Gareth> What happens: the shell exits. You might want to try adding this to your .emacs and see if it works better. (add-hook 'shell-mode-hook '(lambda () (local-set-key (kbd "C-d") [?\C-u ?\M-x ?y ?o ?w return]))) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: <delete> key exits Shell Mode (on Windows) 2007-10-17 10:48 <delete> key exits Shell Mode (on Windows) Gareth Rees 2007-10-18 8:18 ` Jason Rumney 2007-10-18 13:30 ` Jonathan Goldblatt @ 2007-12-25 17:17 ` Richard Stallman 2 siblings, 0 replies; 4+ messages in thread From: Richard Stallman @ 2007-12-25 17:17 UTC (permalink / raw) To: Gareth Rees; +Cc: emacs-devel In a fresh emacs -q I type M-x shell RET <delete> What happens: the shell exits. I fixed this in the CVS source for the next Emacs 22 release. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-25 17:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-10-17 10:48 <delete> key exits Shell Mode (on Windows) Gareth Rees 2007-10-18 8:18 ` Jason Rumney 2007-10-18 13:30 ` Jonathan Goldblatt 2007-12-25 17:17 ` Richard Stallman
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.