From: Juri Linkov <juri@jurta.org>
Subject: Re: Emacs inventing system documentation
Date: Thu, 18 Feb 2004 23:02:03 +0200 [thread overview]
Message-ID: <87lln0ey4g.fsf@mail.jurta.org> (raw)
In-Reply-To: <E1Ak5zD-00005U-VQ@fencepost.gnu.org> (Richard Stallman's message of "23 Jan 2004 13:24:55 -0500")
Richard Stallman <rms@gnu.org> writes:
> I thought Reuben's message was meant as a humorous
> way to report that the term "made up" was not clear.
> So I will change it to "formatted for display".
The second message in the same function could be changed as well. The
following patch also fixes one bug (using `frame-width' instead of
`window-width' causes too long lines when window is split
horizontally), and sets `outline-regexp'.
2004-02-18 Juri Linkov <juri@jurta.org>
* man.el (Man-fontify-manpage): Clean up message.
(Man-mode): Set outline-regexp.
(Man-getpage-in-background): Use window-width instead of
frame-width.
* woman.el (woman-decode-region): Use window-width instead of
frame-width.
Index: emacs/lisp/man.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/man.el,v
retrieving revision 1.131
diff -c -r1.131 man.el
*** emacs/lisp/man.el 24 Jan 2004 21:52:12 -0000 1.131
--- emacs/lisp/man.el 18 Feb 2004 23:43:34 -0000
***************
*** 679,685 ****
;; This isn't strictly correct, since we don't know how
;; the page will actually be displayed, but it seems
;; reasonable.
! (setenv "COLUMNS" (number-to-string (frame-width)))))
(setenv "GROFF_NO_SGR" "1")
(if (fboundp 'start-process)
(set-process-sentinel
--- 679,685 ----
;; This isn't strictly correct, since we don't know how
;; the page will actually be displayed, but it seems
;; reasonable.
! (setenv "COLUMNS" (number-to-string (window-width)))))
(setenv "GROFF_NO_SGR" "1")
(if (fboundp 'start-process)
(set-process-sentinel
***************
*** 757,763 ****
"Convert overstriking and underlining to the correct fonts.
Same for the ANSI bold and normal escape sequences."
(interactive)
! (message "Please wait: making up the %s man page..." Man-arguments)
(goto-char (point-min))
(while (search-forward "\e[1m" nil t)
(delete-backward-char 4)
--- 757,763 ----
"Convert overstriking and underlining to the correct fonts.
Same for the ANSI bold and normal escape sequences."
(interactive)
! (message "Please wait: formatting the %s man page..." Man-arguments)
(goto-char (point-min))
(while (search-forward "\e[1m" nil t)
(delete-backward-char 4)
***************
*** 971,976 ****
--- 971,977 ----
(auto-fill-mode -1)
(use-local-map Man-mode-map)
(set-syntax-table man-mode-syntax-table)
+ (set (make-local-variable 'outline-regexp) Man-heading-regexp)
(Man-build-page-list)
(Man-strip-page-headers)
(Man-unindent)
Index: emacs/lisp/woman.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/woman.el,v
retrieving revision 1.18
diff -c -r1.18 woman.el
*** emacs/lisp/woman.el 22 Sep 2003 15:15:26 -0000 1.18
--- emacs/lisp/woman.el 18 Feb 2004 23:43:37 -0000
***************
*** 2204,2210 ****
;; Based loosely on a suggestion by Theodore Jump:
(if (or woman-fill-frame
(not (and (integerp woman-fill-column) (> woman-fill-column 0))))
! (setq woman-fill-column (- (frame-width) woman-default-indent)))
;; Check for preprocessor requests:
(goto-char from)
--- 2204,2210 ----
;; Based loosely on a suggestion by Theodore Jump:
(if (or woman-fill-frame
(not (and (integerp woman-fill-column) (> woman-fill-column 0))))
! (setq woman-fill-column (- (window-width) woman-default-indent)))
;; Check for preprocessor requests:
(goto-char from)
--
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-02-18 21:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1145.1074773531.928.bug-gnu-emacs@gnu.org>
2004-01-22 18:31 ` Emacs inventing system documentation Kevin Rodgers
2004-01-22 23:37 ` LEE Sau Dan
2004-01-23 18:24 ` Richard Stallman
2004-02-18 21:02 ` Juri Linkov [this message]
2004-02-19 6:03 ` Eli Zaretskii
2004-02-19 21:57 ` Juri Linkov
2004-02-20 17:30 ` Eli Zaretskii
[not found] ` <mailman.1230.1074882368.928.bug-gnu-emacs@gnu.org>
2004-01-24 3:35 ` David Kastrup
[not found] ` <mailman.1160.1074796607.928.bug-gnu-emacs@gnu.org>
2004-01-23 22:29 ` LEE Sau Dan
2004-01-22 12:00 Reuben Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lln0ey4g.fsf@mail.jurta.org \
--to=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.