From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.bugs Subject: bug#7127: 23.2; M-x help throws an error Date: Wed, 29 Sep 2010 00:03:05 +0100 Message-ID: <19618.29737.497771.713881@parhasard.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285715490 32225 80.91.229.12 (28 Sep 2010 23:11:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2010 23:11:30 +0000 (UTC) To: 7127@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 29 01:11:29 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jKa-00060Z-Pg for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 01:11:29 +0200 Original-Received: from localhost ([127.0.0.1]:39484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0jKZ-0001ra-QM for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Sep 2010 19:11:27 -0400 Original-Received: from [140.186.70.92] (port=33078 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0jKU-0001qT-9O for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:11:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0jKT-0005zl-0T for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:11:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60128) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jKS-0005zg-RT for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:11:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P0jCQ-0005CK-Gf; Tue, 28 Sep 2010 19:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aidan Kehoe Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Sep 2010 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7127 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128571497019971 (code B ref -1); Tue, 28 Sep 2010 23:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Sep 2010 23:02:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jCD-0005C4-KQ for submit@debbugs.gnu.org; Tue, 28 Sep 2010 19:02:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0j9o-0005Av-Ne for submit@debbugs.gnu.org; Tue, 28 Sep 2010 19:00:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0jCY-00059Z-PL for submit@debbugs.gnu.org; Tue, 28 Sep 2010 19:03:12 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:56509) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jCY-00059V-Mk for submit@debbugs.gnu.org; Tue, 28 Sep 2010 19:03:10 -0400 Original-Received: from [140.186.70.92] (port=60969 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0jCX-0007PF-F6 for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:03:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0jCV-00059K-RC for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:03:09 -0400 Original-Received: from daedalus.ipv4.asclepian.ie ([213.133.100.226]:53772 helo=daedalus.asclepian.ie) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jCV-00059B-I6 for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 19:03:07 -0400 Original-Received: by daedalus.asclepian.ie (Postfix, from userid 1002) id 9F270B816; Wed, 29 Sep 2010 00:03:05 +0100 (IST) X-Mailer: VM 8.0.12 under 21.5 (beta29) "garbanzo" d0bc331e433f+ XEmacs Lucid (x86_64-unknown-freebsd7.2) X-Echelon-distraction: HTCIA WIR BTM LLC ISG WIR X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 28 Sep 2010 19:02:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 28 Sep 2010 19:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40523 Archived-At: This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Recipe is as follows: 1) emacs -Q 2) M-x help RET 3) Observe error giving following backtrace:=20 Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("%THIS-KEY%" nil) help() call-interactively(help t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) The issue seems to be make-help-screen in help-macro.el, which assumes that (documentation FNAME) gives non-nil, something not true for #'help. It would probably be sufficient to change the string-match call like so: (if (and help-screen (string-match "%THIS-KEY%" help-screen)) ...) and an insert further down like so: (insert (or help-screen "")) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/23.2/etc/DEBUG. In GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6) of 2010-05-08 on laptop configured using `configure '--srcdir=3D/usr/src/emacs-23.2-1/src/emacs-= 23.2' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--s= bindir=3D/usr/sbin' '--libexecdir=3D/usr/lib' '--datadir=3D/usr/share' '-= -localstatedir=3D/var' '--sysconfdir=3D/etc' '--datarootdir=3D/usr/share'= '--docdir=3D/usr/share/doc/emacs' 'CPPFLAGS=3D-I/usr/include/ncursesw' '= LDFLAGS=3D-L/usr/lib/ncursesw' 'CC=3Dgcc' 'CFLAGS=3D-O2 -pipe ' 'LIBS=3D'= ' 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: C.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: RET k C-a C-k C-x b * B A TAB C-b C-k a TAB RET c q=20 C-p C-n C-p C-n C-n C-p C-p C-n C-n C-n ESC x e h l=20 p C-a C-k h e l p RET f C-g q C-x o C-x b RET C-s t=20 h i s C-p C-p ESC < C-s s t r i n g - m a t c h C-a=20 C-x b * B a c TAB C-g C-x o ESC x h e l p RET q ESC=20 x h e l p RET v C-g q ESC [ [ A v h e l p - s c r e=20 e n RET C-g ESC x h e l p RET f d o c C-g q ESC [ [=20 A f d o c u m e n t a t i o n RET C-x o C-x o C-n C-n=20 C-n RET RET C-p ( d o s C-b C-k c u m e n t a t i o=20 n SPC ' ESC [ [ A f h e l p RET ESC [ [ A f h e l p=20 - f o r - h e l p RET C-a C-e h e l p - f o r - h e=20 l p - i n t e r n a l ) C-j ESC x r e p o r t - e m=20 a c s - b u g RET M x - DEL DEL - x SPC h e l p SPC=20 d DEL f a i l s C-b C-b C-b C-b C-b C-k R E T C-g ESC=20 x h e l p RET q C-a ESC x h e ESC p ESC p RET Recent messages: Proceeding, will debug on next eval or call. Entering debugger... Continuing. Entering debugger... Quit Back to top level. Type C-x 4 C-o RET to restore the other window. Quit Entering debugger... Back to top level. Load-path shadows: None found. Features: (shadow sort mail-extr message idna sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug byte-opt disass bytecomp byte-compile multi-isearch find-func debug two-column cl cl-19 help-mode easymenu view help-fns tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process font-render-setting gtk x-toolkit x multi-tty emacs) --=20 =E2=80=9CApart from the nine-banded armadillo, man is the only natural ho= st of Mycobacterium leprae, although it can be grown in the footpads of mice.=E2= =80=9D -- Kumar & Clark, Clinical Medicine, summarising improbable leprosy res= earch