emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/check-declare.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/check-declare.el,v
Date: Wed, 16 Jul 2008 02:25:40 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/07/16 02:25:40

Index: check-declare.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/emacs-lisp/check-declare.el,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- check-declare.el    6 May 2008 03:21:11 -0000       1.18
+++ check-declare.el    16 Jul 2008 02:25:40 -0000      1.19
@@ -42,7 +42,7 @@
 
 (defun check-declare-locate (file basefile)
   "Return the full path of FILE.
-Expands files with a \".c\" extension relative to the Emacs
+Expands files with a \".c\" or \".m\" extension relative to the Emacs
 \"src/\" directory.  Otherwise, `locate-library' searches for FILE.
 If that fails, expands FILE relative to BASEFILE's directory part.
 The returned file might not exist.  If FILE has an \"ext:\" prefix, so does
@@ -52,7 +52,7 @@
     (if ext
         (setq file (substring file 4)))
     (setq file
-          (if (string-equal "c" (file-name-extension file))
+          (if (member (file-name-extension file) '("c" "m"))
               (expand-file-name file (expand-file-name "src" source-directory))
             (if (setq tfile (locate-library (file-name-nondirectory file)))
                 (progn
@@ -130,7 +130,7 @@
 of errors with elements of the form \(FILE FN TYPE), where TYPE
 is a string giving details of the error."
   (let ((m (format "Checking %s..." fnfile))
-        (cflag (string-equal "c" (file-name-extension fnfile)))
+        (cflag (member (file-name-extension fnfile) '("c" "m")))
         (ext (string-match "^ext:" fnfile))
         re fn sig siglist arglist type errlist minargs maxargs)
     (message "%s" m)




reply via email to

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