GNU bug report logs - #6248
23.1; justify (esc q) broken in Latex mode

Previous Next

Package: emacs;

Reported by: mark.lillibridge <at> hp.com

Date: Sat, 22 May 2010 17:53:02 UTC

Severity: normal

Found in version 23.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: mark.lillibridge <at> hp.com
Cc: 6248 <at> debbugs.gnu.org
Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode
Date: Sat, 22 May 2010 21:37:06 -0400
> Repeat the steps using instead a suffix of .tex (latex mode); this time
> you instead obtain the following incorrect result:

>     This is a sample paragraph of text that is long enough that it may
>     need to be filled.  Here's a second sentence to continue the
>     paragraph.  And one more sentence for good measure.

> Justify in latex mode worked correctly in Emacs 21, but does not work
> correctly in 22 or 23.  Please fix.

It's not a bug, it's a feature.  The change is because Emacs-21 did not
offer indentation for LaTeX, whereas Emacs>=22 does.
To get the behavior you want, you'll want to set
fill-indent-according-to-mode, e.g.

 (add-hook 'latex-mode-hook
           (lambda ()
             (set (make-local-variable 'fill-indent-according-to-mode) nil)))

-- Stefan




This bug report was last modified 3 years and 189 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.