[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
M-x apropos with regexp fails
From: |
Alex Schroeder |
Subject: |
M-x apropos with regexp fails |
Date: |
Wed, 04 Jan 2006 10:37:01 +0100 |
When using M-x apropos with a regular expression, I get the error
apropos-score-symbol: Symbol's value as variable is void: apropos-regexp
The following simple patch seems to fix this:
diff -c /Applications/Emacs.app/Contents/Resources/lisp/apropos.el\~
/Applications/Emacs.app/Contents/Resources/lisp/apropos.el
*** /Applications/Emacs.app/Contents/Resources/lisp/apropos.el~ Thu Nov 10
04:18:42 2005
--- /Applications/Emacs.app/Contents/Resources/lisp/apropos.el Wed Jan 4
10:34:57 2006
***************
*** 308,314 ****
(if (setq i (string-match word str))
(setq scores (cons i scores))))
;; Return list of start and end position of regexp
! (string-match apropos-regexp str)
(list (match-beginning 0) (match-end 0)))))
(defun apropos-score-str (str)
--- 308,314 ----
(if (setq i (string-match word str))
(setq scores (cons i scores))))
;; Return list of start and end position of regexp
! (string-match apropos-all-regexp str)
(list (match-beginning 0) (match-end 0)))))
(defun apropos-score-str (str)
Diff finished. Wed Jan 4 10:35:38 2006
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'.
If you would like to further debug the crash, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG for instructions.
In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2005-12-09 on woodstock.local.mac
X server distributor `Apple Computers', version 10.3.9
configured using `configure
'--prefix=/Applications/Emacs.app/Contents/Resources' '--with-carbon'
'--without-x''
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: nil
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Major mode: Diff
Minor modes in effect:
encoded-kbd-mode: t
show-paren-mode: t
iswitchb-mode: t
tooltip-mode: t
auto-compression-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
column-number-mode: t
line-number-mode: t
Recent input:
x o c c u r <return> r e g e x p - <backspace> C-a
a p r o p o s - <return> <S-down> <down> <return> <C-right>
- a l l C-x C-s C-M-x <escape> x <up> <up> <return>
<up> <up> <return> <C-up> C-x 1 <C-down> <C-up> C-SPC
<C-down> M-w C-x v C-g <escape> x d i f f - b a c k
<tab> C-a C-k C-g C-u <escape> x <up> <return> C-g
C-u <escape> x C-y <return> <return> <return> <S-down>
C-SPC <C-down> <C-down> <C-down> <C-down> M-w <escape>
x r e p o r t <tab> <return>
Recent messages:
Searched 1 buffer; 1 match for `apropos-regexp'
Wrote /Applications/Emacs.app/Contents/Resources/lisp/apropos.el
apropos-calc-scores
Mark set
Quit [2 times]
Loading diff...done
Loading diff-mode...done
Mark set
Saved text from "diff -c /Applications/Emacs.app/Contents"
Loading emacsbug...done
- M-x apropos with regexp fails,
Alex Schroeder <=