From: Glenn Morris <rgm@gnu.org>
To: david.hansen@physik.fu-berlin.de
Cc: Richard Stallman <rms@gnu.org>, emacs-devel@gnu.org
Subject: Re: [david.hansen@physik.fu-berlin.de: WoMan Error with the CVS Manual Page]
Date: Thu, 08 Mar 2007 17:15:34 -0500 [thread overview]
Message-ID: <9v7itrjsah.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <E1HOiGp-0000st-OV@fencepost.gnu.org> (Richard Stallman's message of "Tue, 06 Mar 2007 17:36:35 -0500")
> From: David Hansen <david.hansen@physik.fu-berlin.de>
> Subject: WoMan Error with the CVS Manual Page
> To: emacs-pretest-bug@gnu.org
> Date: Tue, 06 Mar 2007 03:26:07 +0100
Does this patch give good results? I notice several other woman errors
in formatting the cvs man page. This patch at least does not seem to
make those any worse.
Index: woman.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/woman.el,v
retrieving revision 1.53
diff -c -c -w -r1.53 woman.el
*** woman.el 21 Jan 2007 03:53:10 -0000 1.53
--- woman.el 8 Mar 2007 22:13:30 -0000
***************
*** 3284,3290 ****
;; Find font requests, paragraph macros and font escapes:
(re-search-forward
"^[.'][ \t]*\\(\\(\\ft\\)\\|\\(.P\\)\\)\\|\\(\\\\f\\)" nil 1)
! (let (font beg notfont)
;; Match font indicator and leave point at end of sequence:
(cond ((match-string 2)
;; .ft request found
--- 3284,3290 ----
;; Find font requests, paragraph macros and font escapes:
(re-search-forward
"^[.'][ \t]*\\(\\(\\ft\\)\\|\\(.P\\)\\)\\|\\(\\\\f\\)" nil 1)
! (let (font beg notfont fescape)
;; Match font indicator and leave point at end of sequence:
(cond ((match-string 2)
;; .ft request found
***************
*** 3299,3305 ****
(setq font 'default))
((match-string 4)
;; \f escape found
! (setq beg (match-beginning 0))
(woman-match-name))
(t (setq notfont t)))
(if notfont
--- 3299,3306 ----
(setq font 'default))
((match-string 4)
;; \f escape found
! (setq beg (match-beginning 0)
! fescape t)
(woman-match-name))
(t (setq notfont t)))
(if notfont
***************
*** 3321,3326 ****
--- 3322,3334 ----
;; Delete font control line or escape sequence:
(cond (beg (delete-region beg (point))
(if (eq font 'previous) (setq font previous-font))))
+ ;; Deal with things like \fB.cvsrc\fR at the start of a line.
+ ;; After removing the font control codes, this would
+ ;; otherwise match woman-request-regexp. The "\\&" which is
+ ;; inserted to prevent this is removed by woman2-process-escapes.
+ (and fescape
+ (looking-at "^\\.")
+ (insert "\\&"))
(woman-set-face previous-pos (point) current-font)
(if beg
;; Explicit font control
next prev parent reply other threads:[~2007-03-08 22:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 22:36 [david.hansen@physik.fu-berlin.de: WoMan Error with the CVS Manual Page] Richard Stallman
2007-03-08 22:15 ` Glenn Morris [this message]
2007-03-09 5:28 ` David Hansen
2007-03-09 9:58 ` Glenn Morris
2007-03-09 21:25 ` Richard Stallman
2007-03-10 4:15 ` Glenn Morris
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=9v7itrjsah.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=david.hansen@physik.fu-berlin.de \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.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.