aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/emacs-lisp/lisp.el6
-rw-r--r--lisp/progmodes/which-func.el7
-rw-r--r--lisp/vc/smerge-mode.el4
4 files changed, 24 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b223382b271..d1348485002 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
12011-05-12 Eli Zaretskii <eliz@gnu.org>
2
3 * smerge-mode.el (smerge-resolve): Use null-device rather than a
4 literal "/dev/null".
5
62011-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
9 Fix typo.
10
112011-05-12 Ralph Schleicher <rs@ralph-schleicher.de>
12
13 * progmodes/which-func.el (which-function):
14 Use add-log-current-defun instead of add-log-current-defun-function,
15 which might not be defined (Bug#8260).
16
12011-05-12 Glenn Morris <rgm@gnu.org> 172011-05-12 Glenn Morris <rgm@gnu.org>
2 18
3 * emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble): 19 * emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index deb06f52549..ef0c49b8616 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -636,8 +636,8 @@ considered."
636 (plist (nthcdr 3 data))) 636 (plist (nthcdr 3 data)))
637 (if (null data) 637 (if (null data)
638 (minibuffer-message "Nothing to complete") 638 (minibuffer-message "Nothing to complete")
639 (let ((completion-annotate-function 639 (let ((completion-annotate-function
640 (plist-get plist :annotate-function))) 640 (plist-get plist :annotation-function)))
641 (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data) 641 (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)
642 (plist-get plist :predicate)))))) 642 (plist-get plist :predicate))))))
643 643
@@ -685,7 +685,7 @@ considered."
685 (when end 685 (when end
686 (list beg end obarray 686 (list beg end obarray
687 :predicate predicate 687 :predicate predicate
688 :annotate-function 688 :annotation-function
689 (unless (eq predicate 'fboundp) 689 (unless (eq predicate 'fboundp)
690 (lambda (str) (if (fboundp (intern-soft str)) " <f>")))))))) 690 (lambda (str) (if (fboundp (intern-soft str)) " <f>"))))))))
691 691
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index ae18486c43b..4e4d7b15053 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -270,7 +270,7 @@ It calls them sequentially, and if any returns non-nil,
270(defun which-function () 270(defun which-function ()
271 "Return current function name based on point. 271 "Return current function name based on point.
272Uses `which-func-functions', `imenu--index-alist' 272Uses `which-func-functions', `imenu--index-alist'
273or `add-log-current-defun-function'. 273or `add-log-current-defun'.
274If no function name is found, return nil." 274If no function name is found, return nil."
275 (let ((name 275 (let ((name
276 ;; Try the `which-func-functions' functions first. 276 ;; Try the `which-func-functions' functions first.
@@ -320,9 +320,8 @@ If no function name is found, return nil."
320 (reverse (cons (car pair) namestack)))))))))))) 320 (reverse (cons (car pair) namestack))))))))))))
321 321
322 ;; Try using add-log support. 322 ;; Try using add-log support.
323 (when (and (null name) (boundp 'add-log-current-defun-function) 323 (when (null name)
324 add-log-current-defun-function) 324 (setq name (add-log-current-defun)))
325 (setq name (funcall add-log-current-defun-function)))
326 ;; Filter the name if requested. 325 ;; Filter the name if requested.
327 (when name 326 (when name
328 (if which-func-cleanup-function 327 (if which-func-cleanup-function
diff --git a/lisp/vc/smerge-mode.el b/lisp/vc/smerge-mode.el
index 75e3b514531..f26ccdbedda 100644
--- a/lisp/vc/smerge-mode.el
+++ b/lisp/vc/smerge-mode.el
@@ -566,7 +566,7 @@ major modes. Uses `smerge-resolve-function' to do the actual work."
566 (with-current-buffer buf 566 (with-current-buffer buf
567 (zerop (call-process-region 567 (zerop (call-process-region
568 (point-min) (point-max) "patch" t nil nil 568 (point-min) (point-max) "patch" t nil nil
569 "-r" "/dev/null" "--no-backup-if-mismatch" 569 "-r" null-device "--no-backup-if-mismatch"
570 "-fl" o)))) 570 "-fl" o))))
571 (save-restriction 571 (save-restriction
572 (narrow-to-region m0b m0e) 572 (narrow-to-region m0b m0e)
@@ -582,7 +582,7 @@ major modes. Uses `smerge-resolve-function' to do the actual work."
582 (with-current-buffer buf 582 (with-current-buffer buf
583 (zerop (call-process-region 583 (zerop (call-process-region
584 (point-min) (point-max) "patch" t nil nil 584 (point-min) (point-max) "patch" t nil nil
585 "-r" "/dev/null" "--no-backup-if-mismatch" 585 "-r" null-device "--no-backup-if-mismatch"
586 "-fl" m)))) 586 "-fl" m))))
587 (save-restriction 587 (save-restriction
588 (narrow-to-region m0b m0e) 588 (narrow-to-region m0b m0e)