all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot set F6 key in .emacs nor in site-start.el
@ 2012-05-01 12:14 Alexandre Oberlin
  2012-05-01 12:29 ` Bernardo
  2012-05-01 16:18 ` Peter Dyballa
  0 siblings, 2 replies; 7+ messages in thread
From: Alexandre Oberlin @ 2012-05-01 12:14 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

All my global-set-key work fine, except
(global-set-key  [f6] 'other-window)

It is undefined once my emacs has started. (GNU Emacs 23.2.1 
(i386-redhat-linux-gnu, GTK+ Version 2.21.4)

I have no error listed in *Messages* and keys settings or commands 
placed below in the .emacs are OK. Only F6 is not bound.

Manually evaluating the above expression directly in my .emacs with 
CTRL-x CTRL-e works fine though.

I have no clue...

Cheers,




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

* Re: Cannot set F6 key in .emacs nor in site-start.el
  2012-05-01 12:14 Cannot set F6 key in .emacs nor in site-start.el Alexandre Oberlin
@ 2012-05-01 12:29 ` Bernardo
  2012-05-01 12:38   ` Bernardo
       [not found]   ` <mailman.350.1335875941.855.help-gnu-emacs@gnu.org>
  2012-05-01 16:18 ` Peter Dyballa
  1 sibling, 2 replies; 7+ messages in thread
From: Bernardo @ 2012-05-01 12:29 UTC (permalink / raw)
  Cc: emacs help

> All my global-set-key work fine, except
> (global-set-key  [f6] 'other-window)
> 
> It is undefined once my emacs has started. (GNU Emacs 23.2.1 
> (i386-redhat-linux-gnu, GTK+ Version 2.21.4)
> 
> I have no error listed in *Messages* and keys settings or commands 
> placed below in the .emacs are OK. Only F6 is not bound.
> 
> Manually evaluating the above expression directly in my .emacs with 
> CTRL-x CTRL-e works fine though.
> 

something else overrides your setting?
what happens if you put it at the end of .emacs?
what do you see after hitting F6 and then C-h k?





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

* Re: Cannot set F6 key in .emacs nor in site-start.el
  2012-05-01 12:29 ` Bernardo
@ 2012-05-01 12:38   ` Bernardo
       [not found]   ` <mailman.350.1335875941.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Bernardo @ 2012-05-01 12:38 UTC (permalink / raw)
  To: emacs help

> what do you see after hitting F6 and then C-h k?

this should've been: F6 then C-h l
but you can also try C-h k f6




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

* [SOLVED] Re: Cannot set F6 key in .emacs nor in site-start.el
       [not found]   ` <mailman.350.1335875941.855.help-gnu-emacs@gnu.org>
@ 2012-05-01 14:48     ` Alexandre Oberlin
  2012-05-15 20:38       ` Alexandre Oberlin
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Oberlin @ 2012-05-01 14:48 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks a lot Bernardo for your suggestions.

I restart emacs to cancel manual key assignment:
F6 output:
<f6> is undefined

F6 C-h l output:
<f6> C-h l

C-h k F6 output:
<f6> is undefined

My other global-set-key work fine from site-start.el. Now if i put the 
(global-set-key  [f6] 'other-window) at the end of .emacs as you 
suggested, IT WORKS! though I'd bet I tried it before (my .emacs has 
changed since then). I'll try to spot the offending command.

I once had a similar problem on Fedora 14 due to a
/usr/share/emacs/site-lisp/default.el
which was loaded after .emacs.
However this had been fixed using
(setq inhibit-default-init t)
and my default.el file is empty anyway.

Cheers,

Alexandre

On 05/01/2012 02:38 PM, Bernardo wrote:
>> what do you see after hitting F6 and then C-h k?
>
> this should've been: F6 then C-h l
> but you can also try C-h k f6
>
>



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

* Re: Cannot set F6 key in .emacs nor in site-start.el
  2012-05-01 12:14 Cannot set F6 key in .emacs nor in site-start.el Alexandre Oberlin
  2012-05-01 12:29 ` Bernardo
@ 2012-05-01 16:18 ` Peter Dyballa
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2012-05-01 16:18 UTC (permalink / raw)
  To: Alexandre Oberlin; +Cc: help-gnu-emacs


Am 01.05.2012 um 14:14 schrieb Alexandre Oberlin:

> All my global-set-key work fine, except
> (global-set-key  [f6] 'other-window)

Have you tried it interactively? With C-x ESC ESC you can recall the command and see whether F6 really is F6...

--
Greetings

  Pete

The box said "Use Windows 95 or better," so I got a Macintosh.




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

* Re: [SOLVED] Re: Cannot set F6 key in .emacs nor in site-start.el
  2012-05-01 14:48     ` [SOLVED] " Alexandre Oberlin
@ 2012-05-15 20:38       ` Alexandre Oberlin
  2012-05-16 12:53         ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Oberlin @ 2012-05-15 20:38 UTC (permalink / raw)
  To: help-gnu-emacs

On 05/01/2012 04:48 PM, Alexandre Oberlin wrote:
>  I'll try to spot the offending command.
The offending command is:
(cua-selection-mode nil)

If I define f6 before this call, it ends up undefined.

Alexandre




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

* Re: [SOLVED] Re: Cannot set F6 key in .emacs nor in site-start.el
  2012-05-15 20:38       ` Alexandre Oberlin
@ 2012-05-16 12:53         ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2012-05-16 12:53 UTC (permalink / raw)
  To: help-gnu-emacs

>> I'll try to spot the offending command.
> The offending command is:
> (cua-selection-mode nil)
> If I define f6 before this call, it ends up undefined.

That's odd: "grep f6 lisp/emulation/cua*.el" doesn't return anything.


        Stefan


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

end of thread, other threads:[~2012-05-16 12:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-01 12:14 Cannot set F6 key in .emacs nor in site-start.el Alexandre Oberlin
2012-05-01 12:29 ` Bernardo
2012-05-01 12:38   ` Bernardo
     [not found]   ` <mailman.350.1335875941.855.help-gnu-emacs@gnu.org>
2012-05-01 14:48     ` [SOLVED] " Alexandre Oberlin
2012-05-15 20:38       ` Alexandre Oberlin
2012-05-16 12:53         ` Stefan Monnier
2012-05-01 16:18 ` Peter Dyballa

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.