GNU bug report logs - #9447
24.0.50; woman loses single quotes

Previous Next

Package: emacs;

Reported by: Eric Hanchrow <eric.hanchrow <at> gmail.com>

Date: Tue, 6 Sep 2011 01:12:01 UTC

Severity: normal

Found in version 24.0.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9447 in the body.
You can then email your comments to 9447 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Tue, 06 Sep 2011 01:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eric Hanchrow <eric.hanchrow <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 06 Sep 2011 01:12:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eric Hanchrow <eric.hanchrow <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; woman loses single quotes
Date: Mon, 5 Sep 2011 18:07:27 -0700
I typed M-x woman RET Moose::Manual::Classes RET.

I saw (among other text) this:

       package Person;
       use Moose;
       has ssn => ( is => rw );

That looks perfectly plausible.  But I eventually realized that there
are supposed to be single-quotes around the "ssn" and the "rw".  M-x man
gets it right (although for some reason it has some blank lines):

         package Person;

         use Moose;

         has 'ssn' => ( is => 'rw' );

In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-08-22 on erich-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.11001000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: WoMan

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  global-auto-revert-mode: t
  ido-everywhere: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-u C-n C-u C-n C-u C-n C-u C-n C-n C-n M-0 C-l C-v
C-n M-0 C-l SPC C-v C-v C-l C-v SPC SPC SPC C-x b s
h e <return> C-c C-p M-0 C-l C-v C-l C-v C-v C-v C-l
M-> C-x b <return> C-u C-n C-u C-n C-u C-n C-u C-n
M-0 C-l C-u C-u C-n C-u C-n C-u C-n M-0 C-l C-u C-u
C-n C-u C-n M-0 C-l C-u C-n C-u C-n C-n C-n M-m <return>
C-u C-u C-n C-u C-n C-u C-n C-u C-n C-u C-n M-0 C-l
C-u C-u C-n C-u C-n M-0 C-l C-v C-v C-l q C-e M-b <return>
C-v C-v C-x 2 C-x C-b C-x 0 C-u C-u C-n C-u C-n C-u
C-n C-l M-m <return> C-u C-n C-u C-n C-n C-n C-n C-n
C-n M-0 C-l C-v C-v C-v C-v C-v C-v C-v q C-n C-n C-n
C-n <return> C-u C-u C-n C-u C-n C-u C-n C-p C-p C-SPC
C-n C-n C-n M-w C-/ C-x C-j C-s m o o s e : : m a n
C-w : : c l C-e C-SPC M-b M-b M-b M-b M-b M-w C-x b
s h e <return> d l o c a t e SPC C-y <return> C-p C-a
C-M-SPC M-w M-> a p t i t u s <backspace> d e SPC s
h o w SPC C-y <return> C-c C-p C-n C-n C-n C-n C-b
C-b C-SPC M-b M-b M-w M-> C-x b C-s <return> M-x m
a n <return> M-p M-p M-n C-e : : M a n <tab> : : C
l a s s <tab> <return> C-x o C-s s s n C-a C-x o C-p
C-p C-p M-0 C-l M-x r e p o r t - e m a c s - b u g
<return>

Recent messages:
uncompressing Moose::Manual::Unsweetened.3pm.gz...done
WoMan formatting buffer...done in 0.023766 seconds
Mark set
/usr/share/man/man3/
Mark saved where search started
Mark set [7 times]
Invoking man Moose::Manual::Classes in the background
Please wait: formatting the Moose::Manual::Classes man page...
Moose::Manual::Classes man page formatted
Mark saved where search started

Load-path shadows:
~/.emacs.d/custom hides /usr/local/src/emacs-git/master/lisp/custom

Features:
(shadow sort mail-extr message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader emacsbug
tabify rect cperl-mode vc-dir ewoc vc ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher
disp-table jka-compr dabbrev pcmpl-unix shell pcomplete dired-aux
multi-isearch epa-file epa epg epg-config tramp tramp-compat format-spec
tramp-loaddefs ffap js2-mode-autoloads swank-clojure-autoloads
clojure-mode-autoloads slime-repl-autoloads slime-autoloads package
tabulated-list ibuf-ext scribble woman man midnight uniquify warnings
magit diff-mode log-edit pcvs-util add-log magit-bisect magit-key-mode
vc-git autorevert paste-to-dropbox ansi-color geiser-racket geiser-guile
geiser-repl geiser-doc geiser-compile geiser-debug geiser-menu
geiser-company geiser-autodoc advice advice-preload eldoc info-look info
geiser-edit etags geiser-completion easy-mmode geiser-eval
geiser-connection tq geiser-syntax scheme geiser-log derived
geiser-popup view geiser-impl help-fns geiser-custom geiser-base geiser
path server starttls smtpmail auth-source eieio byte-opt bytecomp
byte-compile cconv macroexp assoc gnus-util password-cache sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils grep compile
comint ring cl find-func ibuf-macs ibuffer ido dired-x easymenu dired
regexp-opt edmacro kmacro rx autoinsert time protbuf time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Wed, 07 Sep 2011 00:42:03 GMT) Full text and rfc822 format available.

