Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
82055bb7
Commit
82055bb7
authored
Feb 03, 2010
by
John Wiegley
Browse files
iswitchb.el (iswitchb-completions): Add bookmark files to the
list of files considered for "virtual buffer" completions.
parent
8214b6e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/iswitchb.el
lisp/iswitchb.el
+20
-5
No files found.
lisp/ChangeLog
View file @
82055bb7
2010-02-03 John Wiegley <jwiegley@gmail.com>
* iswitchb.el (iswitchb-completions): Add bookmark files to the
list of files considered for "virtual buffer" completions.
2010-02-03 Michael Albinus <michael.albinus@gmx.de>
* net/ange-ftp.el (ange-ftp-insert-directory): Parse directory
...
...
lisp/iswitchb.el
View file @
82055bb7
...
...
@@ -1274,7 +1274,7 @@ Modified from `icomplete-completions'."
;; consult the list of past visited files, to see if we can find
;; the file which the user might thought was still open.
(
when
(
and
iswitchb-use-virtual-buffers
(
null
comps
)
recentf-list
)
(
or
recentf-list
bookmark-alist
)
)
(
setq
iswitchb-virtual-buffers
nil
)
(
let
((
head
recentf-list
)
name
)
(
while
head
...
...
@@ -1289,15 +1289,30 @@ Modified from `icomplete-completions'."
(
setq
iswitchb-virtual-buffers
(
cons
(
cons
name
(
car
head
))
iswitchb-virtual-buffers
)))
(
setq
head
(
cdr
head
)))
(
setq
iswitchb-virtual-buffers
(
nreverse
iswitchb-virtual-buffers
)
comps
(
mapcar
'car
iswitchb-virtual-buffers
))
(
setq
head
(
cdr
head
))))
(
let
((
head
bookmark-alist
)
name
path
)
(
while
head
(
if
(
and
(
setq
path
(
cdr
(
assq
'filename
(
cdar
head
))))
(
setq
name
(
file-name-nondirectory
path
))
(
string-match
(
if
iswitchb-regexp
iswitchb-text
(
regexp-quote
iswitchb-text
))
name
)
(
null
(
get-file-buffer
path
))
(
not
(
assoc
name
iswitchb-virtual-buffers
))
(
not
(
iswitchb-ignore-buffername-p
name
))
(
file-exists-p
path
))
(
setq
iswitchb-virtual-buffers
(
cons
(
cons
name
path
)
iswitchb-virtual-buffers
)))
(
setq
head
(
cdr
head
))))
(
setq
iswitchb-virtual-buffers
(
nreverse
iswitchb-virtual-buffers
)
comps
(
mapcar
'car
iswitchb-virtual-buffers
))
(
let
((
comp
comps
))
(
while
comp
(
put-text-property
0
(
length
(
car
comp
))
'face
'iswitchb-virtual-matches
(
car
comp
))
(
setq
comp
(
cdr
comp
)))))
)
(
setq
comp
(
cdr
comp
)))))
(
cond
((
null
comps
)
(
format
" %sNo match%s"
open-bracket-determined
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment