all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* binding f12
@ 2012-07-26 22:11 Jai Dayal
  2012-07-26 22:27 ` Peter Dyballa
  2012-07-26 22:49 ` Jeremiah Dodds
  0 siblings, 2 replies; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:11 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

Hi, I'm trying to bind f12 to compile.  In my .emacs file, i do

(global-set-key "f12" 'compile)

however, every time I press f12, it says <f12> is undefined

How do I specify f keys for global-set-key in the .emacs file?

Jai

[-- Attachment #2: Type: text/html, Size: 284 bytes --]

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

* Re: binding f12
  2012-07-26 22:11 binding f12 Jai Dayal
@ 2012-07-26 22:27 ` Peter Dyballa
  2012-07-26 22:28   ` Jai Dayal
  2012-07-26 22:49 ` Jeremiah Dodds
  1 sibling, 1 reply; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 22:27 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs


Am 27.07.2012 um 00:11 schrieb Jai Dayal:

> (global-set-key "f12" 'compile)

I think it has to be

	[f12]

a vector and a string.

You can bind the key manually first. When you succeeded you can repeat the last command (C-x ESC ESC) and, if necessary, you go back in history with the cursor keys. Then you'll see what the syntax has to be. And you can copy that command and insert it in your init file…

--
Greetings

  Pete

Increase the size of your bike by at least *five* inches!




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

* Re: binding f12
  2012-07-26 22:27 ` Peter Dyballa
@ 2012-07-26 22:28   ` Jai Dayal
  2012-07-26 22:30     ` Peter Dyballa
  0 siblings, 1 reply; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:28 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

Hi,
  I now tried
(global-set-key [f12] 'compile)

and it still says it's undefined.

On Thu, Jul 26, 2012 at 4:27 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:

>
> Am 27.07.2012 um 00:11 schrieb Jai Dayal:
>
> > (global-set-key "f12" 'compile)
>
> I think it has to be
>
>         [f12]
>
> a vector and a string.
>
> You can bind the key manually first. When you succeeded you can repeat the
> last command (C-x ESC ESC) and, if necessary, you go back in history with
> the cursor keys. Then you'll see what the syntax has to be. And you can
> copy that command and insert it in your init file…
>
> --
> Greetings
>
>   Pete
>
> Increase the size of your bike by at least *five* inches!
>
>

[-- Attachment #2: Type: text/html, Size: 1064 bytes --]

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

* Re: binding f12
  2012-07-26 22:28   ` Jai Dayal
@ 2012-07-26 22:30     ` Peter Dyballa
  2012-07-26 22:33       ` Jai Dayal
       [not found]       ` <CAMJ-YiQ-aXvnsX3pPp0OfVR2Nwn6A=LrbfjUjMoYtZtpyxv5WQ@mail.gmail.com>
  0 siblings, 2 replies; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 22:30 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs


Am 27.07.2012 um 00:28 schrieb Jai Dayal:

>  I now tried
> (global-set-key [f12] 'compile)
> 
> and it still says it's undefined.

Then try it manually! Or is it that you don't believe what you see?

--
Greetings

  Pete

These are my principles and if you don't like them... well, I have others.
				- Groucho Marx




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

* Re: binding f12
  2012-07-26 22:30     ` Peter Dyballa
@ 2012-07-26 22:33       ` Jai Dayal
  2012-07-26 22:39         ` Peter Dyballa
       [not found]       ` <CAMJ-YiQ-aXvnsX3pPp0OfVR2Nwn6A=LrbfjUjMoYtZtpyxv5WQ@mail.gmail.com>
  1 sibling, 1 reply; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:33 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

Okay, I did it manually (since I typed the file, I am still doing it
manually.. it certainly wasn't done by anything else, but me.  By manually,
you mean M-x.....)

the last command then was

(global-set-key [f12] (quote compile))

doesn't work in .emacs file

On Thu, Jul 26, 2012 at 4:30 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:

>
> Am 27.07.2012 um 00:28 schrieb Jai Dayal:
>
> >  I now tried
> > (global-set-key [f12] 'compile)
> >
> > and it still says it's undefined.
>
> Then try it manually! Or is it that you don't believe what you see?
>
> --
> Greetings
>
>   Pete
>
> These are my principles and if you don't like them... well, I have others.
>                                 - Groucho Marx
>
>

[-- Attachment #2: Type: text/html, Size: 1106 bytes --]

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

* Re: binding f12
       [not found]       ` <CAMJ-YiQ-aXvnsX3pPp0OfVR2Nwn6A=LrbfjUjMoYtZtpyxv5WQ@mail.gmail.com>
@ 2012-07-26 22:35         ` Peter Dyballa
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 22:35 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs List


Am 27.07.2012 um 00:31 schrieb Jai Dayal:

> I'm not sure what you mean "set it manually".

M-x global-set-key RET <etc.>.


I also mentioned that you could find the working command to bind the f12 key and that you could insert it into your init file.

--
Greetings

  Pete

One-Shot Case Study, n.:
	The scientific equivalent of the four-leaf clover, from which it is concluded all clovers possess four leaves and are sometimes green.




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

* Re: binding f12
  2012-07-26 22:33       ` Jai Dayal
@ 2012-07-26 22:39         ` Peter Dyballa
  2012-07-26 22:47           ` Jai Dayal
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 22:39 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs


Am 27.07.2012 um 00:33 schrieb Jai Dayal:

> (global-set-key [f12] (quote compile))

Yes, this looks like a global-set-key command from the command history. The text "(quote compile)" can be abbreviated to "'compile".

> 
> doesn't work in .emacs file

What is your procedure to find this? Which proofs indicate that your testimony is correct?

--
Greetings

  Pete
                      ~  o
                       ~_\\_/\
                      ~  O   O




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

* Re: binding f12
  2012-07-26 22:39         ` Peter Dyballa
@ 2012-07-26 22:47           ` Jai Dayal
  2012-07-26 23:02             ` Peter Dyballa
  0 siblings, 1 reply; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:47 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

simple,

edit the .emacs file, launch emacs, other global-set-key declarations work

f12 declaration does not.

On Thu, Jul 26, 2012 at 4:39 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:

>
> Am 27.07.2012 um 00:33 schrieb Jai Dayal:
>
> > (global-set-key [f12] (quote compile))
>
> Yes, this looks like a global-set-key command from the command history.
> The text "(quote compile)" can be abbreviated to "'compile".
>
> >
> > doesn't work in .emacs file
>
> What is your procedure to find this? Which proofs indicate that your
> testimony is correct?
>
> --
> Greetings
>
>   Pete
>                       ~  o
>                        ~_\\_/\
>                       ~  O   O
>
>

[-- Attachment #2: Type: text/html, Size: 1070 bytes --]

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

* Re: binding f12
  2012-07-26 22:11 binding f12 Jai Dayal
  2012-07-26 22:27 ` Peter Dyballa
@ 2012-07-26 22:49 ` Jeremiah Dodds
  2012-07-26 22:52   ` Jai Dayal
  1 sibling, 1 reply; 13+ messages in thread
From: Jeremiah Dodds @ 2012-07-26 22:49 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs

Jai Dayal <dayalsoap@gmail.com> writes:

> Hi, I'm trying to bind f12 to compile. In my .emacs file, i do
>
> (global-set-key "f12" 'compile)
>
> however, every time I press f12, it says <f12> is undefined
>
> How do I specify f keys for global-set-key in the .emacs file?
>
> Jai
>
>

(global-set-key [f12] 'compile)

-- 
Jeremiah Dodds

github: https://github.com/jdodds
irc   : exhortatory



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

* Re: binding f12
  2012-07-26 22:49 ` Jeremiah Dodds
@ 2012-07-26 22:52   ` Jai Dayal
  2012-07-26 22:59     ` Jai Dayal
  0 siblings, 1 reply; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:52 UTC (permalink / raw)
  To: Jeremiah Dodds; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

Thank you for the response.

I do try it with [f12] and when pressing f12, it still says <f12> is
undefined.

emacs version 24.1.1

On Thu, Jul 26, 2012 at 4:49 PM, Jeremiah Dodds <jeremiah.dodds@gmail.com>wrote:

> Jai Dayal <dayalsoap@gmail.com> writes:
>
> > Hi, I'm trying to bind f12 to compile. In my .emacs file, i do
> >
> > (global-set-key "f12" 'compile)
> >
> > however, every time I press f12, it says <f12> is undefined
> >
> > How do I specify f keys for global-set-key in the .emacs file?
> >
> > Jai
> >
> >
>
> (global-set-key [f12] 'compile)
>
> --
> Jeremiah Dodds
>
> github: https://github.com/jdodds
> irc   : exhortatory
>

[-- Attachment #2: Type: text/html, Size: 1260 bytes --]

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

* Re: binding f12
  2012-07-26 22:52   ` Jai Dayal
@ 2012-07-26 22:59     ` Jai Dayal
  2012-07-26 23:05       ` Peter Dyballa
  0 siblings, 1 reply; 13+ messages in thread
From: Jai Dayal @ 2012-07-26 22:59 UTC (permalink / raw)
  To: Jeremiah Dodds; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

After restarting my macbook, [f12] works (didn't make any changes with the
.emacs file between restarts).  strange.

Jai

On Thu, Jul 26, 2012 at 4:52 PM, Jai Dayal <dayalsoap@gmail.com> wrote:

> Thank you for the response.
>
> I do try it with [f12] and when pressing f12, it still says <f12> is
> undefined.
>
> emacs version 24.1.1
>
>
> On Thu, Jul 26, 2012 at 4:49 PM, Jeremiah Dodds <jeremiah.dodds@gmail.com>wrote:
>
>> Jai Dayal <dayalsoap@gmail.com> writes:
>>
>> > Hi, I'm trying to bind f12 to compile. In my .emacs file, i do
>> >
>> > (global-set-key "f12" 'compile)
>> >
>> > however, every time I press f12, it says <f12> is undefined
>> >
>> > How do I specify f keys for global-set-key in the .emacs file?
>> >
>> > Jai
>> >
>> >
>>
>> (global-set-key [f12] 'compile)
>>
>> --
>> Jeremiah Dodds
>>
>> github: https://github.com/jdodds
>> irc   : exhortatory
>>
>
>

[-- Attachment #2: Type: text/html, Size: 1742 bytes --]

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

* Re: binding f12
  2012-07-26 22:47           ` Jai Dayal
@ 2012-07-26 23:02             ` Peter Dyballa
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 23:02 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs


Am 27.07.2012 um 00:47 schrieb Jai Dayal:

> edit the .emacs file, launch emacs, other global-set-key declarations work

Did you save it after the change? Is the statement reached? Before and after it you could insert an explanatory (message …) statement (I'm before/I'm after). Is the f12 key defined after you have bound it to the compile command manually? Which function key bindings are listed in the output of C-h b? You could also isearch for compile…

What happens when load GNU Emacs with -Q and and -l <an Elisp file containing the command to bind f12 to compile>? You could also pass this bind command on the command line…

--
Greetings

  Pete       (:
        _    / __    -    -
      _/ \__/_/        -     -
     (´`)      (´`)   -    -
      `´        `´




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

* Re: binding f12
  2012-07-26 22:59     ` Jai Dayal
@ 2012-07-26 23:05       ` Peter Dyballa
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2012-07-26 23:05 UTC (permalink / raw)
  To: Jai Dayal; +Cc: help-gnu-emacs


Am 27.07.2012 um 00:59 schrieb Jai Dayal:

> After restarting my macbook, [f12] works (didn't make any changes with the
> .emacs file between restarts).  strange.

The f12 key is not available to GNU Emacs in a MacBook. This key is reserved for Mac OS X specific things.

--
Greetings

  Pete

"By filing this bug report you have challenged the honor of my family. Prepare to die!"




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

end of thread, other threads:[~2012-07-26 23:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 22:11 binding f12 Jai Dayal
2012-07-26 22:27 ` Peter Dyballa
2012-07-26 22:28   ` Jai Dayal
2012-07-26 22:30     ` Peter Dyballa
2012-07-26 22:33       ` Jai Dayal
2012-07-26 22:39         ` Peter Dyballa
2012-07-26 22:47           ` Jai Dayal
2012-07-26 23:02             ` Peter Dyballa
     [not found]       ` <CAMJ-YiQ-aXvnsX3pPp0OfVR2Nwn6A=LrbfjUjMoYtZtpyxv5WQ@mail.gmail.com>
2012-07-26 22:35         ` Peter Dyballa
2012-07-26 22:49 ` Jeremiah Dodds
2012-07-26 22:52   ` Jai Dayal
2012-07-26 22:59     ` Jai Dayal
2012-07-26 23:05       ` 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.