unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: Links in WoMan buffer should not call `man'
Date: Tue, 05 Sep 2006 01:54:36 +0300	[thread overview]
Message-ID: <878xkzz1i0.fsf@jurta.org> (raw)
In-Reply-To: <E1GKB5x-0003M6-OW@fencepost.gnu.org> (Richard Stallman's message of "Mon, 04 Sep 2006 05:50:21 -0400")

>     the last command typed in the woman's dedicated frame fails with the error
>     signalled by string-match:
>
>       Man-translate-references: Wrong type argument: arrayp, nil
>
> How about debugging it?  This sounds like something straightforward
> to debug.

I narrowed it to the simplest case.  This error occurs only when `M-x man'
is executed in the *Messages* buffer.  (The shortest key sequence to
reproduce it: `C-h e M-x man RET man RET')

Putting the gdb breakpoint on `wrong_type_argument' gives the following bt:

#0  wrong_type_argument (predicate=137953905, value=137897977) at data.c:121
#1  0x0818d95c in Faref (array=137897977, idx=17768) at data.c:2082
#2  0x081ae982 in char_table_translate (table=137897977, ch=2221) at fns.c:2789
#3  0x0817129f in set_image_of_range_1 (work_area=0xbfcfa4b4, start=2221, end=2221, translate=137923116) at regex.c:2132
#4  0x08171a55 in set_image_of_range (work_area=0xbfcfa4b4, start=2221, end=2221, translate=137923116) at regex.c:2262
#5  0x08174968 in regex_compile (pattern=0x8927b78 "^\\([-a-zA-Z0-9_\201\255+][-a-zA-Z0-9_.:\201\255+]*\\)(\\([0-9][a-zA-Z+]*\\|[LNln]\\))$", size=70, syntax=3408388, 
    bufp=0x8373c4c) at regex.c:2973
#6  0x08181f70 in re_compile_pattern (pattern=0x8927b78 "^\\([-a-zA-Z0-9_\201\255+][-a-zA-Z0-9_.:\201\255+]*\\)(\\([0-9][a-zA-Z+]*\\|[LNln]\\))$", length=70, 
    bufp=0x8373c4c) at regex.c:6165
#7  0x08168751 in compile_pattern_1 (cp=0x8373c40, pattern=141439291, translate=137923116, regp=0x836ace8, posix=0, multibyte=1) at search.c:173
#8  0x08168976 in compile_pattern (pattern=141439291, regp=0x836ace8, translate=137923116, posix=0, multibyte=1) at search.c:248
#9  0x08168f21 in string_match_1 (regexp=141439291, string=141439307, start=137897977, posix=0) at search.c:400
#10 0x081690b3 in Fstring_match (regexp=141439291, string=141439307, start=137897977) at search.c:443
(gdb) fr 3
#3  0x0817129f in set_image_of_range_1 (work_area=0xbfcfa4b4, start=2221, end=2221, translate=137923116) at regex.c:2132
2132          int eqv = RE_TRANSLATE (eqv_table, start);
(gdb) xprintsym eqv_table
"nil"

i.e. eqv_table in the *Messages* buffer is nil.

I have no idea why it should be nil in the *Messages* buffer,
but `Man-translate-references' fails when it tries to run
`string-match' in this buffer.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2006-09-04 22:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-25 19:52 Links in WoMan buffer should not call `man' Reiner Steib
2006-08-25 22:14 ` Chong Yidong
2006-08-26 11:36   ` Reiner Steib
2006-08-28 15:42     ` Chong Yidong
2006-08-27 20:12 ` Juri Linkov
2006-08-27 22:28   ` Eli Zaretskii
2006-08-28 22:09   ` Richard Stallman
2006-08-30 10:45     ` Eli Zaretskii
2006-08-30 22:48       ` Juri Linkov
2006-09-02 23:57     ` Juri Linkov
2006-09-04  9:50       ` Richard Stallman
2006-09-04 22:54         ` Juri Linkov [this message]
2006-09-05  3:38           ` Michael Welsh Duggan
2006-09-05  3:43             ` Michael Welsh Duggan
2006-09-05  4:31               ` Michael Welsh Duggan
2006-09-05  5:38                 ` Michael Welsh Duggan
2006-09-05 20:56                   ` Chong Yidong
2006-09-06 19:06                     ` Richard Stallman
2006-09-07 21:15                     ` Richard Stallman
2006-09-06  8:49                 ` Richard Stallman
2006-09-06  8:49           ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878xkzz1i0.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@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 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).