Message #8 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9447 <at> debbugs.gnu.org
Cc: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Tue, 06 Sep 2011 20:37:14 -0400
[Message part 1 (text/plain, inline)]
The man page has a fairly complicated header, and isn't using plain
quotes (source attached). WoMan complains:

  **  Undefined register F defaulted to 0.
  **  if v -- unrecognized condition name rejected!
  **  if v -- unrecognized condition name rejected!
  **  Undefined string Aq not interpolated!
  **  Unknown font CW.
  **  rm #[ #] #H #V #F C  request ignored!

[Moose::Manual::Classes.3p (application/octet-stream, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 06:53:02 GMT) Full text and rfc822 format available.

Message #11 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9447 <at> debbugs.gnu.org
Cc: Eric Hanchrow <eric.hanchrow <at> gmail.com>
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 02:48:47 -0400
close 9447 24.1
stop

I think I fixed this. AFAICS, woman-if-body, which was unchanged since
woman.el was introduced, contained code that made no sense. A minimal
example of a file showing the problem is anything with more than one .ie
block, eg:

    .ie n .ds Ab x
    .el .ds Ab y
    .ie \n(.g .ds Aq \(aq
    .el       .ds Aq '
    .TH Moose
    .nh
    .SH "NAME"
    for example
    .PP
    \&  has \*(Aqssn\*(Aq

I sort of wonder what the point of woman.el is. It has a punny name, but
is basically a partial, buggy, reimplementation of a very standard
external program that is surely installed on any system where man pages
are used. Eg I note that it doesn't render man.1 correctly on my current
system, with the current trunk doing a worse job than Emacs 23.3 does.




bug marked as fixed in version 24.1, send any further explanations to 9447 <at> debbugs.gnu.org and Eric Hanchrow <eric.hanchrow <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 09 Sep 2011 06:53:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 07:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9447 <at> debbugs.gnu.org, eric.hanchrow <at> gmail.com
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 10:24:15 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Fri, 09 Sep 2011 02:48:47 -0400
> Cc: Eric Hanchrow <eric.hanchrow <at> gmail.com>
> 
> I sort of wonder what the point of woman.el is. It has a punny name, but
> is basically a partial, buggy, reimplementation of a very standard
> external program that is surely installed on any system where man pages
> are used.

You obviously forget the use case of Emacs on MS-Windows.  Man pages
come with many ported packages (including Emacs ;-), but I know of
only 2 decent version of the `man' program available for Windows: one
requires Cygwin to be installed, the other was written by yours truly,
and is not available as a Windows binary in any public site that I
know of (although the sources are available under GPL and can be
easily compiled on Windows).  Thus woman.el.

> Eg I note that it doesn't render man.1 correctly on my current
> system, with the current trunk doing a worse job than Emacs 23.3 does.

Patches are very welcome.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 07:39:01 GMT) Full text and rfc822 format available.

Message #19 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9447 <at> debbugs.gnu.org, eric.hanchrow <at> gmail.com
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 03:34:00 -0400
Eli Zaretskii wrote:

> You obviously forget the use case of Emacs on MS-Windows.

If only I could...

> Patches are very welcome.

The patch is to revert r103011, as commented in bug#7843.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 08:03:02 GMT) Full text and rfc822 format available.

Message #22 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9447 <at> debbugs.gnu.org, eric.hanchrow <at> gmail.com
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 10:58:20 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: 9447 <at> debbugs.gnu.org,  eric.hanchrow <at> gmail.com
> Date: Fri, 09 Sep 2011 03:34:00 -0400
> 
> Eli Zaretskii wrote:
> 
> > You obviously forget the use case of Emacs on MS-Windows.
> 
> If only I could...

And btw, man.el doesn't work on Windows anyway, even if you have an
external `man' program, due to its quoting that assumes a Posix shell.
I tried to fix that once, but gave up after a few hours, telling
myself "they always have woman.el...".




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 12:31:01 GMT) Full text and rfc822 format available.

Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Moreton <andrewjmoreton <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 13:25:53 +0100
On Fri 09 Sep 2011, Eli Zaretskii wrote:

>> From: Glenn Morris <rgm <at> gnu.org>
>> Cc: 9447 <at> debbugs.gnu.org,  eric.hanchrow <at> gmail.com
>> Date: Fri, 09 Sep 2011 03:34:00 -0400
>> 
>> Eli Zaretskii wrote:
>> 
>> > You obviously forget the use case of Emacs on MS-Windows.
>> 
>> If only I could...
>
> And btw, man.el doesn't work on Windows anyway, even if you have an
> external `man' program, due to its quoting that assumes a Posix shell.
> I tried to fix that once, but gave up after a few hours, telling
> myself "they always have woman.el...".

Works perfectly well with Cygwin though :-)

    AndyM





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9447; Package emacs. (Fri, 09 Sep 2011 14:01:02 GMT) Full text and rfc822 format available.

Message #28 received at 9447 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: 9447 <at> debbugs.gnu.org
Subject: Re: bug#9447: 24.0.50; woman loses single quotes
Date: Fri, 09 Sep 2011 16:56:16 +0300
> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Fri, 09 Sep 2011 13:25:53 +0100
> 
> > And btw, man.el doesn't work on Windows anyway, even if you have an
> > external `man' program, due to its quoting that assumes a Posix shell.
> > I tried to fix that once, but gave up after a few hours, telling
> > myself "they always have woman.el...".
> 
> Works perfectly well with Cygwin though :-)

Which part of "assumes a Posix shell" did I fail to make clear?




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Oct 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 336 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.