summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Calancha <f92capac@gmail.com>2016-02-23 20:17:21 +1100
committerNoam Postavsky <npostavs@gmail.com>2016-10-02 09:55:26 -0400
commit95d55203ee7d1c3e3d131abee6c890bc0c062d58 (patch)
tree6825e5390ac5f9d37aae58708f74a5103e4fd291
parentfbe5f7bb909411eb25f6c80a6f1880f5e6ffac40 (diff)
downloademacs-95d55203ee7d1c3e3d131abee6c890bc0c062d58.tar.gz
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)
-rw-r--r--lisp/ibuf-ext.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 8c94cf75d28..417c13576b4 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)