]> code.delx.au - gnu-emacs/commitdiff
Allow optional parameter to be nil
authorTino Calancha <f92capac@gmail.com>
Tue, 23 Feb 2016 09:17:21 +0000 (20:17 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 23 Feb 2016 09:17:21 +0000 (20:17 +1100)
* lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill): Allow the
optional parameter to be nil (bug#21576).

lisp/ibuf-ext.el

index aa3ccbd40f7b9805411090b73ca7650a2d0774b4..6052bf32ce3f684dd2c778a67c0691a53c66b097 100644 (file)
@@ -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)