all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what are the commands on the menu
@ 2005-04-05 12:49 Olive
  2005-04-05 13:08 ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Olive @ 2005-04-05 12:49 UTC (permalink / raw)


Hello,

I used to use the standard TeX mode but D. Kastrup have convinced me 
that auctex is better. My principal trouble about it is that I can't 
figure out on what functions the command on the menu are bound. I would 
like to define "\C-c\C-f" to be bound to the LaTeX command I see in the 
menu (to emulate the key in the stand. mode). But if a do a describe-key 
on this item; I get something like menu-function-<some-number>; which I 
think is dynamically generated (?)

Anyone has a suggestion,

Olive

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

* Re: what are the commands on the menu
  2005-04-05 12:49 what are the commands on the menu Olive
@ 2005-04-05 13:08 ` David Kastrup
  2005-04-05 13:37   ` Olive
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-04-05 13:08 UTC (permalink / raw)


Olive <olive.lin@versateladsl.be> writes:

> I used to use the standard TeX mode but D. Kastrup have convinced me
> that auctex is better.

Actually, it was not really my intent to turn you from the default
tex-mode.el as long as it was an informed decision.

> My principal trouble about it is that I can't figure out on what
> functions the command on the menu are bound.  I would like to define
> "\C-c\C-f" to be bound to the LaTeX command I see in the menu (to
> emulate the key in the stand. mode).

This can be called a deficiency of AUCTeX, so it would probably be
best discussed on auctex-devel at gnu.org.

> But if a do a describe-key on this item; I get something like
> menu-function-<some-number>; which I think is dynamically generated
> (?)

Yes, more or less.

You probably want something like

  (TeX-command "LaTeX" 'TeX-master-file 0)

to run the command "LaTeX" on the master file without prompting.  If
you have a good suggestion where to add information like that in the
documentation (which really could make use of a lot of improvement),
please address it to the developer list which is usually quite
responsive.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: what are the commands on the menu
  2005-04-05 13:08 ` David Kastrup
@ 2005-04-05 13:37   ` Olive
  2005-04-05 13:53     ` David Kastrup
  0 siblings, 1 reply; 4+ messages in thread
From: Olive @ 2005-04-05 13:37 UTC (permalink / raw)


David Kastrup wrote:
> Olive <olive.lin@versateladsl.be> writes:
> 
> 
>>I used to use the standard TeX mode but D. Kastrup have convinced me
>>that auctex is better.
> 
> 
> Actually, it was not really my intent to turn you from the default
> tex-mode.el as long as it was an informed decision.
> 
> 
>>My principal trouble about it is that I can't figure out on what
>>functions the command on the menu are bound.  I would like to define
>>"\C-c\C-f" to be bound to the LaTeX command I see in the menu (to
>>emulate the key in the stand. mode).
> 
> 
> This can be called a deficiency of AUCTeX, so it would probably be
> best discussed on auctex-devel at gnu.org.
> 
> 
>>But if a do a describe-key on this item; I get something like
>>menu-function-<some-number>; which I think is dynamically generated
>>(?)
> 
> 
> Yes, more or less.
> 
> You probably want something like
> 
>   (TeX-command "LaTeX" 'TeX-master-file 0)

I had already tried this (after having looked in the source code; trying 
to guess how thing are done); but then the files are not saved if there 
are been modified (I have configured auctex to save all the modified 
files). I have not tried to remake the LaTeX command by trying to save 
the files myself since this command already exists and I tought that all 
I have to do is to "locate it".

Olive

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

* Re: what are the commands on the menu
  2005-04-05 13:37   ` Olive
@ 2005-04-05 13:53     ` David Kastrup
  0 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2005-04-05 13:53 UTC (permalink / raw)


Olive <olive.lin@versateladsl.be> writes:

> David Kastrup wrote:
>> Olive <olive.lin@versateladsl.be> writes:
>> 
>>>I used to use the standard TeX mode but D. Kastrup have convinced me
>>>that auctex is better.
>> Actually, it was not really my intent to turn you from the default
>> tex-mode.el as long as it was an informed decision.
>> 
>>>My principal trouble about it is that I can't figure out on what
>>>functions the command on the menu are bound.  I would like to define
>>>"\C-c\C-f" to be bound to the LaTeX command I see in the menu (to
>>>emulate the key in the stand. mode).
>> This can be called a deficiency of AUCTeX, so it would probably be
>> best discussed on auctex-devel at gnu.org.
>> 
>>>But if a do a describe-key on this item; I get something like
>>>menu-function-<some-number>; which I think is dynamically generated
>>>(?)
>> Yes, more or less.
>> You probably want something like
>>   (TeX-command "LaTeX" 'TeX-master-file 0)
>
> I had already tried this (after having looked in the source code;
> trying to guess how thing are done); but then the files are not
> saved if there are been modified (I have configured auctex to save
> all the modified files). I have not tried to remake the LaTeX
> command by trying to save the files myself since this command
> already exists and I tought that all I have to do is to "locate it".

No such command exists yet.  This is done in the course of
TeX-command-query which is not consulted here.  You need to do
something like

  (TeX-save-document (TeX-master-file))

yourself.  Again: this is rather a topic for the developer list of
AUCTeX than for this group.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

end of thread, other threads:[~2005-04-05 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 12:49 what are the commands on the menu Olive
2005-04-05 13:08 ` David Kastrup
2005-04-05 13:37   ` Olive
2005-04-05 13:53     ` David Kastrup

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.