* the evil f11
@ 2016-04-11 17:06 Uwe Brauer
2016-04-11 17:38 ` Nick Dokos
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2016-04-11 17:06 UTC (permalink / raw)
To: help-gnu-emacs
Hi
I am completely puzzled by the following, for ages my emacs_keys.el file
contained the line
(global-set-key [(f11)] 'capitalize-word)
However since some time (I cannot remember when)
C-h k f11 gives
,----
| <f11> runs the command toggle-frame-fullscreen (found in global-map),
| which is an interactive compiled Lisp function in ‘frame.el’.
|
| It is bound to <f11>.
`----
I usually have in my emacs init file the line
(load-library "emacs_keys.el")
or
(require 'emacs_keys)
Even if I load it manually f11 is still bound to
toggle-frame-fullscreen.
Only when I enter the emacs_keys.el file
and eval
(global-set-key [(f11)] 'capitalize-word)
Then everything is fine.
I don't understand this because all the other binding is fine. It turns
me crazy.
Any help is strongly appreciated.
Uwe Brauer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the evil f11
2016-04-11 17:06 the evil f11 Uwe Brauer
@ 2016-04-11 17:38 ` Nick Dokos
2016-04-11 18:05 ` Uwe Brauer
0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2016-04-11 17:38 UTC (permalink / raw)
To: help-gnu-emacs
Uwe Brauer <oub@mat.ucm.es> writes:
> Hi
>
> I am completely puzzled by the following, for ages my emacs_keys.el file
> contained the line
>
> (global-set-key [(f11)] 'capitalize-word)
>
> However since some time (I cannot remember when)
>
> C-h k f11 gives
> ,----
> | <f11> runs the command toggle-frame-fullscreen (found in global-map),
> | which is an interactive compiled Lisp function in ‘frame.el’.
> |
> | It is bound to <f11>.
> `----
>
> I usually have in my emacs init file the line
> (load-library "emacs_keys.el")
> or
> (require 'emacs_keys)
>
> Even if I load it manually f11 is still bound to
> toggle-frame-fullscreen.
>
> Only when I enter the emacs_keys.el file
> and eval
> (global-set-key [(f11)] 'capitalize-word)
>
> Then everything is fine.
>
> I don't understand this because all the other binding is fine. It turns
> me crazy.
>
> Any help is strongly appreciated.
>
I don't know if it makes any difference, but my key definitions don't
have parens around the function key name:
--8<---------------cut here---------------start------------->8---
...
(setq f7-keymap (make-sparse-keymap))
(define-key global-map [f7] f7-keymap)
(define-key f7-keymap [f7] 'org-agenda-list)
(define-key f7-keymap "c" 'org-capture)
...
--8<---------------cut here---------------end--------------->8---
--
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the evil f11
2016-04-11 17:38 ` Nick Dokos
@ 2016-04-11 18:05 ` Uwe Brauer
2016-04-11 19:25 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2016-04-11 18:05 UTC (permalink / raw)
To: help-gnu-emacs
> Uwe Brauer <oub@mat.ucm.es> writes:
> I don't know if it makes any difference, but my key definitions don't
> have parens around the function key name:
I deleted the parenthesis and it did not make a difference. I repeat:
If I do (with or without parenthesis)
(global-set-key [(f11)] 'capitalize-word)
^ C-x C-e
The binding is done.
If I put that line in my init file
the key is bound.
But if I have it in another file (byte compiled or not) which is loaded
by my init file then f11 is *not* bound.
It starts to look like a bug to me. Maybe some of the developers can say
something about it, if not I submit a bug report.
Uwe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the evil f11
2016-04-11 18:05 ` Uwe Brauer
@ 2016-04-11 19:25 ` Eli Zaretskii
2016-04-11 19:55 ` Uwe Brauer
2016-04-12 9:28 ` Uwe Brauer
0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2016-04-11 19:25 UTC (permalink / raw)
To: help-gnu-emacs
> From: Uwe Brauer <oub@mat.ucm.es>
> Date: Mon, 11 Apr 2016 18:05:36 +0000
>
> I repeat:
>
> If I do (with or without parenthesis)
>
> (global-set-key [(f11)] 'capitalize-word)
> ^ C-x C-e
>
> The binding is done.
>
> If I put that line in my init file
> the key is bound.
>
>
> But if I have it in another file (byte compiled or not) which is loaded
> by my init file then f11 is *not* bound.
>
> It starts to look like a bug to me. Maybe some of the developers can say
> something about it, if not I submit a bug report.
All this developer can say is I cannot reproduce this. I made a
.emacs file that includes only one line:
(load "~/einit.el")
I then made a file einit.el that also includes one line:
(global-set-key [(f11)] 'capitalize-word)
I then started Emacs and "C-h c f11" says it's bound to
capitalize-word, as expected.
So please look at the details of your init files, and see what you
didn't tell us.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the evil f11
2016-04-11 19:25 ` Eli Zaretskii
@ 2016-04-11 19:55 ` Uwe Brauer
2016-04-12 9:28 ` Uwe Brauer
1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2016-04-11 19:55 UTC (permalink / raw)
To: help-gnu-emacs
> All this developer can say is I cannot reproduce this. I made a
> .emacs file that includes only one line:
> (load "~/einit.el")
> I then made a file einit.el that also includes one line:
> (global-set-key [(f11)] 'capitalize-word)
Ok I did the same with emacs -Q
and it works
I started emacs -Q again and loaded my emacs_keys file and it failed. So
something is strange in that file. When I find out I will report back,
save it is completely stupid.
thanks
Uwe
> I then started Emacs and "C-h c f11" says it's bound to
> capitalize-word, as expected.
> So please look at the details of your init files, and see what you
> didn't tell us.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the evil f11
2016-04-11 19:25 ` Eli Zaretskii
2016-04-11 19:55 ` Uwe Brauer
@ 2016-04-12 9:28 ` Uwe Brauer
1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2016-04-12 9:28 UTC (permalink / raw)
To: help-gnu-emacs
> So please look at the details of your init files, and see what you
> didn't tell us.
Sorry, my apologies my emacs_keys.el file was corrupt. Sorry for the noise.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-04-12 9:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 17:06 the evil f11 Uwe Brauer
2016-04-11 17:38 ` Nick Dokos
2016-04-11 18:05 ` Uwe Brauer
2016-04-11 19:25 ` Eli Zaretskii
2016-04-11 19:55 ` Uwe Brauer
2016-04-12 9:28 ` Uwe Brauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).