unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ralf Angeli <dev.null@caeruleus.net>
To: help-gnu-emacs@gnu.org
Subject: Re: file/local variables (and auctex?)
Date: Tue, 10 Apr 2007 19:33:34 +0200	[thread overview]
Message-ID: <461bca6d$0$6405$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: m3d52cwm8p.fsf@timbral.net

* thorne (2007-04-10) writes:

> Hello.  I am working on a file and in its current incarnation it has a
> file variables (first) line that looks like this:
>
> % -*- fill-column: 60; -*- 
>
> and a local variables (last) section that looks like this:
>
> % Local Variables: %
> % mode:latex %
> % mode:longlines %
> % tab-width:5 %
> % tex-open-quote:"\"" %
> % tex-close-quote:"\"" %
> % indent-tabs-mode:nil %
> % indent-line-function:insert-tab %
> % End: % 

There is some spurious whitespace at the end of the last line.  This
prevents the whole stanza from being processed since the suffixes do
not match.

> The problem:  latex mode and longlines do turn on and everything works
> except setting fill-column and setting the tex open/close quote
> string.  C-h v fill-column RET tells me it is set to 68 instead of
> 60.

You specified to call LaTeX mode in the local variables stanza.  This
mode will be called after `fill-column' is set and call
`kill-all-local-variables' which kills off the local value of
`fill-column'.  Solution: Set all variables in the local variables
stanza _after_ specifying the major mode.

> Stranger, is that the tex open/close quote string tells me (when
> i do C-h v) that they _are_ set correctly... yet when i acually type
> a quote in the buffer, it inserts the default tex quotes.  I am
> baffled.  Can anyone clue me in on what may be wrong?  

The variables in AUCTeX are called `TeX-open-quote' and
`TeX-close-quote', not `tex-open-quote' and `tex-close-quote'.

-- 
Ralf

  reply	other threads:[~2007-04-10 17:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 10:35 file/local variables (and auctex?) thorne
2007-04-10 17:33 ` Ralf Angeli [this message]
2007-04-11  0:40   ` thorne
  -- strict thread matches above, loose matches on Subject: below --
2007-04-11  5:53 martin rudalics
     [not found] <mailman.1938.1176270970.7795.help-gnu-emacs@gnu.org>
2007-04-11 16:55 ` Ralf Angeli
2007-04-12  8:34 martin rudalics

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='461bca6d$0$6405$9b4e6d93@newsspool2.arcor-online.net' \
    --to=dev.null@caeruleus.net \
    --cc=angeli@caeruleus.net \
    --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.
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).