emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep (was Re: inconsistent behavior of M-x info)


From: Joe Corneli
Subject: grep (was Re: inconsistent behavior of M-x info)
Date: Thu, 08 Apr 2004 10:25:12 -0500

Well, to continue my non-grep-mode-havin' saga, in my cvs emacs of 
yesterday night, 

M-x grep

produces

Loading grep...
execute-extended-command: Symbol's value as variable is void: grep-mode

However, upon issuing emacs-lisp-byte-compile-and-load in grep.el, I
can grep.

The problem seems to have to do with the following:

;;;###autoload (autoload 'grep-mode "grep" nil t)
(define-compilation-mode grep-mode "Grep"
  "Sets `grep-last-buffer' and `compilation-window-height'."
  (setq grep-last-buffer (current-buffer))
  (set (make-local-variable 'compilation-error-face)
       grep-hit-face)
  (set (make-local-variable 'compilation-error-regexp-alist)
       grep-regexp-alist))

I think the autoload was accidentally commented out, and the above
should read

;;;###autoload 
(define-compilation-mode grep-mode "Grep"
  "Sets `grep-last-buffer' and `compilation-window-height'."
  (setq grep-last-buffer (current-buffer))
  (set (make-local-variable 'compilation-error-face)
       grep-hit-face)
  (set (make-local-variable 'compilation-error-regexp-alist)
       grep-regexp-alist))

(autoload 'grep-mode "grep" nil t)


In fact, I tested this out, and now a new emacs is aware of
grep-mode and *can* run grep.


Here are my emacs's details.

In GNU Emacs 21.3.50.4 (powerpc-apple-darwin7.2.0, X toolkit, Xaw3d scroll bars)
 of 2004-04-07 on hope-of-a-stone.local
configured using `configure '--without-carbon' '--with-x' 
'CFLAGS=-I/sw/include' 'CPPFLAGS=-I/sw/include' 'LDFLAGS=-L/sw/lib''

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: nil
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  auto-image-file-mode: t
  show-paren-mode: t
  display-time-mode: t
  mouse-wheel-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <up> <up> <down> <down> <down> C-s-n C-x C-s C-z 
c d SPC ~ / s i t <tab> <return> s c p SPC t o d l 
- m <tab> . <tab> SPC $ E M . / a / e l i s p <return> 
M-x g r e p <return> C-g M-x g r e p <return> C-x b 
* M e <tab> <return> M-> <up> <up> <up> <up> <up> <up> 
<up> C-SPC <down> C-e M-w M-x r <backspace> g r e p 
<return> M-x r e p o r t - e m a <tab> <return>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]