unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `texinfo-format-buffer' doesn't fold long lines
@ 2005-02-28  9:18 Katsumi Yamaoka
  2005-02-28 15:11 ` Robert J. Chassell
  2005-02-28 21:53 ` `texinfo-format-buffer' doesn't fold long lines Richard Stallman
  0 siblings, 2 replies; 16+ messages in thread
From: Katsumi Yamaoka @ 2005-02-28  9:18 UTC (permalink / raw)


Hi,

In some cases, `texinfo-format-buffer' doesn't fold long lines.
For example, try the following and you can see how it does.

;--8<---------------cut here---------------start------------->8---
(with-temp-buffer
  (insert "@setfilename testing
@node Top
@itemize @bullet
@item
foo
@enumerate 1
@item
bar
@enumerate a
@item
baz
The quick brown fox jumps over the lazy dog. The quick brown fox jumps
over the lazy dog.
@end enumerate
@end enumerate
@end itemize
")
  (texinfo-format-buffer)
  (setq buffer-file-name nil))
;--8<---------------cut here---------------end--------------->8---

There's no such problem in Emacs 21.3.  It happens because someone
added "itemize\\|" to `texinfo-no-refill-regexp' as follows:

(defvar texinfo-no-refill-regexp
  (concat
   "^@"
   "\\("
   ;; add "itemize\\|"   (from experiment of 2001 Nov 28)
   ;;     because of a problem with @end itemize@refill
   ;;     I don't know if this causes other problems.
   ;;     I suspect itemized lists don't get filled properly and a
   ;;     more precise fix is required.  Bob
   "itemize\\|"
   "direntry\\|"

[...]

Although I don't have a right understanding of the reason it is
necessary, I hope for it to be mended anyway.  It is because
texinfmt is essential to format Japanese Info files.

Regards,

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

end of thread, other threads:[~2005-03-04  4:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-28  9:18 `texinfo-format-buffer' doesn't fold long lines Katsumi Yamaoka
2005-02-28 15:11 ` Robert J. Chassell
2005-02-28 23:57   ` Katsumi Yamaoka
2005-03-01  4:36     ` Eli Zaretskii
2005-03-01  5:32       ` Katsumi Yamaoka
2005-03-01 19:42         ` Eli Zaretskii
2005-03-01 15:30       ` Robert J. Chassell
2005-03-02 11:22     ` Richard Stallman
2005-03-02 12:21       ` Katsumi Yamaoka
2005-03-03 11:03         ` Richard Stallman
2005-03-03 11:54           ` Katsumi Yamaoka
2005-03-04  4:52             ` support of Japanese in makeinfo Katsumi Yamaoka
2005-02-28 21:53 ` `texinfo-format-buffer' doesn't fold long lines Richard Stallman
2005-02-28 22:09   ` Stefan Monnier
2005-02-28 22:31     ` Katsumi Yamaoka
2005-03-02 11:22     ` Richard Stallman

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