diff options
| author | Tino Calancha | 2016-07-03 14:11:49 +0900 |
|---|---|---|
| committer | Tino Calancha | 2016-07-03 14:11:49 +0900 |
| commit | 0d06e94309fc2f296741a06394413209b45433cd (patch) | |
| tree | afb3a7224992f7fc2d5e7372a17e7693e5c44a03 | |
| parent | da2512f24c5772476671202bf6106f63983e22e4 (diff) | |
| download | emacs-0d06e94309fc2f296741a06394413209b45433cd.tar.gz emacs-0d06e94309fc2f296741a06394413209b45433cd.zip | |
ibuffer-copy-filename-as-kill verbosity increase
* lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill):
Use shorter name, result, for a local bound var.
Show the string result in the echo area.
| -rw-r--r-- | lisp/ibuf-ext.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 0baab6b2f25..d4fd09f2cce 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -1406,7 +1406,7 @@ You can then feed the file name(s) to other commands with \\[yank]." | |||
| 1406 | (interactive "p") | 1406 | (interactive "p") |
| 1407 | (if (zerop (ibuffer-count-marked-lines)) | 1407 | (if (zerop (ibuffer-count-marked-lines)) |
| 1408 | (message "No buffers marked; use 'm' to mark a buffer") | 1408 | (message "No buffers marked; use 'm' to mark a buffer") |
| 1409 | (let ((ibuffer-copy-filename-as-kill-result "") | 1409 | (let ((result "") |
| 1410 | (type (cond ((or (null arg) (zerop arg)) | 1410 | (type (cond ((or (null arg) (zerop arg)) |
| 1411 | 'full) | 1411 | 'full) |
| 1412 | ((= arg 4) | 1412 | ((= arg 4) |
| @@ -1415,8 +1415,8 @@ You can then feed the file name(s) to other commands with \\[yank]." | |||
| 1415 | 'name)))) | 1415 | 'name)))) |
| 1416 | (ibuffer-map-marked-lines | 1416 | (ibuffer-map-marked-lines |
| 1417 | #'(lambda (buf _mark) | 1417 | #'(lambda (buf _mark) |
| 1418 | (setq ibuffer-copy-filename-as-kill-result | 1418 | (setq result |
| 1419 | (concat ibuffer-copy-filename-as-kill-result | 1419 | (concat result |
| 1420 | (let ((name (buffer-file-name buf))) | 1420 | (let ((name (buffer-file-name buf))) |
| 1421 | (cond (name | 1421 | (cond (name |
| 1422 | (concat | 1422 | (concat |
| @@ -1430,10 +1430,11 @@ You can then feed the file name(s) to other commands with \\[yank]." | |||
| 1430 | (_ | 1430 | (_ |
| 1431 | (file-name-nondirectory name))) " ")) | 1431 | (file-name-nondirectory name))) " ")) |
| 1432 | (t ""))))))) | 1432 | (t ""))))))) |
| 1433 | (when (not (zerop (length ibuffer-copy-filename-as-kill-result))) | 1433 | (when (not (zerop (length result))) |
| 1434 | (setq ibuffer-copy-filename-as-kill-result | 1434 | (setq result |
| 1435 | (substring ibuffer-copy-filename-as-kill-result 0 -1))) | 1435 | (substring result 0 -1))) |
| 1436 | (kill-new ibuffer-copy-filename-as-kill-result)))) | 1436 | (kill-new result) |
| 1437 | (message "%s" result)))) | ||
| 1437 | 1438 | ||
| 1438 | (defun ibuffer-mark-on-buffer (func &optional ibuffer-mark-on-buffer-mark group) | 1439 | (defun ibuffer-mark-on-buffer (func &optional ibuffer-mark-on-buffer-mark group) |
| 1439 | (let ((count | 1440 | (let ((count |