1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

89 Commits

Author SHA1 Message Date
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Leo Liu
e014333552 Fix buffer-list rename&refresh after after killing a buffer in ido.
* lisp/ido.el: Revert Óscar's.
(ido-kill-buffer-at-head): Exit the minibuffer with ido-exit=refresh.
Remember the buffers at head, rather than their name.
* lisp/iswitchb.el (iswitchb-kill-buffer): Re-make the list.
2010-08-21 15:35:27 +02:00
Chong Yidong
e6d23bb580 * iswitchb.el (iswitchb-completions): Revert last change. 2010-02-10 04:19:32 -05:00
John Wiegley
82055bb780 iswitchb.el (iswitchb-completions): Add bookmark files to the
list of files considered for "virtual buffer" completions.
2010-02-03 15:47:25 -05:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Stefan Monnier
d5e637154f Replace completion-base-size by completion-base-position to fix bugs
such as (bug#4699).
* simple.el (completion-base-position): New var.
(completion-base-size): Mark as obsolete.
(choose-completion): Make it work for mouse events as well.
Pass the new base-position to choose-completion-string.
(choose-completion-guess-base-position): New function, extracted from
choose-completion-delete-max-match.
(choose-completion-delete-max-match): Use it.  Make obsolete.
(choose-completion-string): Use the new base-position info.
(completion-root-regexp): Delete.
(completion-setup-function): Preserve completion-base-position.
Eliminate obsolete base-size manipulation.
* minibuffer.el (display-completion-list): Don't mess with base-size.
(minibuffer-completion-help): Set completion-base-position instead.
* mouse.el (mouse-choose-completion): Redefine as a mere alias to
choose-completion.
* textmodes/bibtex.el (bibtex-complete):
* emacs-lisp/crm.el (crm--choose-completion-string):
Adjust to new calling convention.
* complete.el (partial-completion-mode): Use minibufferp to avoid
bumping into incompatible change to choose-completion-string-functions.
* ido.el (ido-choose-completion-string): Make its calling convention
more permissive.
* comint.el (comint-dynamic-list-input-ring-select): Remove obsolete
base-size manipulation.
(comint-dynamic-list-input-ring): Use dotimes and push.
* iswitchb.el (iswitchb-completion-help): Remove dead-code call to
fundamental-mode.  Use `or'.
2009-10-15 01:50:17 +00:00
Stephen Eglen
4078fd57ba (iswitchb-read-buffer): When selecting a match from
the  virtual-buffers, use the name of the buffer specified by
find-file-noselect, as the match may be a symlink.  (This was a
problem if the target and the symlink had differet names.)
2009-09-15 11:38:15 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Lute Kamstra
9201cc281b * align.el:
* allout.el:
* apropos.el:
* arc-mode.el:
* autoinsert.el:
* avoid.el:
* battery.el:
* bookmark.el:
* buff-menu.el:
* calculator.el:
* chistory.el:
* cmuscheme.el:
* comint.el:
* compare-w.el:
* dabbrev.el:
* delim-col.el:
* desktop.el:
* diff-mode.el:
* diff.el:
* dired-aux.el:
* dired-x.el:
* dired.el:
* dos-vars.el:
* ediff-diff.el:
* ediff-help.el:
* ediff-init.el:
* ediff-merg.el:
* ediff-mult.el:
* ediff-ptch.el:
* ediff-vers.el:
* ediff-wind.el:
* ediff.el:
* emerge.el:
* facemenu.el:
* faces.el:
* ffap.el:
* filecache.el:
* find-dired.el:
* font-core.el:
* font-lock.el:
* forms.el:
* fringe.el:
* help-at-pt.el:
* hippie-exp.el:
* ido.el:
* image-file.el:
* imenu.el:
* indent.el:
* info.el:
* isearchb.el:
* iswitchb.el:
* jit-lock.el:
* jka-compr.el:
* log-edit.el:
* lpr.el:
* ls-lisp.el:
* man.el:
* menu-bar.el:
* midnight.el:
* mouse-sel.el:
* mouse.el:
* msb.el:
* outline.el:
* paren.el:
* pcmpl-cvs.el:
* pcmpl-gnu.el:
* pcomplete.el:
* pcvs-info.el:
* pcvs-parse.el:
* printing.el:
* ps-mule.el:
* ps-print.el:
* replace.el:
* ruler-mode.el:
* saveplace.el:
* sb-image.el:
* scroll-bar.el:
* sha1.el:
* shadowfile.el:
* shell.el:
* sort.el:
* speedbar.el:
* strokes.el:
* tempo.el:
* term.el:
* terminal.el:
* time-stamp.el:
* time.el:
* tree-widget.el:
* type-break.el:
* vc-cvs.el:
* vc-hg.el:
* vc-mcvs.el:
* vc-rcs.el:
* vc-sccs.el:
* vc.el:
* view.el:
* w32-vars.el:
* whitespace.el:
* wid-edit.el: Remove leading * from docstrings of defcustoms,
deffaces, defconsts and defuns.
2008-12-03 05:48:14 +00:00
Stephen Eglen
6a0e4c608b (iswitchb-delim): New variable, suggested by Ted Roden. 2008-07-22 08:47:00 +00:00
Glenn Morris
fffa137cb7 American English spelling fix. 2008-06-27 07:34:53 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Glenn Morris
cd6ef82d85 Move non-autoloaded define-obsolete-variable-alias calls for
defcustoms not in dumped files before the associated defcustom.
2008-04-12 03:17:19 +00:00
Miles Bader
56388398e7 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
2008-03-10 00:49:47 +00:00
Juanma Barranquero
d739651295 Don't check for cadr' and last'.
(iswitchb-define-mode-map, iswitchb-default-keybindings):
Add obsolescence declaration and remove redundant info from docstring.
(iswitchb-set-common-completion, iswitchb-set-matches,
iswitchb-get-matched-buffers, iswitchb-visit-buffer): Use `let'.
(recentf-list, most-len, most-is-exact):
Don't wrap defvars within `eval-when-compile'.
2008-03-05 12:00:46 +00:00
Juanma Barranquero
252ca1228e (iswitchb-use-faces): Doc fix.
(iswitchb-buffer-ignore, iswitchb-read-buffer): Fix typos in docstrings.
2008-03-05 11:45:32 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Stefan Monnier
3da360a745 * progmodes/ada-xref.el (ada-prj-find-prj-file):
* progmodes/ada-mode.el (comment-region):
* calendar/todo-mode.el (todo-insert-item):
* bookmark.el (bookmark-buffer-name): Test major-mode rather than mode-name.
2008-01-04 06:18:31 +00:00
Dan Nicolaescu
d31e8e871c * calculator.el:
* dframe.el:
* iswitchb.el:
* whitespace.el:
* winner.el:
* emacs-lisp/checkdoc.el:
* mail/feedmail.el:
* net/quickurl.el:
* obsolete/fast-lock.el:
* play/5x5.el:
* progmodes/delphi.el:
* progmodes/idlw-shell.el:
* progmodes/idlwave.el:
* textmodes/artist.el:
* textmodes/ispell.el:
* textmodes/texinfmt.el:
* textmodes/texinfo.el: Remove obsolete definitions of backward
compatibility macros for defcustom, defgroup, defface, when,
unless, with-current-buffer and with-temp-message.
2007-12-25 19:21:38 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Stefan Monnier
51443e4f0d (iswitchb-global-map): Use command-remapping if available. 2007-01-03 03:37:15 +00:00
Stephen Eglen
a7d4450b98 Remove obsolete URL. 2006-03-17 21:29:33 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Stephen Eglen
5311aad2e5 (iswitchb-define-mode-map): Use C-n for iswitchb-toggle-ignore. (This
was C-a but a user suggested this was too easily confused with normal
usage of C-a.)
2006-01-15 23:43:41 +00:00
John Wiegley
0735252630 (iswitchb-define-mode-map): Re-enabled the toggle-ignore keybinding
(C-a).  The author said it had been disabled much earlier due to a
possible incompatibility, but after many months of usage I have
encountered no problems (and it is a rather useful option, especially
for switching to " *temp*").
2005-11-01 07:10:49 +00:00
Richard M. Stallman
1a1dd431f0 (iswitchb-buffer-ignore): Label it risky.
(iswitchb-ignore-buffername-p): Use `functionp'
instead of `fboundp' in order to allow for anonymous functions.
2005-10-04 20:27:58 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Stefan Monnier
561ec2254c (iswitchb-to-end): Replace mapcar with dolist.
(iswitchb-get-matched-buffers): Likewise.  Simplify.
2005-06-14 15:51:11 +00:00
Kim F. Storm
54907cdc9d 2005-06-06 Matt Hodges <MPHodges@member.fsf.org>
* iswitchb.el: Rename faces.
2005-06-06 14:21:14 +00:00
Eli Zaretskii
b21688f0ca (iswitchb-single-match-face)
(iswitchb-current-match-face, iswitchb-virtual-matches-face)
(iswitchb-invalid-regexp-face): New faces.
(iswitchb-completions): Use them.
(iswitchb-use-faces): Renamed from iswitchb-use-fonts, which is
now marked as an obsolete alias.
(iswitchb-read-buffer): Remove check for bound font variables.
(iswitchb-invalid-regexp): New free variable.
(iswitchb-get-matched-buffers): Catch invalid-regexp errors and
set iswitchb-invalid-regexp.
(iswitchb, iswitchb-complete, iswitchb-completions): Deal with invalid regexps.
(iswitchb-completions): Add check for complete match when entering a regexp.
(iswitchb-completions): Remove require-match argument.
(iswitchb-exhibit): Fix caller.
(iswitchb-common-match-inserted): New variable.
(iswitchb-complete, iswitchb-completion-help): Use it.
2005-06-04 19:10:07 +00:00
Eli Zaretskii
2cf248ab2e (iswitchb-get-matched-buffers): Handle invalid-regexp errors in
post-command-hook.
2005-06-04 18:50:38 +00:00
David Kastrup
90a02640b4 Update AUCTeX information. 2004-08-22 10:58:41 +00:00
John Wiegley
533b22e2e2 2004-05-13 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-use-virtual-buffers): Only turn on
	`recentf-mode' if this variable has been customized to t.
2004-05-14 01:02:10 +00:00
John Wiegley
c4ae2d518c 2004-05-08 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-use-virtual-buffers): Added support for
	"virtual buffers" (off by default), which makes it possible to
	switch to the buffers of recently files.  When a buffer name
	search fails, and this option is on, iswitchb will look at the
	list of recently visited files, and permit matching against those
	names.  When the user hits RET on a match, it will revisit that
	file.
	(iswitchb-read-buffer): Added two optional arguments, which makes
	isearchb.el possible.
	(iswitchb-completions, iswitchb-set-matches, iswitchb-prev-match,
	iswitchb-next-match): Added support for virtual buffers.
2004-05-08 13:04:29 +00:00
Stephen Eglen
971cb8347a (iswitchb-global-map): Fix typo. Removed unwanted ###autoloads from
source file.
2004-05-05 12:14:39 +00:00
Stephen Eglen
79e1c9d488 Update iswitchb-max-to-show. 2004-04-21 09:47:11 +00:00
Stephen Eglen
06f4589ab8 (iswitchb-max-to-show): Update :type. 2004-04-20 10:01:29 +00:00
Stephen Eglen
f329780b74 (iswitchb-max-to-show): Update documentation and :type information. 2004-04-19 11:42:38 +00:00
John Wiegley
5f5d410aa1 2004-04-18 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-completions): Removed dependency on cl.
2004-04-18 10:31:29 +00:00
John Wiegley
c80d953400 2004-04-17 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-max-to-show): Added a new config variable
	which optionally limits the number of names shown in the
	minibuffer.  Off by default.
	(iswitchb-completions): Use `iswitchb-max-to-show'.  This speeds
	up iswitchb for users with a multitude of open buffers, by showing
	only the first and last N/2 buffers in the completion list (which
	is enough for C-s/C-r, and to know that more characters need to be
	typed to refine the completion list).
