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

* bug#11189: 24.0.95; texinfmt deletes " and \ at bol
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2012-04-06 10:53 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 11189

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> because `texinfo-format-syntax-table' sets the character syntax
> of " and \ to " ".

gnus-article-mode-syntax-table has the same problem, it sets the syntax
of ?` and ?' to " ", which causes these characters to disappear at bol
during format=flowed refilling.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#11189: 24.0.95; texinfmt deletes " and \ at bol
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-02  6:58 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 11189

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> Please try `M-x texinfo-format-buffer' in a buffer filled with
> this text:
>
> @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/
>
> @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.

I'm unable to reproduce this with Emacs 28.  Are you still seeing this
issue?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#11189: 24.0.95; texinfmt deletes " and \ at bol
  2021-06-02  6:58 ` Lars Ingebrigtsen
@ 2021-06-02 23:34   ` Katsumi Yamaoka
  2021-06-03  7:52     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2021-06-02 23:34 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 11189-done

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.





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

* bug#11189: 24.0.95; texinfmt deletes " and \ at bol
  2021-06-02 23:34   ` Katsumi Yamaoka
@ 2021-06-03  7:52     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03  7:52 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: 11189

Katsumi Yamaoka <yamaoka@jpl.org> writes:

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

:-)

Thanks for checking.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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