emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/backports-25.2 95d5520 12/46: Allow optional param


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/backports-25.2 95d5520 12/46: Allow optional parameter to be nil
Date: Sun, 2 Oct 2016 14:04:48 +0000 (UTC)

branch: scratch/backports-25.2
commit 95d55203ee7d1c3e3d131abee6c890bc0c062d58
Author: Tino Calancha <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Allow optional parameter to be nil
    
    * lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill): Allow the
    optional parameter to be nil (bug#21576).
    
    (cherry picked from commit cc27b1b04113677bf9f7bf60f41ac3f07c6c2530)
---
 lisp/ibuf-ext.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 8c94cf7..417c135 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1403,7 +1403,7 @@ You can then feed the file name(s) to other commands with 
\\[yank]."
   (if (zerop (ibuffer-count-marked-lines))
       (message "No buffers marked; use 'm' to mark a buffer")
     (let ((ibuffer-copy-filename-as-kill-result "")
-         (type (cond ((zerop arg)
+         (type (cond ((or (null arg) (zerop arg))
                       'full)
                      ((= arg 4)
                       'relative)



reply via email to

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