]> git.eshelyaron.com Git - emacs.git/commitdiff
(check-declare-locate): Remove pointless file-name-nondirectory call
authorGlenn Morris <rgm@gnu.org>
Tue, 29 Sep 2009 03:37:03 +0000 (03:37 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 29 Sep 2009 03:37:03 +0000 (03:37 +0000)
preventing location of cedet files.
(check-declare-verify): Use literal search rather than re-search.

lisp/ChangeLog
lisp/emacs-lisp/check-declare.el

index df4cec1f59e8a7400507a1b60c44e3ee6a96f2bc..b486ab5f6ae8fa8f55090ed7f57afc023fc76696 100644 (file)
 
 2009-09-29  Glenn Morris  <rgm@gnu.org>
 
+       * emacs-lisp/check-declare.el (check-declare-locate): Remove pointless
+       file-name-nondirectory call preventing location of cedet files.
+       (check-declare-verify): Use literal search rather than re-search.
+
+       * net/tramp-smb.el (tramp-smb-handle-directory-files-and-attributes):
+       Use tramp-compat-file-attributes rather than nonexistent
+       tramp-compat-handle-file-attributes.
+
        * Makefile.in (lisptagsfiles4): New.
        (AUTOGENEL): Add cedet loaddefs files.
        (TAGS, TAGS-LISP): Use $lisptagsfiles4.
index 6b77dc1bdb463fa46d7a85cfaf501258e7a4a1f9..1251699f8f1f4d42cee0a2896726d33d0e64a5bf 100644 (file)
@@ -54,7 +54,7 @@ the result."
     (setq 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)))
+            (if (setq tfile (locate-library file))
                 (progn
                   (setq tfile
                         (replace-regexp-in-string "\\.elc\\'" ".el" tfile))
@@ -158,7 +158,7 @@ ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\
                   ;; sig = 'err means we could not find an arglist.
                   sig (cond (cflag
                              (or
-                              (when (re-search-forward "," nil t 3)
+                              (when (search-forward "," nil t 3)
                                 (skip-chars-forward " \t\n")
                                 ;; Assuming minargs and maxargs on same line.
                                 (when (looking-at "\\([0-9]+\\)[ \t]*,[ \t]*\