bug#3217: 23.0.92; apropos profile

Andreas Roehler <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
Hi Barry,

M-x apropos RET profile

didn't show `elp-instrument-function' and related tools.

Thats probably, because non of them has the name "profile" in it.
Suggest an alias as delivered with patch.

Thanks

Andreas Röhler



In GNU Emacs 23.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0)
 of 2009-04-29 on noname
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
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: de_DE.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x a p r o p o s <return> p r o f i l e <return> M-x
r e p o r t - e m a c s - b u g <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
No apropos matches for `profile'
elp-el.diff (text/x-patch, 426 B)
diff -u -b -L /usr/local/share/emacs/23.0.92/lisp/emacs-lisp/elp.el.gz -L MY-PATH/elp.el 
--- /usr/local/share/emacs/23.0.92/lisp/emacs-lisp/elp.el.gz
+++ MY-PATH/elp.el
@@ -228,6 +228,7 @@
                   (error nil))))))
 
 
+(defalias 'elp-profile-function 'elp-instrument-function)
 ;;;###autoload
 (defun elp-instrument-function (funsym)
   "Instrument FUNSYM for profiling.

Diff finished.  Tue May  5 08:14:39 2009
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.