all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* home and end not working Debian Sarge
@ 2005-07-12 12:57 Angelina Carlton
  2005-07-12 15:59 ` Peter Dyballa
  0 siblings, 1 reply; 3+ messages in thread
From: Angelina Carlton @ 2005-07-12 12:57 UTC (permalink / raw)


Hello

I have a Debian Sarge computer and a Sid computer, On Sarge if I press
the home or end keys in any buffer it simply puts a ~ into the buffer.

On the Sid computer it works as expected and calls M-x end-of-buffer
or M-x beginning-of-buffer.

So to eliminate the my configuration file I ran emacs -q but got the
same problem.

The Sarge box has no X installed, I ssh into it. On the command line,
outside emacs, C-v(home) C-v(end) both produce ^[[7~^[[8~ on both
computers so it seems my terminals are set up properly.

The only way for me to jump to the end of a file is to use the M-x
end-of-buffer command which gets annoying pretty quickly.

If I fire up vim, home and end keys work (they do beginning and end of
line in vim) So it seems that because Vim works and the shell C-v works
it is not a problem with my setup, but emacs -q wont fix it so its not a
problem with my ~/.emacs file. I guess these are reasonably safe
assumptions?

M-x version:
Sarge:
GNU Emacs 21.4.1 (i386-cc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2005-03-17 on trouble, modified by Debian
Sid: 
GNU Emacs 21.4.1 (i386-WC-linux-gnu, X toolkit, Xaw3d scroll bars) of
2005-03-17 on trouble, modified by Debian 

I have tried to set it directly into my ~/.emacs

;; home and end goto beginner and end of file
(global-set-key [(end)] 'end-of-buffer)
(global-set-key[(home)] 'beginning-of-buffer)

this does not work either. Please if you have any idea how to fix this
let me know!

Thank you.

-- 
-----Angelina Carlton-----
orchid on irc.freenode.net
     brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------

>  LocalWords:  emacs Xaw goto

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: home and end not working Debian Sarge
  2005-07-12 12:57 home and end not working Debian Sarge Angelina Carlton
@ 2005-07-12 15:59 ` Peter Dyballa
  2005-07-12 18:55   ` Angelina Carlton
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Dyballa @ 2005-07-12 15:59 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 12.07.2005 um 14:57 schrieb Angelina Carlton:

> The Sarge box has no X installed, I ssh into it. On the command line,
> outside emacs, C-v(home) C-v(end) both produce ^[[7~^[[8~ on both
> computers so it seems my terminals are set up properly.
>

I think you should make Emacs to load "vt220" or whatever emulation is 
active when in some terminal (or window-system is nil).

Look into /usr/local/share/emacs/<version>/lisp/term/vt100.el and then 
/usr/local/share/emacs/<version>/lisp/term/lk201.el how they translate 
multi-byte sequences like ^[[7~ or \e[7~ to something useful like home 
or end. If not (I just looked into lk201.el) just add it into your VT 
or terminal specific file. Copy one of them to a new file name 
according to the terminal (or emulation) type and then add your unknown 
keys there!

--
Greetings

   Pete

One doesn't expect governments to obey the law because of some
higher moral development.  One expects them to obey the law because
they know that if they don't, those who aren't shot will be hanged.
                                                  --Michael Shirley

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: home and end not working Debian Sarge
  2005-07-12 15:59 ` Peter Dyballa
@ 2005-07-12 18:55   ` Angelina Carlton
  0 siblings, 0 replies; 3+ messages in thread
From: Angelina Carlton @ 2005-07-12 18:55 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Look into /usr/local/share/emacs/<version>/lisp/term/vt100.el and then
> /usr/local/share/emacs/<version>/lisp/term/lk201.el how they translate
> multi-byte sequences like ^[[7~ or \e[7~ to something useful like home
> or end. If not (I just looked into lk201.el) just add it into your VT
> or terminal specific file. Copy one of them to a new file name
> according to the terminal (or emulation) type and then add your
> unknown keys there!

Thank you,

I had set $TERM to be xterm, even though I use urxvt, this makes screen
behave properly for some reason. Anyway adding..

(define-key function-key-map "\e[7~" [home]) 
(define-key function-key-map "\e[8~" [end])

to /usr/share/emacs/21.4/lisp/term/xterm.el works like a charm,

thanks again.
   
-- 
-----Angelina Carlton-----
orchid on irc.freenode.net
     brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-12 18:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12 12:57 home and end not working Debian Sarge Angelina Carlton
2005-07-12 15:59 ` Peter Dyballa
2005-07-12 18:55   ` Angelina Carlton

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.