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

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

Re: awk-mode not defined in current CVS Emacs


From: Alan Mackenzie
Subject: Re: awk-mode not defined in current CVS Emacs
Date: Mon, 29 Nov 2004 20:56:34 +0000 (GMT)

Hi, Glenn.

On Mon, 22 Nov 2004, Glenn Morris wrote:

>Alan Mackenzie wrote:
>
>> (autoload 'awk-mode "cc-mode" "Major mode for editing AWK code.")
>
>Aha! I think this needs to pass t as a fourth argument to autoload, so
>that Emacs knows awk-mode can be called interactively. awk-mode *is*
>actually defined, but trying tab-complete on `M-x awk-mode' was giving
>"No match", making me think it was not defined.

Thanks for reporting this bug, and thanks for diagnosing it.  Here is a
patch which should fix the problem.  Could you check that the patch is OK
and confirm (or refute) this on address@hidden  Thanks in advance!

#########################################################################

Log Message:
cc-mode.el:  Add a fourth parameter `t' to the awk-mode autoload, so that
  it is interactive, hence can be found by M-x awk-mode whilst cc-mode is
  yet to be loaded.  Reported by Glenn Morris
<address@hidden>.


Index: cc-mode.el
===================================================================
RCS file: /cvsroot/cc-mode/cc-mode/cc-mode.el,v
retrieving revision 5.206.2.4
retrieving revision 5.206.2.5
diff -C2 -d -r5.206.2.4 -r5.206.2.5
*** cc-mode.el  28 Nov 2004 16:09:03 -0000      5.206.2.4
--- cc-mode.el  29 Nov 2004 20:53:21 -0000      5.206.2.5
***************
*** 1011,1015 ****
  ;;; Autoload directives must be on the top level, so we construct an
  ;;; autoload form instead.
! ;;;###autoload (autoload 'awk-mode "cc-mode" "Major mode for editing
AWK code.")

  (if (not (memq 'syntax-properties c-emacs-features))
--- 1011,1015 ----
  ;;; Autoload directives must be on the top level, so we construct an
  ;;; autoload form instead.
! ;;;###autoload (autoload 'awk-mode "cc-mode" "Major mode for editing
AWK code." t)

  (if (not (memq 'syntax-properties c-emacs-features))

#########################################################################

-- 
Alan Mackenzie (Munich, Germany)






reply via email to

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