Subject: bug#13179: 24.2.90; fill-paragraph

From: Thomas Christensen <[email-masked]>
Date: Fri, 14 Dec 2012 11:03:34 +0700

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

Put this in a file named Makefile.am (notice the 4 space indent):

lib_LTLIBRARIES = libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
    libfoobar.la libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
    libfoobar.la libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
    libfoobar.la

Hit M-q (fill-paragraph)

It will not look like this (notice the 5 space indent):

lib_LTLIBRARIES = libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
     libfoobar.la libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
     libfoobar.la libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
     libfoobar.la

Hit M-q once more, and it will look like this:

lib_LTLIBRARIES = libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
      libfoobar.la libfoobar.la libfoobar.la libfoobar.la		\
     libfoobar.la libfoobar.la libfoobar.la libfoobar.la libfoobar.la	\
     libfoobar.la libfoobar.la

The expected behavior would be to keep looking like the first case with
4 space indentation.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/local/share/emacs/24.2.90/etc/DEBUG.

In GNU Emacs 24.2.90.4 (i686-pc-linux-gnu, GTK+ Version 3.6.0)
 of 2012-12-08 on incubator_62c5ede2
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Makefile.am

Minor modes in effect:
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> l i C-x C-f f t / s r <tab> M a k <tab> . 
a <tab> <return> <down> <down> <next> <down> <next> 
<next> <down> <down> <down> C-SPC <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> w C-_ <S-up> <S-up> <S-up> <S-up> <S-up> 
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> 
M-w C-x b <return> <backspace> <backspace> C-y <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <C-right> <C-right> <C-right> <C-left> 
C-SPC <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> C-w 
l i b f o o b a r . l a <C-left> <C-left> C-e SPC <C-left> 
<C-left> C-e <backspace> <C-left> <C-left> <left> C-k 
C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y 
C-y C-y C-x C-s M-q <up> <up> C-x C-s <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> SPC SPC SPC SPC <down> <left> <left> 
<left> <left> SPC SPC SPC SPC <down> <up> M-q <up> 
<left> C-d <down> C-d <down> C-d C-x C-s <up> <up> 
<up> C-a M-x b u g <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> s <backspace> m a k e <tab> - b u <tab> 
<tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> b u g <tab> <tab> 
<tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
s e n d <tab> <tab> <backspace> <backspace> <backspace> 
<backspace> r e p o <tab> r <tab> <return> C-g C-g 
C-x C-g C-g C-h C-g C-g C-g C-h k M-q <down> <right> 
<right> <right> <right> <up> C-a C-SPC <down> <down> 
<down> <down> M-w M-x r e p o r <tab> <return>

Recent messages:
Mark set [15 times]
Saving file /home/thomasc/Makefile.am...
Wrote /home/thomasc/Makefile.am
Saving file /home/thomasc/Makefile.am...
Wrote /home/thomasc/Makefile.am
Saving file /home/thomasc/Makefile.am...
Wrote /home/thomasc/Makefile.am
Making completion list... [4 times]
Quit [5 times]
Type C-x 1 to delete the help window, C-M-v to scroll help.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr help-fns emacsbug message format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu vc-git make-mode
iswitchb cus-start cus-load time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)