2004-04-17 22:04:04 +00:00
Stephen Eglen
33a316bae0 (iswitchb-minibuffer-setup-hook): Update doc string
to show how minibuffer height can be constrained.
2004-02-04 13:40:10 +00:00
Stephen Eglen
4dddd07f26 iswitchb-read-buffer: check that iswitchb-exit is not 'usefirst (set
when user presses RETURN to select buffer) before running:

	;; This happens for example if the buffer was chosen with the mouse.
	(setq iswitchb-matches (list iswitchb-final-text)))


iswitchb-exit-minibuffer: set iswitchb-exit to 'usefirst.

These changes were made to fix the following bug reported by Markus
Rost and John Wiegley:

Evaluate:
(progn
   (iswitchb-mode 1)
   (get-buffer-create "12")
   (get-buffer-create "1")
   (iswitchb-buffer))

You get prompted in the minibuffer.  Type "1".  The minibuffer shows

 iswitch 1{12,1}

Hit RET.  You find yourself in buffer "1" instead of "12", as you
would expect from the documentation.

This bug was introduced when iswitchb-read-buffer was updated to allow
user to select items from the *Completions* buffer with the mouse.
2003-11-25 14:45:32 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stephen Eglen
79f0a5ed66 Documentation update for installation. 2003-08-19 18:39:11 +00:00
Stephen Eglen
2d839509cd (iswitchb-read-buffer): Remove redudant variable
iswitchb-prepost-hooks. Remove iswitchb-xemacs variable and use
(featurep 'xemacs) and fboundp instead. (From Stefan Monnier).

(iswitchb-completions): Remove two redundant arguments and local
variables. (From Stefan Monnier).

Commentary fix (from Markus Rost).
2003-06-26 11:47:34 +00:00
Stephen Eglen
e47525c442 (iswitchb-buffer-ignore): Update custom type to allow functions. 2003-05-31 16:21:25 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00