From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7143 Path: news.gmane.org!not-for-mail From: gdt@work.lexort.com Newsgroups: gmane.emacs.gnus.user Subject: Re: `del' key not working out of x environment Date: Tue, 25 Apr 2006 08:27:37 -0400 Message-ID: References: <87aca9dhbh.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145968870 22385 80.91.229.2 (25 Apr 2006 12:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 12:41:10 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Apr 25 14:41:08 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYMqQ-0002p0-B2 for gegu-info-gnus-english@m.gmane.org; Tue, 25 Apr 2006 14:40:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYMqO-0007ly-PJ for gegu-info-gnus-english@m.gmane.org; Tue, 25 Apr 2006 08:40:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:FTMpXHgBsnWxY8PgHUVQ36vf13U= Original-Lines: 96 Original-NNTP-Posting-Host: LINUXPAL.MIT.EDU Original-X-Trace: 1145968057 senator-bedfellow.mit.edu 576 18.62.1.14 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77325 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7143 Archived-At: Rodolfo Medina writes: > If I start Emacs and Gnus out of graphical environment, > when trying to delete a message with `B del', Gnus complains that > `B is undefined'; and if I want to get back one page > within a message, with `del', Gnus complains that the buffer is read only. > Instead, within graphical environment all works fine. > How come, and how to fix that? Your message leaves out many important details, such as what sort of computer you are using, what operating system, and whether you are running emacs on a console of some sort or via ssh, and if so, what sort of keyboard/console you are using. It works fine with my VT52 and Vax running 4.3BSD :-) There is a longstanding issue about the labeling and coding of keys on keyboards. Originally (in the non-IBM world), the key in the upper right was marked DEL or Delete, and sent the ASCII DEL symbol (0177). This was used as the byte that caused a previous input symbol to be removed. The IBM PC labeled the key backspace, but made it work as DEL. A 'Delete' key was added that usually deletes forward. Unix came from "real computers" and thus generally followed the DEC delete key scheme. At some point XFree86 changed the default key mappings to make the key-which-should-be-DEL-but-is-Backspace be backspace instead of delete. emacs seems to work around this brokenness by treating the X11 keysym BackSpace as DEL. The following comments and Xresources fragments, intended for those with PC keyboards, explain how to fix xterm so that the Backspace key generates DEL and to avoid making xterm set BS as the erase character. You seem to be having a different problem, which is that whatever system you are using to type on is not generating an ASCII DEL (0177) when you push the backspace key. Or perhaps you are pushing the 'Delete' key. On on of my computers, which is an i386 with a Dell PS/2 keybaord, running NetBSD-current, both the 'Backspace' key and the 'Delete' key send DEL, or at least ^H^K followed by either says that. /* * The following comments are for those that believe the key that is * where the delete (DEL) key belongs (from a VT52 or VT100) should * send DEL (0177) and that the terminal erase character should also * be DEL (0177). * * On a PC keyboard, the BackSpace key generates * keycode 22 (keysym 0xff08, BackSpace). * The "Delete" key is a function key near Insert, not a DEL key, and it * generates keycode 107 (keysym 0xffff, Delete). * XXX Figure out what happens under X with a keyboard with a real DEL key. */ /* * Don't mess with the pty's notion of erase (which defaults to DEL in * NetBSD). This should be set on all computers, regardless of the * type of keyboard. */ *ptyInitialErase: true /* * Make the backarrow key send DEL (without control), rather than BS. * This should be set for any display whose keyboard has a key labeled * BackSpace where the delete (DEL) key should be. */ *backarrowKey: false /* * Alternatively, one could set backarrowKeyIsErase to true, which the * man page says would set the backarrowKey state according to whether * stty erase character is DEL or BS. */ /* * It appears that ssh propagates the local stty erase character * setting to the remote machine, at least when both ends are NetBSD * 1.6.2ish. Thus, fixing the key that should be delete locally * (above) is sufficient to cause the correct behavior on remote * systems (i.e., ssh sends 0177 when the key-where-DEL-should-be is * pressed, the remote stty erase setting is 0177, in emacs both * DEL and M-DEL work correctly, and one can invoke help by sending 010 * (by typing C-DEL or C-H). (With the standard behavior of DEL * sending BS and stty erase set to BS, one cannot easily invoke help * in emacs.) */ PS: Back when I was young, we had to shout all the time because our VT05s only had upper case letters. But seriously, I hope this helps. -- Greg Troxel