--- Begin Message ---
Subject: |
24.0.95; texinfmt deletes " and \ at bol |
Date: |
Fri, 06 Apr 2012 16:03:29 +0900 |
User-agent: |
Gnus/5.130004 (真 Gnus v0.4) Emacs/24.0.95 (i686-pc-cygwin) |
Hi,
Please try `M-x texinfo-format-buffer' in a buffer filled with
this text:
--8<---------------cut here---------------start------------->8---
@setfilename /tmp/test
111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 @dfn{FOO}
222 222 222 222 222 222 222 222 222 222 222 222 222 222 222 222 222 ``BAR''
333 333 333 333 333 333 333 333 333 333 333 333 333 333 333 333 333 \BAZ/
--8<---------------cut here---------------end--------------->8---
@dfn{FOO} and ``BAR'' should be formatted into "FOO" and "BAR"
respectively, but you will see the leftmost " and \ disappear.
This happens with not only Emacs 24 but also at least Emacs 23.
`back-to-indentation' does it in this way
texinfo-format-refill
-> fill-paragraph
-> fill-indent-to-left-margin
-> indent-line-to
-> back-to-indentation
because `texinfo-format-syntax-table' sets the character syntax
of " and \ to " ". Though I'm not sure whether that is the root
cause, modifying those syntax to "w" seems to work around it.
Note that texinfmt.el is still indispensable for formatting non-
English texinfo files.
Regards,
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#11189: 24.0.95; texinfmt deletes " and \ at bol |
Date: |
Thu, 03 Jun 2021 08:34:17 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-cygwin) |
On Wed, 02 Jun 2021 08:58:56 +0200, Lars Ingebrigtsen wrote:
> Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> Please try `M-x texinfo-format-buffer' in a buffer filled with
>> this text:
[...]
> I'm unable to reproduce this with Emacs 28. Are you still seeing this
> issue?
I don't see it. Such a problem seems to have gone away from
Emacs at least through 27.1 to 28.0.50. Thanks.
;; 9 years ago, oh.
--- End Message ---