* [Fwd: Re: auto-fill in Emacs-22.1]
@ 2008-01-30 11:00 François Patte
0 siblings, 0 replies; 2+ messages in thread
From: François Patte @ 2008-01-30 11:00 UTC (permalink / raw)
To: help-gnu-emacs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -------- Message original --------
Sujet: Re: auto-fill in Emacs-22.1
Date: Wed, 30 Jan 2008 09:21:54 +0100
De: François Patte <francois.patte@math-info.univ-paris5.fr>
Pour :: David Kastrup <dak@gnu.org>
Références: <mailman.6677.1201618782.18990.help-gnu-emacs@gnu.org>
<85abmor1ra.fsf@lola.goethe.zz>
David Kastrup a écrit :
| François Patte <francois.patte@math-info.univ-paris5.fr> writes:
|
|> Bonjour,
|>
|> I am surprised to see that the "turn-on-auto-fill" and
|> turn-off-auto-fill" are no more in use in my Emacs 22.1.1 from fedora 7
|> distrib.
|
| Wrong.
|
|> I had these usefull lines in my .emacs:
|>
|> (define-derived-mode fp-gldn-mode My-dn-mode "glossaire sanskrit"
|> ~ (turn-off-auto-fill))
|>
|> And it is no more working: lines are broken at 70 characters....
|
| Then the problem is somewhere else.
Maybe, I am not an expert at all.... I can just see that with the *same*
.emacs file, autofill is on in files "reading" the instruction above in
spite of the instruction: turn-off-auto-fill.
This happens with Emacs-22.1 not with Emacs 21.4
I have somewhere else this line:
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
Needed because latex-mode does not turn on autofill (I am using Auctex)
and my "gldn mode" loads latex-mode.
How to get auto-fill in latex mode, and not in these gldn mode files? It
was perfectly working in 21.4!
Thanks for helping.
- --
François Patte
UFR de mathématiques et informatique
Université Paris Descartes
Tél. +33 (0)1 44 55 35 61
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHoFjNdE6C2dhV2JURAlE9AJ9L8buR4r0CVdKn8CvHo+zeR26WWQCcDF87
xSSF8KV8ecAirTyGopwOiuI=
=l225
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Fwd: Re: auto-fill in Emacs-22.1]
[not found] <mailman.6740.1201690837.18990.help-gnu-emacs@gnu.org>
@ 2008-01-30 20:07 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-01-30 20:07 UTC (permalink / raw)
To: help-gnu-emacs
> |> (define-derived-mode fp-gldn-mode My-dn-mode "glossaire sanskrit"
> |> ~ (turn-off-auto-fill))
> (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
The LaTeX-mode-hook should (ideally) be run after the end of LaTeX-mode *or its
derivative*. I.e. if My-dn-mode runs LaTeX-mode, then latex-mode-hook
will be run after (turn-off-auto-fill).
> Needed because latex-mode does not turn on autofill (I am using Auctex)
> and my "gldn mode" loads latex-mode.
> How to get auto-fill in latex mode, and not in these gldn mode files? It
> was perfectly working in 21.4!
You could do
(add-hook 'fp-gldn-mode-hook 'turn-off-auto-fill)
-- Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-30 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6740.1201690837.18990.help-gnu-emacs@gnu.org>
2008-01-30 20:07 ` [Fwd: Re: auto-fill in Emacs-22.1] Stefan Monnier
2008-01-30 11:00 François Patte
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).