1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

76 Commits

Author SHA1 Message Date
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
Stephen Eglen
4e141ed744 (iswitchb-completions): Test that iswitchb-common-match-string is a
string, before printing common completions.
2002-09-26 15:52:31 +00:00
Pavel Janík
a2c060f6b4 Update commentary to include new function iswitchb-exclude-nonmatching. 2002-04-13 13:01:48 +00:00
Richard M. Stallman
4d8ae757b2 (iswitchb-visit-buffer): Use `select-frame-set-input-focus'.
It is needed when window manager uses "click to focus" policy.
2001-12-10 20:41:18 +00:00
Pavel Janík
34d16326e4 (iswitchb-exhibit): Use insert instead of insert-string. 2001-11-26 07:30:58 +00:00
Stefan Monnier
8ae3ef6ea3 (iswitchb-mode): Use define-minor-mode.
(iswitchb): Fix the case where the result was selected with the mouse.
(iswitchb-completion-help): Use the normal *Completions* now that
mouse selection works.
(iswitchb-minibuffer-setup): Simplify.
2001-11-19 21:06:17 +00:00
Richard M. Stallman
c940380872 (iswitchb-cannot-complete-hook): New variable to
control behaviour when no further completion is possible.
2001-11-19 14:08:59 +00:00
Richard M. Stallman
b2537dfac3 Change maintainer email address. 2001-11-16 21:10:58 +00:00
Gerd Moellmann
ceba0dac02 (iswitchb-make-buflist): When nconc'ing lists, don't
discard the result.
(iswitchb-to-end): Likewise.
2001-01-25 17:13:08 +00:00
Gerd Moellmann
f05b502e8b Update customization commentary. 2000-12-05 14:01:58 +00:00
Eli Zaretskii
c7b8986123 (iswitchb-minibuf-depth): New variable.
(iswitchb-read-buffer): Record in iswitchb-minibuf-depth the value
we expect to be returned by minibuffer-depth once we prompt the
user in the minibuffer.
(iswitchb-entryfn-p): If minibuffer-depth returns the same value
as recorded in iswitchb-minibuf-depth, return non-nil.
2000-11-23 16:23:42 +00:00
Dave Love
660e161fd9 (iswitchb-mode): Add :require. 2000-10-08 16:19:28 +00:00
Dave Love
19db4308b6 Some doc fixes.
(iswitchb-mode-map): Define completely initially.  Inherit
minibuffer-local-map.
(iswitchb-completion-help) <!iswitchb-xemacs>: Use
fundamental-mode.
(iswitchb-global-map): New variable.
(iswitchb-summaries-to-end): Amalgamate regexps.
(iswitchb-mode): New.
(iswitchb-mode-hook): New variable.
(iswitchb) <defgroup>: Add URL link.  Use group `completion', not
`extensions'.
2000-09-20 22:47:50 +00:00
Gerd Moellmann
261196242e (iswitchb-entryfn-p): Test this-command instead
of testing if iswitchb-prepost-hooks is bound, because the
latter will always be true when invoking a recursive minibuffer
from an active Iswitchb buffer.
2000-07-30 14:03:38 +00:00