all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs-snapshot keybinding problem
@ 2005-12-29 19:11 Angelina Carlton
  0 siblings, 0 replies; 22+ messages in thread
From: Angelina Carlton @ 2005-12-29 19:11 UTC (permalink / raw)



Hello,

This applies to emacs -nw versus emacs-snapshot -nw

I have installed the Debian package emacs-snapshot:
GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.8.9) of
2005-12-21 on pacem, modified by Debian

in my .emacs I have defined some keyboard shortcuts:

,----
| ;; Jump to other window ----------------------------
| (global-set-key [(f13)] 'other-window)
| 
| ;; bury buffer   -----------------------------------                                         
| (global-set-key [(f16)] 'bury-buffer)
`----

Although I am running Linux the keyboard is an Apple keyboard. 
The left option key (f13) runs other-window and the right option key
runs bury-buffer. 
The standard emacs Debian package for unstable:
GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2005-10-02 on trouble, modified by Debian

My keybindings for emacs-snapshot however are now changed, it does not
recognize f13 nor f16, C h-k <left option> shows that emacs-snapshot
thinks it is f2 and it thinks the right option key is f6. 

I have not changed anything else in my shell enviroment nor my window
managers set up so I am confused as to why this is happening. 

Any ideas? 

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

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

* Re: emacs-snapshot keybinding problem
       [not found] <mailman.20812.1135883611.20277.help-gnu-emacs@gnu.org>
@ 2005-12-30  4:49 ` Stefan Monnier
  2005-12-30 14:21   ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Stefan Monnier @ 2005-12-30  4:49 UTC (permalink / raw)


> My keybindings for emacs-snapshot however are now changed, it does not
> recognize f13 nor f16, C h-k <left option> shows that emacs-snapshot
> thinks it is f2 and it thinks the right option key is f6. 

Please see emacs/lisp/trm/xterm.el for a possible explanation:
f13 is mapped to S-f1 and f16 to S-f4.

It doesn't seem to explain exactly your behavior, tho.


        Stefan

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

* Re: emacs-snapshot keybinding problem
  2005-12-30  4:49 ` emacs-snapshot keybinding problem Stefan Monnier
@ 2005-12-30 14:21   ` Angelina Carlton
  2005-12-30 15:45     ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: Angelina Carlton @ 2005-12-30 14:21 UTC (permalink / raw)


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> My keybindings for emacs-snapshot however are now changed, it does not
>> recognize f13 nor f16, C h-k <left option> shows that emacs-snapshot
>> thinks it is f2 and it thinks the right option key is f6. 
>
> Please see emacs/lisp/trm/xterm.el for a possible explanation:
> f13 is mapped to S-f1 and f16 to S-f4.
>
> It doesn't seem to explain exactly your behavior, tho.
>
That file, suggests that because I am using rxvt-unicode it will source
another file:

  ,----
  | (if (and (getenv "COLORTERM")
  |            (string-match "\\`rxvt" (getenv "COLORTERM")))
  |       (progn
  |       (eval-and-compile (load "term/rxvt"))
  |         (terminal-init-rxvt))
  `----

echo $TERM gives me rxvt-unicode
echo $COLORTERM gives me rxvt-xpm

so in /usr/share/emacs/22.0.50/lisp/term/rxvt.el.gz
,----
|   (substitute-key-definition [f11] [S-f1] function-key-map)
|   (substitute-key-definition [f12] [S-f2] function-key-map)
|   (substitute-key-definition [f13] [S-f3] function-key-map)
|   (substitute-key-definition [f14] [S-f4] function-key-map)
|   (substitute-key-definition [f15] [S-f5] function-key-map)
|   (substitute-key-definition [f16] [S-f6] function-key-map)
`----

This seems to match my problem. I can edit this file or is this not a
good idea? 

One more thing, the Apple keyboard has real F11-F16 keys which I have
not been able to get working under X, 
Option          "XkbModel"      "macintosh" 
seemed like the right choice but perhaps I need to address this first? 

Thanks for you help!


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

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

* Re: emacs-snapshot keybinding problem
  2005-12-30 14:21   ` Angelina Carlton
@ 2005-12-30 15:45     ` Peter Dyballa
  2005-12-30 18:31       ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2005-12-30 15:45 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 30.12.2005 um 15:21 schrieb Angelina Carlton:

> I can edit this file or is this not a good idea?

The better idea is to put into a file you have full control on. Once 
you update GNU Emacs you changes could be overwritten, putting them 
into ~/.emacs or a site-init.el will keep them longer.

>
> One more thing, the Apple keyboard has real F11-F16 keys which I have
> not been able to get working under X,
> Option          "XkbModel"      "macintosh"
> seemed like the right choice but perhaps I need to address this first?
>

That's probably correct. The Apple *external* keyboards are a few 
models -- and they all have evolved as those in the PowerBooks or 
iBooks too. With xev (it's sometimes 'hidden' in a subdirectory of 
/usr/X11R6/bin) you can record the missing key codes, and with xmodmap 
you can make them (re-)assigned when X11 is launched.

In ~/.xinitrc the lines can be:

	userresources=$HOME/.Xdefaults
	usermodmap=$HOME/.Xmodmap
	sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
	sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
	
	if [ -f $sysmodmap ]; then
	    xmodmap $sysmodmap
	fi
	
	if [ -f $usermodmap ]; then
	    xmodmap $usermodmap
	fi

In .xmodmaprc the lines could be like:

	keycode 10 = 1 exclam exclamdown onesuperior

To cite from the man page:

	Up to eight keysyms may be attached to a key, however the last four 
are not used in any major X server implementation. The first keysym is 
used when no modifier key is pressed in conjunction with this key, the 
second with Shift, the third when the Mode_Switch key is used with this 
key and the fourth when both the Mode_Switch and Shift keys are used.

One problem is to find the keysyms (names) your system understands. 
These are predefined in a C header file, 
/usr/X11R6/include/X11/keysymdef.h. Check whether F1[1-9] are #define'd 
there!

--
Greetings

   Pete

In a world without walls and fences, who needs gates and windows?

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

* Re: emacs-snapshot keybinding problem
  2005-12-30 15:45     ` Peter Dyballa
@ 2005-12-30 18:31       ` Angelina Carlton
  2005-12-30 23:52         ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: Angelina Carlton @ 2005-12-30 18:31 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> In .xmodmaprc the lines could be like:
>
> 	keycode 10 = 1 exclam exclamdown onesuperior
>
> To cite from the man page:
>
> 	Up to eight keysyms may be attached to a key, however the last
> four are not used in any major X server implementation. The first
> keysym is used when no modifier key is pressed in conjunction with
> this key, the second with Shift, the third when the Mode_Switch key is
> used with this key and the fourth when both the Mode_Switch and Shift
> keys are used.
>
> One problem is to find the keysyms (names) your system
> understands. These are predefined in a C header file,
> /usr/X11R6/include/X11/keysymdef.h. Check whether F1[1-9] are
> #define'd there!

I think I see the problem, in my /usr/X11R6/include/X11/keysymdef.h file
some of the keys I wish to enable have no symbols (0x0) 

>From xev and keysymdef.h
+---------------------------------------------+
|on kb  number hex     symbol    #define:     |
|---------------------------------------------|
|F13    182    0x0     NoSymbol               |
|F14    183    0xFFCB  F14       XK_F14, XK_L4|
|F15    184    0xFFCC  F15       XK_F15, XK_L5|
|F16    93     0x0     NoSymbol               |
|LOPT   115    0xFFCA  F13       XK_F13, XK_L3|
|ROPT   116    0xFFCD  F16       XK_F16, XK_L6|
+---------------------------------------------+

So the physical key "left option" is bound to F13 and "right option" is
bound to F16. Hopefully I can remap these now to play nicely with
emacs22 


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

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

* Re: emacs-snapshot keybinding problem
  2005-12-30 18:31       ` Angelina Carlton
@ 2005-12-30 23:52         ` Peter Dyballa
  2005-12-31 15:41           ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2005-12-30 23:52 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 30.12.2005 um 19:31 schrieb Angelina Carlton:

>> From xev and keysymdef.h
> +---------------------------------------------+
> |on kb  number hex     symbol    #define:     |
> |---------------------------------------------|
> |F13    182    0x0     NoSymbol               |
> |F14    183    0xFFCB  F14       XK_F14, XK_L4|
> |F15    184    0xFFCC  F15       XK_F15, XK_L5|
> |F16    93     0x0     NoSymbol               |
> |LOPT   115    0xFFCA  F13       XK_F13, XK_L3|
> |ROPT   116    0xFFCD  F16       XK_F16, XK_L6|
> +---------------------------------------------+
>
> So the physical key "left option" is bound to F13 and "right option" is
> bound to F16. Hopefully I can remap these now to play nicely with
> emacs22
>

No, no: NoSymbol is perfect! If there is already a symbol (name) set 
for a key, you'll have to re-associate this key with a new symbol:

	keysym F14 = F15	! not really clever

If you see 'NoSymbol' reported, then it's just a 'free' (unbound) key 
(therefore they all give ASCII-Nul). Right now you have F13...F16 
'defined' in X11, you can use them by pressing the keys LOPT, F14, F15, 
ROPT. To change this you'll need to set:

	keycode 182 = F13
	keycode  93 = F16

After this you'll two F13 and two F16. The left and right option keys 
are useful as modifiers, super and Hyper, if you already have Alt and 
Meta. The more 'modifiers' you have, the more keybindings you can use 
(Alt-super-Shift-Meta-Hyper-Control-F15)!

	keycode 115 = Hyper
	add Mod4 = Hyper
	keycode 115 = super
	add Mod5 = super

You probably know what xmodmap -pm shows? And you probably already 
learned that you can re-map the keys in X11 at once, without re-boot, 
log-off and -in, shutting X11 down and re-launching it?

--
Greetings

   Pete

"Specifications are for the weak and timid!"

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

* Re: emacs-snapshot keybinding problem
  2005-12-30 23:52         ` Peter Dyballa
@ 2005-12-31 15:41           ` Angelina Carlton
  2005-12-31 17:21             ` Peter Dyballa
  2006-01-02 16:36             ` Stefan Monnier
  0 siblings, 2 replies; 22+ messages in thread
From: Angelina Carlton @ 2005-12-31 15:41 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>
> 	keycode 115 = Hyper
> 	add Mod4 = Hyper
> 	keycode 115 = super
> 	add Mod5 = super

Ok, for this system it complains that Hyper and super are not valid
keysyms so this is my ~/.xmodmaprc

,----
| keycode 182 = F13
| keycode 183 = F14
| keycode 184 = F15
| keycode 93 = F16
| keycode 115 = Hyper_L
| clear Mod3
| add Mod3 = Hyper_L   
| keycode 116 = Super_R
| clear Mod4
| add Mod4 = Super_R
`----
xmodmap -pm:

,----
| xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):
| shift       Shift_L (0x32),  Shift_R (0x3e)
| lock      
| control     Control_L (0x25),  Control_L (0x42),  Control_R (0x6d)
| mod1        Alt_L (0x40),  Alt_R (0x71)
| mod2        Num_Lock (0x4d)
| mod3        Hyper_L (0x73)
| mod4        Super_R (0x74)
| mod5        Scroll_Lock (0x77)
`----

So my function keys now go all the way up to F16 :-) and I have OPTL set
to Hyper_L and OPTR set to Super_R, I now need to
learn the syntax to bind something to the Super and Hyper keys

(global-set-key [(hyper q)] 'some-function) does not work.

> You probably know what xmodmap -pm shows? And you probably already
> learned that you can re-map the keys in X11 at once, without re-boot,
> log-off and -in, shutting X11 down and re-launching it?
>
I am just using xmodmap ~/.xmodmaprc to "source" this file.

Incidentally these function keys still get overwritten in emacs22, I have
not tried to address this yet because as you pointed out, my
key mappings were incorrect to begin with, even in emacs21 so one step at
a time I suppose :) 

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

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

* Re: emacs-snapshot keybinding problem
  2005-12-31 15:41           ` Angelina Carlton
@ 2005-12-31 17:21             ` Peter Dyballa
  2006-01-01 18:04               ` Angelina Carlton
  2006-01-02 16:36             ` Stefan Monnier
  1 sibling, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2005-12-31 17:21 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 31.12.2005 um 16:41 schrieb Angelina Carlton:

>> 	keycode 115 = Hyper
>> 	add Mod4 = Hyper
>> 	keycode 115 = super
>> 	add Mod5 = super
>
> Ok, for this system it complains that Hyper and super are not valid
> keysyms

Sorry! It has to be with _L or _R, and here in Mac OS X it's Super 
(with _L or _R), uppercase!

>
> So my function keys now go all the way up to F16 :-) and I have OPTL 
> set
> to Hyper_L and OPTR set to Super_R, I now need to
> learn the syntax to bind something to the Super and Hyper keys
>
> (global-set-key [(hyper q)] 'some-function) does not work.

(global-set-key [s-f1]          'replace-string)
(global-set-key [H-f]           'end-of-defun)

S- is the Shift key
C- is the Control key
M- is the Meta key
A- is the Alt key
H- is the Hyper key
s- is the super key

A simple and looong text way to find out, is to invoke global-set-key 
interactively, press the key combination, and then invoke 
repeat-complex-command, which is C-x Esc Esc or C-x M-: or C-x M-ESC. 
In minibuffer the keybinding is listed. C-a: you're at the expression's 
beginning, C-k: you've killed the expression, C-g: minibuffer closes. 
Now enter ~/.emacs and yank that line near the other global-set-key's: 
finished!

>
> Incidentally these function keys still get overwritten in emacs22, I 
> have
> not tried to address this yet because as you pointed out, my
> key mappings were incorrect to begin with, even in emacs21 so one step 
> at
> a time I suppose :)
>

You have to make a difference between GNU Emacs running inside a 
terminal (emulation), or as an X client in its own window. The keys you 
set with xmodmap do not exist in nowindows mode. XTerm and other 
terminal emulations have kind of 'text bindings' to keys, particularly 
to function keys. The syntax to set up these X resources in 
~/.Xdefaults is not easy, I presume I copied these lines from 
somewhere:

XTerm*vt220*VT100.translations: #override \n\
    ~Shift<Key>F1:       string(0x1b) string("OP") \n \
    ~Shift<Key>F2:       string(0x1b) string("OQ") \n \
    ~Shift<Key>F3:       string(0x1b) string("OR") \n \
    ~Shift<Key>F4:       string(0x1b) string("OS") \n \
    ~Shift<Key>F5:       string(0x1b) string("[16~") \n \
    ~Shift<Key>F6:       string(0x1b) string("[17~") \n \
    ~Shift<Key>F7:       string(0x1b) string("[18~") \n \
    ~Shift<Key>F8:       string(0x1b) string("[19~") \n \
    ~Shift<Key>F9:       string(0x1b) string("[20~") \n \
    ~Shift<Key>F10:      string(0x1b) string("[21~") \n \
    ~Shift<Key>F11:      string(0x1b) string("[28~") \n \
    ~Shift<Key>F12:      string(0x1b) string("[29~") \n \
     Shift<Key>F1:       string(0x1b) string("[23~") \n \
     Shift<Key>F2:       string(0x1b) string("[24~") \n \
     Shift<Key>F3:       string(0x1b) string("[25~") \n \
     Shift<Key>F4:       string(0x1b) string("[26~") \n \
     Shift<Key>F5:       string(0x1b) string("[K~")  \n \
     Shift<Key>F6:       string(0x1b) string("[31~") \n \
     Shift<Key>F7:       string(0x1b) string("[31~") \n \
     Shift<Key>F8:       string(0x1b) string("[32~") \n \
     Shift<Key>F9:       string(0x1b) string("[33~") \n \
     Shift<Key>F10:      string(0x1b) string("[34~") \n \
     Shift<Key>F11:      string(0x1b) string("[28~") \n \
     Shift<Key>F12:      string(0x1b) string("[29~") \n

!XTerm*VT100.translations: #override \
!	<Key>BackSpace:	string("\010") \n\
!   Shift<Key>Tab:	string("\033[Z") \n\
!    Ctrl<Key>minus:	string("\037") \n\
!	<Key>Home:	string("\033[1~") \n\
!	<Key>End:		string("\033[4~") \n\
!	<Key>Delete:	string("\033[3~") \n\
!   Shift<Key>Delete:	string("\177") \n\
!    Ctrl<Key>Delete:	string("\010") \n\
!     Alt<Key>Return:	string("\033\015") \n\
!     Alt<Key>space:	string("\033\040") \n

\033 is the same as 0x1b wrapped in a string() call solely. Some X 
clients understand the modifiers "Alt," "Ctrl," "Meta," or "Shift." If 
xterms does too, and maybe understands Hyper or Super too, you have the 
option to define your own extra set of key sequences these key produce 
when pressed with any of these modifiers, that should work without 
windows. In extending the xterm.el code you might get these extra 
layers.

To activate these X resources you can merge them via 'xrdb -merge < 
~/.Xdefaults'.

--
Greetings

   Pete

Well done is better than well said.
    ---- Benjamin Franklin

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

* Re: emacs-snapshot keybinding problem
  2005-12-31 17:21             ` Peter Dyballa
@ 2006-01-01 18:04               ` Angelina Carlton
  2006-01-01 18:57                 ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: Angelina Carlton @ 2006-01-01 18:04 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Sorry! It has to be with _L or _R, and here in Mac OS X it's Super
> (with _L or _R), uppercase!
> (global-set-key [s-f1]          'replace-string)
> (global-set-key [H-f]           'end-of-defun)
> S- is the Shift key
> C- is the Control key
> M- is the Meta key
> A- is the Alt key
> H- is the Hyper key
> s- is the super key

Thanks! This works fine and gives me lots of possible custom key bindings
that will not override any of Emacs's defaults. 
 
> You have to make a difference between GNU Emacs running inside a
> terminal (emulation), or as an X client in its own window. The keys
> you set with xmodmap do not exist in nowindows mode. XTerm and other
> terminal emulations have kind of 'text bindings' to keys, particularly
> to function keys.

This seems odd to me, but I will take your advice. "xterm" for example is
a terminal emulator for X windows, as is my terminal, "urxvt" so I would
have thought xmodmap would be sufficient here. or do you mean that Emacs
makes a distinction if called with -nw? I always thought the program
(urxvt in my case) is a client of the X server and would inherit
xmodmaps settings for that session.

Regardless of the above, emacs22 -nw is indeed still not working, 
urxvt does not use "translations" and the same effect can not be achieved
with keysyms ( Urxvt.keysym.F1: ESC [ 11 ~ ) so I am not sure what I can
do except use another terminal

I tried to use the translations that you provided with xterm but it too
displayed the same behaviour as urxvt.
>
> \033 is the same as 0x1b wrapped in a string() call solely. Some X
> clients understand the modifiers "Alt," "Ctrl," "Meta," or "Shift." If
> xterms does too, and maybe understands Hyper or Super too, you have
> the option to define your own extra set of key sequences these key
> produce when pressed with any of these modifiers, that should work
> without windows. In extending the xterm.el code you might get these
> extra layers.

I will try to make this work in xterm even though its not my proffered
terminal but I am not sure to be honest that I understand the above enough to go
through each function key and the Hyper and Super keys and reassign
them. 

Thank you for all you help by the way, its just a lot for me to learn :)

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

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

* Re: emacs-snapshot keybinding problem
  2006-01-01 18:04               ` Angelina Carlton
@ 2006-01-01 18:57                 ` Peter Dyballa
  2006-01-02 20:24                   ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2006-01-01 18:57 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 01.01.2006 um 19:04 schrieb Angelina Carlton:

>> You have to make a difference between GNU Emacs running inside a
>> terminal (emulation), or as an X client in its own window. The keys
>> you set with xmodmap do not exist in nowindows mode. XTerm and other
>> terminal emulations have kind of 'text bindings' to keys, particularly
>> to function keys.
>
> This seems odd to me, but I will take your advice. "xterm" for example 
> is
> a terminal emulator for X windows, as is my terminal, "urxvt" so I 
> would
> have thought xmodmap would be sufficient here. or do you mean that 
> Emacs
> makes a distinction if called with -nw? I always thought the program
> (urxvt in my case) is a client of the X server and would inherit
> xmodmaps settings for that session.
>

The terminal emulation is of course an X11 client. But Emacs inside it 
not. It's just a shell command. In terminals GNU Emacs uses ncurses or 
similiar means to 'draw' its window(s). GNU Emacs too uses different 
interfaces to receive the 'key events.' Only the windowing system's 
clients see these events, shell commands receive some ANSI codes, as 
sent by the terminal emulation. In X11 this one translates from X11 key 
events to ANSI terminal codes.

You can see the difference when pressing C-q and then a function key. 
In a terminal emulation this has some sense, in an X11 client it's 
non-sense, maybe a ^@ or ASCII-Nul worth (less than 2¢). You too can 
check with C-h k whether GNU Emacs 'sees' in a terminal any modifiers 
(it can't, because the X11 interface is not activated).

--
Greetings

   Pete

"I wouldn't recommend sex, drugs or insanity for everyone, but they've
always worked for me."
		-- Hunter S. Thompson

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

* Re: emacs-snapshot keybinding problem
  2005-12-31 15:41           ` Angelina Carlton
  2005-12-31 17:21             ` Peter Dyballa
@ 2006-01-02 16:36             ` Stefan Monnier
  2006-01-04 21:43               ` Angelina Carlton
  1 sibling, 1 reply; 22+ messages in thread
From: Stefan Monnier @ 2006-01-02 16:36 UTC (permalink / raw)


> So my function keys now go all the way up to F16 :-) and I have OPTL set
> to Hyper_L and OPTR set to Super_R, I now need to
> learn the syntax to bind something to the Super and Hyper keys
> 
> (global-set-key [(hyper q)] 'some-function) does not work.

In what sense does it not work?
If it doesn't work, it's a bug, which you should report via
M-x report-emacs-bug


        Stefan

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

* Re: emacs-snapshot keybinding problem
  2006-01-01 18:57                 ` Peter Dyballa
@ 2006-01-02 20:24                   ` Angelina Carlton
  2006-01-03 12:58                     ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: Angelina Carlton @ 2006-01-02 20:24 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> The terminal emulation is of course an X11 client. But Emacs inside it
> not. It's just a shell command. In terminals GNU Emacs uses ncurses or
> similiar means to 'draw' its window(s). GNU Emacs too uses different
> interfaces to receive the 'key events.' Only the windowing system's
> clients see these events, shell commands receive some ANSI codes, as
> sent by the terminal emulation. In X11 this one translates from X11
> key events to ANSI terminal codes.

Hi Peter, 
I strayed somewhat from your method and put some code in my .emacs to
re-map the function keys after everything is loaded..

,----
| (defun fixmap()                                              
| (substitute-key-definition [S-f1] [f11] function-key-map)    
| (substitute-key-definition [S-f2] [f12] function-key-map)    
| (substitute-key-definition [S-f3] [f13] function-key-map)    
| (substitute-key-definition [S-f4] [f14] function-key-map)    
| (substitute-key-definition [S-f5] [f15] function-key-map)    
| (substitute-key-definition [S-f6] [f16] function-key-map))   
| (add-hook 'term-setup-hook 'fixmap)                          
`----
                                                             
This now works for emacs22 -nw but the modifiers don't work yet, 
The Super_R and Hyper_L don't work of course because they re only set up
for X apps.

C-q Hyper-L isn't passed through so I am not sure what the escape code is
and cant use global-set-key interactively. 


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

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

* Re: emacs-snapshot keybinding problem
  2006-01-02 20:24                   ` Angelina Carlton
@ 2006-01-03 12:58                     ` Peter Dyballa
  2006-01-03 22:49                       ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2006-01-03 12:58 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 02.01.2006 um 21:24 schrieb Angelina Carlton:

> | (substitute-key-definition [S-f5] [f15] function-key-map)
> | (substitute-key-definition [S-f6] [f16] function-key-map))
> | (add-hook 'term-setup-hook 'fixmap)
> `----
>

I hope the '))' means that some if or such block ends here ...

> This now works for emacs22 -nw but the modifiers don't work yet,
> The Super_R and Hyper_L don't work of course because they re only  
> set up
> for X apps.

All I can say (or, more exact: write) is: find a terminal emulation  
that accepts more than the Shift, Control, Mode_Switch modifiers and  
that is open to X Resource settings with these extra modifiers! gnome- 
terminal, kterm, mlterm could provide these extra options -- and  
maybe some X11 distribution (there are at least two, XFree 86 and  
X.Org) has an enhanced xterm. (aterm and eterm seem to be restricted  
to vt102 -- maybe they more!)

>
> C-q Hyper-L isn't passed through so I am not sure what the escape  
> code is
> and cant use global-set-key interactively.

Right! In a terminal emulation you must teach this one to translate a  
key event with modifier to produce some ANSI like escape codes which  
Emacs can understand.


Angelina, why do you want to restrict GNU Emacs to a command line  
programme? It has more powers as an X client. If you want to reach it  
from command line use emacsclient! In .emacs you just need to add a  
(server-start) statement and when you set in terminal environment  
variables like EDITOR or VISUAL to 'emacsclient ...' then quite all  
editing is delegated to X11 Emacs. You can load or execute Elisp  
code. With SecureShell and X11 tunnelling Emacs can run remotely  
displaying locally (my preferred way), tramp seems to allow being  
remotely logged in from local Emacs (I haven't checked that since I  
have no such needs).

--
Greetings

   Pete

If all else fails read the instructions. - Donald Knuth

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

* Re: emacs-snapshot keybinding problem
  2006-01-03 12:58                     ` Peter Dyballa
@ 2006-01-03 22:49                       ` Angelina Carlton
  2006-01-03 23:52                         ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: Angelina Carlton @ 2006-01-03 22:49 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> All I can say (or, more exact: write) is: find a terminal emulation
> that accepts more than the Shift, Control, Mode_Switch modifiers and
> that is open to X Resource settings with these extra modifiers! gnome-
> terminal, kterm, mlterm could provide these extra options -- and
> maybe some X11 distribution (there are at least two, XFree 86 and
> X.Org) has an enhanced xterm. (aterm and eterm seem to be restricted
> to vt102 -- maybe they more!)

Yeah, I will try to work on setting this up with Xterm or aterm and see
what happens.


> Angelina, why do you want to restrict GNU Emacs to a command line
> programme? It has more powers as an X client. If you want to reach it
> from command line use emacsclient! In .emacs you just need to add a
> (server-start) statement and when you set in terminal environment
> variables like EDITOR or VISUAL to 'emacsclient ...' then quite all
> editing is delegated to X11 Emacs. You can load or execute Elisp
> code. With SecureShell and X11 tunnelling Emacs can run remotely
> displaying locally (my preferred way), tramp seems to allow being
> remotely logged in from local Emacs (I haven't checked that since I
> have no such needs).

There are a few reasons I have always used -nw 
First, when I decided that I wanted to learn the Emacs editor, I thought
having menus and toolbars would hinder me in that I would take more time
to learn the keystrokes if a handy menu was in front of me. This did
seem speed up my learning and I have not since felt the need to go to
the GUI.

Secondly, there is  perception on my part of speed, files scroll faster
in my terminal, particularly font-locked ones. It just seems more crisp
and light in urxvt. I have of course done no testing of any kind to see
my ram and CPU usage between GUI and terminal but on my old laptop I do
think there is some difference. Hard to tell really on my faster
desktop.

Finally the look, I don't like so much the raised boxes you see in M-x
customize, w3m is less attractive to me in the GUI for some reason and
the fonts seem limited to a few foundry's and do not cover all the fonts
installed on my system. 

Who knows one day I might like the GUI too :-) It certainly looks much
nicer now it can be built with gtk support 

Anyway thanks so much for the help, I've learnt quite a bit and its
appreciated.

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

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

* Re: emacs-snapshot keybinding problem
  2006-01-03 22:49                       ` Angelina Carlton
@ 2006-01-03 23:52                         ` Peter Dyballa
  2006-01-04 21:51                           ` Angelina Carlton
       [not found]                           ` <mailman.21417.1136411578.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 22+ messages in thread
From: Peter Dyballa @ 2006-01-03 23:52 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 03.01.2006 um 23:49 schrieb Angelina Carlton:

> the fonts seem limited to a few foundry's and do not cover all the  
> fonts
> installed on my system.

Here is some code to create a more site specific fontsets menu:

(if (fboundp 'new-fontset)
   (progn
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Monotype Courier New - Unicode encoded TrueType font,  
version 2.82, 1318 glyphs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     (create-fontset-from-fontset-spec "-monotype-courier new-medium- 
r-*-*-9-*-*-*-*-*-fontset-09pt_monotype_courier" t 'noerror)
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-1   
'("courier new" . "iso8859-1"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-2   
'("courier new" . "iso8859-2"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-3   
'("courier new" . "iso8859-3"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-4   
'("courier new" . "iso8859-4"))
	(set-fontset-font "fontset-09pt_monotype_courier"    'cyrillic- 
iso8859-5  '("courier new" . "iso8859-5"))
	(set-fontset-font "fontset-09pt_monotype_courier"      'arabic- 
iso8859-6  '("courier new" . "iso8859-6"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'greek-iso8859-7   
'("courier new" . "iso8859-7"))
	(set-fontset-font "fontset-09pt_monotype_courier"      'hebrew- 
iso8859-8  '("courier new" . "iso8859-8"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-9   
'("courier new" . "iso8859-9"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-15  
'("courier new" . "iso8859-15"))
	(set-fontset-font "fontset-09pt_monotype_courier" 'mule- 
unicode-0100-24ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-09pt_monotype_courier" 'mule- 
unicode-2500-33ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-09pt_monotype_courier" 'mule-unicode-e000- 
ffff '("courier new" . "iso10646-1"))
; many more sizes, and many more such sets for the fonts found and  
chosen
;
; this can help Emacs to fill any gaps with adaquate glyphs
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Adobe Courier - Unicode encoded OpenType font, version  
1.020, 374 glyphs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    (create-fontset-from-fontset-spec "-adobe-courier-medium-r-*-*-11- 
*-*-*-*-*-fontset-11pt_adobe_courier" t 'noerror)
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-1  '("adobe-courier" . "iso8859-1"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-2  '("adobe-courier" . "iso8859-2"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-3  '("adobe-courier" . "iso8859-3"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-4  '("adobe-courier" . "iso8859-4"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'greek- 
iso8859-7  '("adobe-couriergr" . "iso8859-7"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-9  '("adobe-courier" . "iso8859-9"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-14 '("adobe-courier" . "iso8859-14"))
	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-15 '("adobe-courier" . "iso8859-15"))
;	(set-fontset-font "fontset-11pt_adobe_courier"       'latin- 
iso8859-16 '("adobe-courier" . "iso8859-16"))
	(set-fontset-font "fontset-11pt_adobe_courier" 'mule- 
unicode-0100-24ff '("adobe-courier" . "iso10646-1"))
	(set-fontset-font "fontset-11pt_adobe_courier" 'mule- 
unicode-2500-33ff '("adobe-courier" . "iso10646-1"))
	(set-fontset-font "fontset-11pt_adobe_courier" 'mule-unicode-e000- 
ffff '("adobe-courier" . "iso10646-1"))
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0370) (decode-char 'ucs #x03cf)) '("courier new" .  
"iso10646-1"))	; Greek
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x03d0) (decode-char 'ucs #x03ff)) '("lucida sans typewriter" .  
"iso10646-1"))	; Coptic
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0400) (decode-char 'ucs #x04ff)) '("lucida sans typewriter" .  
"iso10646-1"))	; Cyrillic
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0500) (decode-char 'ucs #x052f)) '("lucida sans typewriter" .  
"iso10646-1"))	; Cyrillic Supplement
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0530) (decode-char 'ucs #x058f)) '("aramian unicode" .  
"iso10646-1"))	; Armenian (sylfaen
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0590) (decode-char 'ucs #x05af)) '("lucida sans typewriter" .  
"iso10646-1"))	; Hebrew
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x05b0) (decode-char 'ucs #x05ff)) '("courier new" .  
"iso10646-1"))	; Hebrew
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0600) (decode-char 'ucs #x066f)) '("courier new" .  
"iso10646-1"))	; Arabic
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0670) (decode-char 'ucs #x06ff)) '("lucida sans typewriter" .  
"iso10646-1"))	; Arabic
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0700) (decode-char 'ucs #x074f)) '("titus cyberbit basic" .  
"iso10646-1"))	; Syriac
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0780) (decode-char 'ucs #x07bf)) '("titus cyberbit basic" .  
"iso10646-1"))	; Thaana
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0900) (decode-char 'ucs #x097f)) '("titus cyberbit basic" .  
"iso10646-1"))	; Devanagari
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0980) (decode-char 'ucs #x09ff)) '("code2000" .  
"iso10646-1"))	; Bengali
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0a00) (decode-char 'ucs #x0a7f)) '("code2000" .  
"iso10646-1"))	; Gurmukhi
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0a80) (decode-char 'ucs #x0aff)) '("code2000" .  
"iso10646-1"))	; Gujarati
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0b00) (decode-char 'ucs #x0b7f)) '("code2000" .  
"iso10646-1"))	; Oriya
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0b80) (decode-char 'ucs #x0bff)) '("code2000" .  
"iso10646-1"))	; Tamil
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0c00) (decode-char 'ucs #x0c7f)) '("code2000" .  
"iso10646-1"))	; Telugu
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0c80) (decode-char 'ucs #x0cff)) '("code2000" .  
"iso10646-1"))	; Kannada
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0d00) (decode-char 'ucs #x0d7f)) '("code2000" .  
"iso10646-1"))	; Malayalam
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0d80) (decode-char 'ucs #x0dff)) '("akshar unicode" .  
"iso10646-1"))	; Sinhala
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0e00) (decode-char 'ucs #x0e7f)) '("code2000" .  
"iso10646-1"))	; Thai
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0e80) (decode-char 'ucs #x0eff)) '("code2000" .  
"iso10646-1"))	; Lao
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x0f00) (decode-char 'ucs #x0fff)) '("xtashi" . "iso10646-1"))	;  
Tibetan
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1000) (decode-char 'ucs #x109f)) '("code2000" .  
"iso10646-1"))	; Myanmar
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x10a0) (decode-char 'ucs #x10ff)) '("everson mono unicode" .  
"iso10646-1"))	; Georgian
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1100) (decode-char 'ucs #x11ff)) '("code2000" .  
"iso10646-1"))	; Hangul Jamo
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1200) (decode-char 'ucs #x137f)) '("ethiopia jiret" .  
"iso10646-1"))	; Ethiopic
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x13a0) (decode-char 'ucs #x13ff)) '("everson mono unicode" .  
"iso10646-1"))	; Cherokee
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1400) (decode-char 'ucs #x167f)) '("everson mono unicode" .  
"iso10646-1"))	; Canadian Aboriginal Syllabics
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1680) (decode-char 'ucs #x169f)) '("everson mono unicode" .  
"iso10646-1"))	; Ogham
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x16a0) (decode-char 'ucs #x16ff)) '("everson mono unicode" .  
"iso10646-1"))	; Runic
;	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1700) (decode-char 'ucs #x171f)) '("code2000" .  
"iso10646-1"))	; Tagalog
;	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1720) (decode-char 'ucs #x173f)) '("code2000" .  
"iso10646-1"))	; Hanunoo
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1740) (decode-char 'ucs #x175f)) '("code2000" .  
"iso10646-1"))	; Buhid
;	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1760) (decode-char 'ucs #x177f)) '("code2000" .  
"iso10646-1"))	; Tagbanwa
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1780) (decode-char 'ucs #x17ff)) '("code2000" .  
"iso10646-1"))	; Khmer
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1800) (decode-char 'ucs #x18af)) '("code2000" .  
"iso10646-1"))	; Mongolian
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1900) (decode-char 'ucs #x194f)) '("code2000" .  
"iso10646-1"))	; Limbu
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1950) (decode-char 'ucs #x197f)) '("tai le valentinium" .  
"iso10646-1"))	; Tai Le
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x19e0) (decode-char 'ucs #x19ff)) '("cdt khmer" .  
"iso10646-1"))	; Khmer Symbols
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1d00) (decode-char 'ucs #x1d7f)) '("everson mono unicode" .  
"iso10646-1"))	; Phonetic Extensions
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1e00) (decode-char 'ucs #x1eff)) '("courier" .  
"iso10646-1"))	; Latin Extended Additional
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x1f00) (decode-char 'ucs #x1fff)) '("everson mono unicode" .  
"iso10646-1"))	; Greek Extended
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2000) (decode-char 'ucs #x206f)) '("everson mono unicode" .  
"iso10646-1"))	; General Puctuation
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2070) (decode-char 'ucs #x209f)) '("everson mono unicode" .  
"iso10646-1"))	; Superscripts and Subscripts
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x20a0) (decode-char 'ucs #x20cf)) '("everson mono unicode" .  
"iso10646-1"))	; Currency Symbols
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x20d0) (decode-char 'ucs #x20ff)) '("everson mono unicode" .  
"iso10646-1"))	; Combining Marks for Symbols
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2100) (decode-char 'ucs #x214f)) '("everson mono unicode" .  
"iso10646-1"))	; Letterlike Symbols
;	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2150) (decode-char 'ucs #x218f)) '("courier new" .  
"iso10646-1"))	; Number Forms
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2190) (decode-char 'ucs #x21ff)) '("code2000" .  
"iso10646-1"))	; *Arrows
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2200) (decode-char 'ucs #x22ff)) '("code2000" .  
"iso10646-1"))	; Mathematical Operators
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2300) (decode-char 'ucs #x23ff)) '("code2000" .  
"iso10646-1"))	; Miscellaneous Technical
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2400) (decode-char 'ucs #x243f)) '("code2000" .  
"iso10646-1"))	; Control Pictures
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2440) (decode-char 'ucs #x245f)) '("code2000" .  
"iso10646-1"))	; Optical Character Recognition
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2460) (decode-char 'ucs #x24ff)) '("code2000" .  
"iso10646-1"))	; Enclosed Alphanumerics
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2500) (decode-char 'ucs #x257f)) '("code2000" .  
"iso10646-1"))	; Box Drawing
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2580) (decode-char 'ucs #x259f)) '("code2000" .  
"iso10646-1"))	; Block Elements
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x25a0) (decode-char 'ucs #x25ff)) '("code2000" .  
"iso10646-1"))	; Geometric Shapes
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2600) (decode-char 'ucs #x26ff)) '("code2000" .  
"iso10646-1"))	; Miscellaneous Symbols
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2700) (decode-char 'ucs #x27bf)) '("code2000" .  
"iso10646-1"))	; Dingbats
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x27c0) (decode-char 'ucs #x27ef)) '("code2000" .  
"iso10646-1"))	; Miscellaneous Math Symbols-A
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x27f0) (decode-char 'ucs #x27ff)) '("code2000" .  
"iso10646-1"))	; Supplemental Arrows-A
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2800) (decode-char 'ucs #x28ff)) '("code2000" .  
"iso10646-1"))	; Braille Patterns
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2900) (decode-char 'ucs #x297f)) '("code2000" .  
"iso10646-1"))	; Supplemental Arrows-B
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2980) (decode-char 'ucs #x29ff)) '("code2000" .  
"iso10646-1"))	; Miscellaneous Math Symbols-B
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2a00) (decode-char 'ucs #x2aff)) '("code2000" .  
"iso10646-1"))	; Supplemental Math Operators
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2b00) (decode-char 'ucs #x2bff)) '("code2000" .  
"iso10646-1"))	; Miscellaneous Symbols and Arrows
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2e80) (decode-char 'ucs #x2eff)) '("code2000" .  
"iso10646-1"))	; CJK Radicals Supplement
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2f00) (decode-char 'ucs #x2fdf)) '("code2000" .  
"iso10646-1"))	; Kangxi Radicals
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x2ff0) (decode-char 'ucs #x2fff)) '("code2000" .  
"iso10646-1"))	; Ideographic Description Characters
	(set-fontset-font "fontset-11pt_adobe_courier" (cons (decode-char  
'ucs #x3000) (decode-char 'ucs #x303f)) '("code2000" .  
"iso10646-1"))	; CJK Symbols and Punctuation
))
; I'm not sure whether this is necessary, many glyphs are found  
without this help.
; The following code might define the same region with a font for all  
fontsets defined, but I'm not sure
;
     (let ((fontset (query-fontset (frame-parameter nil 'font))))
       (when (not fontset)
	(setq fontset "fontset-default")
	(set-default-font fontset))
	(set-fontset-font fontset
		(cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f)) (cons  
"misc-malayalam" "iso10646-1")); Malayam
     )
(provide 'site-fontsets-x11)


Then add to .emacs: (require 'site-fontsets-x11) and you can see some  
more fontsets to choose from.


To get a list of fonts Emacs sees: M-x set-frame-font RET TAB TAB  
RET, change into the *Completions* buffer and save it to a name  
you've found before. If you try to complete the name it will  
instantly overwrite the *Completions* buffer's contents!



Could be it's a splendid idea to learn Emacs without mouse! It should  
provide a deep knowledge of key bindings and how they can be used.

--
Greetings

   Pete                                           0
                                            %-/\_//
                                             (*)(*)

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

* Re: emacs-snapshot keybinding problem
  2006-01-02 16:36             ` Stefan Monnier
@ 2006-01-04 21:43               ` Angelina Carlton
  0 siblings, 0 replies; 22+ messages in thread
From: Angelina Carlton @ 2006-01-04 21:43 UTC (permalink / raw)


Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> So my function keys now go all the way up to F16 :-) and I have OPTL set
>> to Hyper_L and OPTR set to Super_R, I now need to
>> learn the syntax to bind something to the Super and Hyper keys
>> 
>> (global-set-key [(hyper q)] 'some-function) does not work.
>
> In what sense does it not work?
> If it doesn't work, it's a bug, which you should report via
> M-x report-emacs-bug

I apologies, it does work, the hyper key might have been mis-configured

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

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

* Re: emacs-snapshot keybinding problem
  2006-01-03 23:52                         ` Peter Dyballa
@ 2006-01-04 21:51                           ` Angelina Carlton
  2006-01-04 22:48                             ` Peter Dyballa
  2006-01-06  5:08                             ` Ian Zimmerman
       [not found]                           ` <mailman.21417.1136411578.20277.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 22+ messages in thread
From: Angelina Carlton @ 2006-01-04 21:51 UTC (permalink / raw)



Great, I set up the fonts like you suggested and today used Emacs only
with X, but using the same nice terminal font I am used to.

I set up my .emacs file to use ~/.emacs.d/customGUI.el and customTTY.el
so I can make changes and not worry about affecting my old setup.

I must admit after some use today it is not bad. I really like being
able to re size windows with the mouse as that's a bit tedious in tty mode
especially if there are numerous windows split both ways. 

Thank you once again!

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

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

* Re: emacs-snapshot keybinding problem
  2006-01-04 21:51                           ` Angelina Carlton
@ 2006-01-04 22:48                             ` Peter Dyballa
  2006-01-06  5:08                             ` Ian Zimmerman
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Dyballa @ 2006-01-04 22:48 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 04.01.2006 um 22:51 schrieb Angelina Carlton:

> I set up my .emacs file to use ~/.emacs.d/customGUI.el and  
> customTTY.el
> so I can make changes and not worry about affecting my old setup.

Do you know window-system? For example:

(if (not (string-match "XEmacs" mEV))
     (load (format "~/.emacs_%s" window-system))
)

I have:

-rw-r--r--   2 pete  21901 31 Dez 11:38 .emacs_mac	; Carbon Mac OS X
-rw-r--r--   1 pete   1789 12 Jul 11:12 .emacs_nil	; no windows
-rw-r--r--   2 pete   6078 25 Dez 16:59 .emacs_ns	; GNUstep
-rw-r--r--   2 pete   2181 16 Dez 23:28 .emacs_x	; X11

No Losedows around ...

--
Mit friedvollen Grüßen

   Pete

"Email is a wonderful thing for people whose role in life is to be on  
top of things. But not for me; my role is to be on the bottom of  
things. What I do takes long hours of studying and uninterruptible  
concentration."   -Donald Knuth

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

* Re: emacs-snapshot keybinding problem
       [not found]                           ` <mailman.21417.1136411578.20277.help-gnu-emacs@gnu.org>
@ 2006-01-05 10:57                             ` Romain Francoise
  2006-01-05 14:05                               ` Angelina Carlton
  0 siblings, 1 reply; 22+ messages in thread
From: Romain Francoise @ 2006-01-05 10:57 UTC (permalink / raw)


Angelina Carlton <brat@magma.ca> writes:

> I really like being able to re size windows with the mouse as that's a
> bit tedious in tty mode especially if there are numerous windows split
> both ways.

With `xterm-mouse-mode' you can resize windows with the mouse in
terminals, too.

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

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

* Re: emacs-snapshot keybinding problem
  2006-01-05 10:57                             ` Romain Francoise
@ 2006-01-05 14:05                               ` Angelina Carlton
  0 siblings, 0 replies; 22+ messages in thread
From: Angelina Carlton @ 2006-01-05 14:05 UTC (permalink / raw)


Romain Francoise <romain@orebokech.com> writes:

> Angelina Carlton <brat@magma.ca> writes:
>> I really like being able to re size windows with the mouse as that's a
>> bit tedious in tty mode especially if there are numerous windows split
>> both ways.
>
> With `xterm-mouse-mode' you can resize windows with the mouse in
> terminals, too.
>

Wow! Very nice

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

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

* Re: emacs-snapshot keybinding problem
  2006-01-04 21:51                           ` Angelina Carlton
  2006-01-04 22:48                             ` Peter Dyballa
@ 2006-01-06  5:08                             ` Ian Zimmerman
  2006-01-06 18:17                               ` Angelina Carlton
  1 sibling, 1 reply; 22+ messages in thread
From: Ian Zimmerman @ 2006-01-06  5:08 UTC (permalink / raw)
  Cc: help-gnu-emacs


Angelina> I really like being able to re size windows with the mouse as
Angelina> that's a bit tedious in tty mode especially if there are
Angelina> numerous windows split both ways.

I wrote a tiny module to help with that a while ago.  Look in the
.sources archives for wmanip.el

-- 
A true pessimist won't be discouraged by a little success.

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

* Re: emacs-snapshot keybinding problem
  2006-01-06  5:08                             ` Ian Zimmerman
@ 2006-01-06 18:17                               ` Angelina Carlton
  0 siblings, 0 replies; 22+ messages in thread
From: Angelina Carlton @ 2006-01-06 18:17 UTC (permalink / raw)


Ian Zimmerman <nobrowser@gmail.com> writes:


> I wrote a tiny module to help with that a while ago.  Look in the
> .sources archives for wmanip.el

Thanks, I really like this!

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

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

end of thread, other threads:[~2006-01-06 18:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.20812.1135883611.20277.help-gnu-emacs@gnu.org>
2005-12-30  4:49 ` emacs-snapshot keybinding problem Stefan Monnier
2005-12-30 14:21   ` Angelina Carlton
2005-12-30 15:45     ` Peter Dyballa
2005-12-30 18:31       ` Angelina Carlton
2005-12-30 23:52         ` Peter Dyballa
2005-12-31 15:41           ` Angelina Carlton
2005-12-31 17:21             ` Peter Dyballa
2006-01-01 18:04               ` Angelina Carlton
2006-01-01 18:57                 ` Peter Dyballa
2006-01-02 20:24                   ` Angelina Carlton
2006-01-03 12:58                     ` Peter Dyballa
2006-01-03 22:49                       ` Angelina Carlton
2006-01-03 23:52                         ` Peter Dyballa
2006-01-04 21:51                           ` Angelina Carlton
2006-01-04 22:48                             ` Peter Dyballa
2006-01-06  5:08                             ` Ian Zimmerman
2006-01-06 18:17                               ` Angelina Carlton
     [not found]                           ` <mailman.21417.1136411578.20277.help-gnu-emacs@gnu.org>
2006-01-05 10:57                             ` Romain Francoise
2006-01-05 14:05                               ` Angelina Carlton
2006-01-02 16:36             ` Stefan Monnier
2006-01-04 21:43               ` Angelina Carlton
2005-12-29 19:11 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.