From: Nikola Skoric <nick-news@net4u.hr>
To: help-gnu-emacs@gnu.org
Subject: Re: binding a command and a parameter
Date: Sun, 14 Oct 2007 20:46:06 +0000 (UTC) [thread overview]
Message-ID: <fetv6e$sra$1@ss408.t-com.hr> (raw)
In-Reply-To: slrnfh4sve.4pv.joostkremers@j.kremers4.news.arnhem.chello.nl
Dana 14 Oct 2007 19:54:55 GMT,
Joost Kremers <joostkremers@yahoo.com> kaze:
> Nikola Skoric wrote:
>> Of course dvi file is up-to-date since I'm editing .tex file which is then
>> \included to .tex file I'm compiling (main fail doesn't change). So, my default
>> option is always view :-)
>
> then there is something not entirely right about your setup. my first guess
> would be that you don't have a TeX-master set in your included files. if
> you do, AUCTeX will know that the file you're editing is not the master
> file, and will do the right thing if you compile your document. (what i
> mean is, you can then type C-c C-c in your included file, the one you're
> editing, and AUCTeX will know that it should actually compile the master
> file; it will also know that even though the master file hasn't changed, it
> must still run LaTeX on in, instead of xdvi.)
Wow. I constanty forget that both latex and emacs are older than me so every
problem I have has already been solved.
> the way to do this is to include a block of Local Variables in all of your
> latex files, right at the end:
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "thesis"
> %%% End:
Hm. Interesting thing happens now. If I now do the C-c C-c latex thing from
main file - everything's fine. But, if I do it from included file, I get
errors. I then click the yellow triangle error icon and it opens *main_file
output* which has no errors in it. When I click that icon it usualy opens
*TeX Help* buffer and points to the line with error, but not this time...
So I just can't figure out where the error is.
>>> however, the prompt sports TAB-completion, so all you really need to type
>>> to get latex is just `l', then hit RETURN.
>>
>> Arrow up works fine to, but I'd really like to learn how to bind this kind of
>> commands. :-D
>
> well, i guess binding a command plus interactive input to a key isn't the
> most common thing to do.
OK, fair enough :-)
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
next prev parent reply other threads:[~2007-10-14 20:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-13 19:09 binding a command and a parameter Nikola Skoric
2007-10-13 22:41 ` Peter Dyballa
[not found] ` <mailman.2032.1192315305.18990.help-gnu-emacs@gnu.org>
2007-10-14 9:21 ` Nikola Skoric
2007-10-14 16:57 ` Maarten Bergvelt
2007-10-14 17:26 ` Nikola Skoric
2007-10-14 17:40 ` Nikola Skoric
2007-10-14 17:57 ` Joost Kremers
2007-10-14 19:18 ` Nikola Skoric
2007-10-14 19:54 ` Joost Kremers
2007-10-14 20:46 ` Nikola Skoric [this message]
2007-10-14 21:11 ` Nikola Skoric
2007-10-14 22:17 ` Joost Kremers
2007-10-14 22:25 ` David Kastrup
2007-10-15 18:37 ` Joost Kremers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fetv6e$sra$1@ss408.t-com.hr' \
--to=nick-news@net4u.hr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.