projects
/
elisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a6024
)
Fixed how the name is added to the history in selector/find-file.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 5 Jun 2011 13:24:33 +0000
(15:24 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 5 Jun 2011 13:24:33 +0000
(15:24 +0200)
selector.el
patch
|
blob
|
history
diff --git
a/selector.el
b/selector.el
index
463d81d
..
2175352
100644
(file)
--- a/
selector.el
+++ b/
selector.el
@@
-352,7
+352,12
@@
There seems to be header-line refreshing problems with emacs21."
(defun selector/find-file (filename)
(if selector/add-to-file-name-history
- (add-to-list 'file-name-history filename))
+ (add-to-history 'file-name-history
+ (replace-regexp-in-string
+ abbreviated-home-dir "~/" filename)
+ )
+ )
+
(find-file filename))
(defun selector/pick-file (filename)