unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11189: 24.0.95; texinfmt deletes " and \ at bol
@ 2012-04-06  7:03 Katsumi Yamaoka
  2012-04-06 10:53 ` Andreas Schwab
  2021-06-02  6:58 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Katsumi Yamaoka @ 2012-04-06  7:03 UTC (permalink / raw)
  To: 11189

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,





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-03  7:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06  7:03 bug#11189: 24.0.95; texinfmt deletes " and \ at bol Katsumi Yamaoka
2012-04-06 10:53 ` Andreas Schwab
2021-06-02  6:58 ` Lars Ingebrigtsen
2021-06-02 23:34   ` Katsumi Yamaoka
2021-06-03  7:52     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).