Mercurial > emacs
comparison lisp/recentf.el @ 69778:6828bafcac8e
(recentf-open-files-item): Include newline in button
field, so opening a file will work, when the point is at the end
of the file name. Allow, for example, to [i]search a file by
extension and just push RET to open it.
author | David Ponce <david@dponce.com> |
---|---|
date | Mon, 03 Apr 2006 14:34:28 +0000 |
parents | 3bd95f4f2941 |
children | d14b0d59315b 81f2d90dee68 65ca8fb66a0d |
comparison
equal
deleted
inserted
replaced
69777:94aafe7344bd | 69778:6828bafcac8e |
---|---|
1163 ;; Represent a single file with a link widget | 1163 ;; Represent a single file with a link widget |
1164 `(link :tag ,(car menu-element) | 1164 `(link :tag ,(car menu-element) |
1165 :button-prefix "" | 1165 :button-prefix "" |
1166 :button-suffix "" | 1166 :button-suffix "" |
1167 :button-face default | 1167 :button-face default |
1168 :format "%[%t%]\n" | 1168 :format "%[%t\n%]" |
1169 :help-echo ,(concat "Open " (cdr menu-element)) | 1169 :help-echo ,(concat "Open " (cdr menu-element)) |
1170 :action recentf-open-files-action | 1170 :action recentf-open-files-action |
1171 ,(cdr menu-element)))) | 1171 ,(cdr menu-element)))) |
1172 | 1172 |
1173 (defun recentf-open-files-items (files) | 1173 (defun recentf-open-files-items (files) |