summaryrefslogtreecommitdiff
path: root/lisp/uniquify.el
Commit message (Collapse)AuthorAgeFilesLines
* (uniquify-delay-rationalize-file-buffer-names):Stefan Monnier2002-06-271-6/+8
| | | | | | | Rename from delay-uniquify-rationalize-file-buffer-names. Only rationalize if the buffer is under uniquify control. (uniquify-delayed-rationalize-file-buffer-names): Rename from delayed-uniquify-rationalize-file-buffer-names.
* (uniquify-rationalize-file-buffer-names):Stefan Monnier2002-05-191-3/+1
| | | | Always strip the trailing / even if the file is not a directory.
* (uniquify-get-proposed-name): Fix (.. "usr" "/usr" 0).Stefan Monnier2001-10-231-1/+1
|
* (uniquify-get-proposed-name): Don't assume dirsep is /.Gerd Moellmann2001-10-051-72/+54
| | | | (uniquify-reverse-components): Remove.
* Update Stephen Gildea's mail address.Eli Zaretskii2001-09-231-1/+1
|
* Add Keywords header.Gerd Moellmann2001-09-041-1/+2
|
* Oops. A typo.Francesco Potortì2001-08-021-1/+1
|
* Code cleanup, speed and consing improvements for uniquify.el.Francesco Potortì2001-08-021-32/+31
| | | | | | | | | | | | | | | | (uniquify-ref-base, uniquify-ref-filename) (uniquify-ref-buffer, uniquify-ref-proposed): New functions. (uniquify-fix-item-base, uniquify-fix-item-filename) (uniquify-fix-item-buffer, uniquify-fix-item-proposed): Deleted. Callers changed. (uniquify-set-proposed): Changed to work with a vector item. (uniquify-rationalize-file-buffer-names): Use a list of arrays for the fix list, and a list of strings for the non-file buffer names. Both changes reduce consing. (uniquify-rationalize-a-list): Local variable renaming. (uniquify-rationalize-conflicting-sublist): Use member instead of assoc. (uniquify-rename-buffer): Use unless instead of if not.
* These changes correct a corner case that the old code managed correctly.Francesco Potortì2001-08-011-31/+31
| | | | | | | | | | | | | | | | | | | | Precisely when you have a buffer visiting a file in the root directory and then revert it to a file with the same name in a different directory. (uniquify-fix-item-proposed): Renamed from uniquify-fix-item-min-proposed. (uniquify-set-proposed): New function. (uniquify-rationalize-file-buffer-names): Code reshuffled for clarity and speed. (uniquify-item-greaterp): Substitutes uniquify-item-lessp. This is equivalent to what the old code did. (uniquify-rationalize-a-list): Never recompute the proposed name. Sort the conflicting sublist before rationalising it: this is equivalent to what the old code did, but one directory element at a time, and only when necessary. (uniquify-rationalize-conflicting-sublist): Recompute here the proposed name.
* (uniquify-rationalize-file-buffer-names): Reshuffled the code forFrancesco Potortì2001-08-011-22/+19
| | | | clarity and speed (maybe).
* (uniquify-rationalize-file-buffer-names): Add anFrancesco Potortì2001-08-011-2/+4
| | | | | explicit test for " **lose**" buffers generated by find-alternate-file to avoid an error in particular conditions.
* Overall speedup when using many buffers.Francesco Potortì2001-07-241-74/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | (uniquify-fix-item-base, uniquify-fix-item-filename, uniquify-fix-item-buffer): Changed defmacro to defalias (cosmetic change). (uniquify-fix-item-unrationalized-buffer): Deleted: was the fourth place in the item, but waas never used. (uniquify-fix-item-min-proposed): New defalias: the fourth place in the item is now used as cache for the proposed name. (uniquify-rationalize-file-buffer-names): Move computation made on newbuffile out of the loop, in the newbuffile-nd local var. Use dolist (cosmetic change). Compute the proposed name for the most common case and cache it in the fourth place in the item. (uniquify-rationalize-file-buffer-names): Used to return a list of flags indicating renamed buffers, but that return value was never used. (uniquify-item-lessp): Replaces uniquify-filename-lessp, works on the cached proposed name, does much less consing and is quicker. (uniquify-filename-lessp): Deleted. (uniquify-rationalize-a-list): Use dolist (cosmetic change). Do not bind locally the uniquify-possibly-resolvable flag. Use the cached proposed name if possible. (uniquify-get-proposed-name): Arguments changed, callers changed. (uniquify-rationalize-conflicting-sublist): Explicitely reset the uniquify-possibly-resolvable flag, which is no more bound locally. (uniquify-rename-buffer): Do not set the unrationalised-buffer flag, which is replaced by the cached proposed name.
* (uniquify-rationalize-file-buffer-names): Undo previous change.Francesco Potortì2001-06-271-3/+2
|
* (uniquify-rationalize-file-buffer-names): Do a preliminary quickFrancesco Potortì2001-06-271-2/+3
| | | | reordering. Can speed things up dramatically.
* Set maintainer to FSF.Gerd Moellmann2001-03-071-1/+1
|
* (uniquify-buffer-name-style): Doc fix.Richard M. Stallman2001-02-171-1/+1
|
* (uniquify-list-buffers-directory-modes): New var.Stefan Monnier2000-11-211-7/+12
| | | | (uniquify-buffer-file-name): Use it.
* (toplevel): Require CL at compile time.Gerd Moellmann2000-02-121-7/+5
| | | | (uniquify-push): Removed.
* Use new backquote syntax.Gerd Moellmann1999-11-141-4/+4
|
* (uniquify-ignore-buffers-re): Fix custom type.Richard M. Stallman1998-07-241-2/+2
|
* (uniquify-ignore-buffers-re): New variable.Richard M. Stallman1998-05-191-0/+13
| | | | (uniquify-rationalize-file-buffer-names): Implement it.
* (uniquify-buffer-name-style): Add :require.Karl Heuer1997-10-161-0/+1
|
* Use uniquify-file-name-nondirectory throughout; documentation tweaks.Richard M. Stallman1997-09-091-21/+19
|
* Rename uniquify-fix-list-* to uniquify-fix-item-*.Richard M. Stallman1997-09-071-32/+34
| | | | | | | | | | | All callers changed. (uniquify-rationalize-file-buffer-names): Use directory-file-name for directories (eliminate trailing slash). Call uniquify-fix-item-unrationalized-buffer. (uniquify-buffer-file-name): Use directory-file-name. (uniquify-fix-item-unrationalized-buffer): New function. (uniquify-unrationalized-buffer): Function deleted.
* Comment change.Richard M. Stallman1997-09-051-1/+1
|
* (delay-uniquify-rationalize-file-buffer-names):Richard M. Stallman1997-08-041-3/+1
| | | | Don't delete this function from kill-buffer-hook, if it is disabled.
* (uniquify-buffer-name-style): Fix typo.Richard M. Stallman1997-07-301-1/+1
|
* (uniquify-buffer-file-name): Minor change.Richard M. Stallman1997-07-201-12/+12
|
* (delay-uniquify-rationalize-file-buffer-names): Remove this hook here,Richard M. Stallman1997-06-211-5/+8
| | | | | if we won't call delayed-uniquify-rationalize-file-buffer-names. (uniquify-buffer-name-style): Default value is nil.
* Add defgroup's; use defcustom for user vars.Richard M. Stallman1997-04-121-13/+34
|
* (uniquify-buffer-file-name): Don't callKarl Heuer1997-03-111-6/+27
| | | | | expand-file-name on nil. Check whether list-buffers-directory is bound. Ignore non-file non-dired buffers.
* Several doc fixes.Karl Heuer1996-01-241-16/+16
|
* Update FSF's address.Erik Naggum1996-01-141-2/+3
|
* (uniquify-rationalize-file-buffer-names): IfKarl Heuer1996-01-081-1/+2
| | | | newbuffile is nil, don't call expand-file-name on it.
* (uniquify-fix-list-filename-lessp): Renamed from uniquify-filename-sort.Richard M. Stallman1995-12-251-6/+7
|
* Initial revisionKarl Heuer1995-12-211-0/+381