Mercurial > emacs
comparison lisp/ChangeLog @ 107787:ded036b5364f
Minor fixes to a recent contribution to ido.el
* ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog
comment to code, and added a :version tag.
(ido-virtual-buffers): Moved defvar to fix byte-compiler warning.
author | jwiegley@gmail.com |
---|---|
date | Mon, 05 Apr 2010 23:38:56 -0400 |
parents | 3de4f4f86a82 |
children | f8a150994b7a |
comparison
equal
deleted
inserted
replaced
107786:3de4f4f86a82 | 107787:ded036b5364f |
---|---|
1 2010-04-06 John Wiegley <jwiegley@gmail.com> | |
2 | |
3 * ido.el (ido-use-virtual-buffers, ido-virtual): Moved a ChangeLog | |
4 comment to code, and added a :version tag. | |
5 (ido-virtual-buffers): Moved defvar to fix byte-compiler warning. | |
6 | |
1 2010-04-06 Juanma Barranquero <lekktu@gmail.com> | 7 2010-04-06 Juanma Barranquero <lekktu@gmail.com> |
2 | 8 |
3 Enable recentf-mode if using virtual buffers. | 9 Enable recentf-mode if using virtual buffers. |
4 * ido.el (recentf-list): Declare for byte-compiler. | 10 * ido.el (recentf-list): Declare for byte-compiler. |
5 (ido-virtual-buffers): Move up to silence byte-compiler. Add docstring. | 11 (ido-virtual-buffers): Move up to silence byte-compiler. Add docstring. |
39 * help.el (describe-mode): Return nil. | 45 * help.el (describe-mode): Return nil. |
40 | 46 |
41 2010-04-04 John Wiegley <jwiegley@gmail.com> | 47 2010-04-04 John Wiegley <jwiegley@gmail.com> |
42 | 48 |
43 * ido.el (ido-use-virtual-buffers): New variable to indicate | 49 * ido.el (ido-use-virtual-buffers): New variable to indicate |
44 whether "virtual buffer" support is enabled for IDO. Essentially | 50 whether "virtual buffer" support is enabled for IDO. |
45 it works as follows: Say you are visiting a file and the buffer | |
46 gets cleaned up by mignight.el. Later, you want to switch to that | |
47 buffer, but find it's no longer open. With virtual buffers | |
48 enabled, the buffer name stays in the buffer list (using the | |
49 ido-virtual face, and always at the end), and if you select it, it | |
50 opens the file back up again. This allows you to think less about | |
51 whether recently opened files are still open or not. Most of the | |
52 time you can quit Emacs, restart, and then switch to a file buffer | |
53 that was previously open as if it still were. NOTE: This feature | |
54 has been present in iswitchb for several years now, and I'm | |
55 porting the same logic to IDO. | |
56 (ido-virtual): Face used to indicate virtual buffers in the list. | 51 (ido-virtual): Face used to indicate virtual buffers in the list. |
57 (ido-buffer-internal): If a buffer is chosen, and no such buffer | 52 (ido-buffer-internal): If a buffer is chosen, and no such buffer |
58 exists, but a virtual buffer of that name does (which would be why | 53 exists, but a virtual buffer of that name does (which would be why |
59 it was in the list), recreate the buffer by reopening the file. | 54 it was in the list), recreate the buffer by reopening the file. |
60 (ido-make-buffer-list): If virtual buffers are being used, call | 55 (ido-make-buffer-list): If virtual buffers are being used, call |