aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/uniquify.el
Commit message (Collapse)AuthorAgeFilesLines
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-2/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (uniquify): Finish `defgroup' description with period.Juanma Barranquero2005-07-041-1/+1
|
* Specify missing group (and type, if simple) in defcustom.Juanma Barranquero2005-05-191-8/+16
|
* (uniquify-rationalize-file-buffer-names): Fix corner case when renamingStefan Monnier2005-01-051-2/+4
| | | | to the same name.
* (uniquify-rationalize-file-buffer-names): Re-add an interactive spec.Stefan Monnier2005-01-051-3/+9
|
* (uniquify-rationalize-file-buffer-names): Delete interactive spec.Richard M. Stallman2004-12-271-1/+0
|
* Add arch taglinesMiles Bader2003-09-011-0/+2
|
* (uniquify-after-kill-buffer-p): Set default to t.Stefan Monnier2003-05-131-3/+3
| | | | | (uniquify-ignore-buffers-re): Revert to nil now that uniquify is more careful about preserving buffer names.
* (uniquify-rationalize-file-buffer-names): Thinko.Stefan Monnier2003-05-101-2/+2
|
* (uniquify-rationalize-file-buffer-names):Stefan Monnier2003-05-101-4/+22
| | | | | Refresh the dirname in the case that rename-buffer was skipped. (uniquify-buffer-file-name): Return a dirname with no trailing slash.
* Use the original buffer-name as `base' in place of theStefan Monnier2003-05-091-32/+30
| | | | | | | | | | | nondirectory part of the file name. (uniquify-rationalize-file-buffer-names): Split the `newbuffile' arg into `base' and `dirname'. Reuse old uniquify-items to avoid recomputing their base&dirname. (uniquify-buffer-file-name): Only return the directory part. (uniquify-rerationalize-w/o-cb): Don't bother reseting proposed names. (rename-buffer): Use the `newname' arg as base. (create-file-buffer): Split the file name into base and dirname.
* (uniquify-after-kill-buffer-p): Fix misleading docstring.Stefan Monnier2003-05-081-22/+47
| | | | | | | | | | (uniquify-make-item): Make `proposed' optional. (uniquify-rationalize-file-buffer-names): Don't compute the initial proposed name. (uniquify-buffer-file-name): Remove dead code. (uniquify-strip-common-suffix): New var. (uniquify-rationalize): Always recompute initial proposed name. Strip common suffix if requested.
* (uniquify-rationalize-file-buffer-names):Stefan Monnier2003-05-071-23/+25
| | | | Don't uniquify if there is no filename.
* (uniquify-rationalize): New fun. Store the fix-list in uniquify-managed.Stefan Monnier2003-05-071-39/+45
| | | | | | | | | | | (uniquify-rationalize-file-buffer-names): Use it and make the args non-optional (i.e. don't support "re-rationalize all" any more). (uniquify-rerationalize-w/o-cb): New fun. (uniquify-maybe-rerationalize-w/o-cb): Use it to rerationalize immediately and only the relevant buffers. Merged from uniquify-delay-rationalize-file-buffer-names and uniquify-delayed-rationalize-file-buffer-names. (kill-buffer-hook, rename-buffer): Use it.
* (uniquify-item, uniquify-get-proposed-name)Stefan Monnier2003-05-071-13/+13
| | | | (uniquify-rationalize-conflicting-sublist): Rename filename -> dirname.
* (uniquify-managed): New var.Stefan Monnier2003-05-061-13/+27
| | | | | | | (uniquify-rationalize-file-buffer-names, rename-buffer): Use it and set it to prevent accidental renaming of unrelated buffers. (uniquify-delay-rationalize-file-buffer-names): Use it to avoid the cost of uniquify when killing unrelated buffers.
* (uniquify-buffer-name-style, uniquify-after-kill-buffer-p)Stefan Monnier2003-05-051-44/+30
| | | | | | | | | | | (uniquify-ask-about-buffer-names-p, uniquify-ignore-buffers-re) (uniquify-min-dir-content, uniquify-separator, uniquify-trailing-separator-p): Remove redundant group specification. (uniquify-file-name-nondirectory): Delete. (uniquify-rationalize-file-buffer-names): Simplify. Use directory names as `filename' component of uniquify-item. (uniquify-get-proposed-name): Adjust now that `filename' does not include `base'.
* Move provide to end of file.Stefan Monnier2003-05-041-30/+33
| | | | | | | | | | | | | | | (uniquify-ref-base, uniquify-ref-filename, uniquify-ref-buffer) (uniquify-ref-proposed, uniquify-set-proposed): Remove. (uniquify-item): New struct. Update users of uniquify-ref-*. (uniquify-get-proposed-name, uniquify-rationalize-a-list): Make `depth' optional. (uniquify-non-file-buffer-names): Remove. (uniquify-rationalize-file-buffer-names): Don't set it up. Use uniquify-make-item and don't pass the now-optional depth. (uniquify-rationalize-conflicting-sublist): Check the new buffer name directly instead of relying on uniquify-non-file-buffer-names. (uniquify-rename-buffer): Use with-current-buffer and pass the `unique' arg to rename-buffer.
* (uniquify-ignore-buffers-re): Change default to match some Gnus buffers.Richard M. Stallman2003-05-031-1/+2
|
* (uniquify-rationalize-file-buffer-names, rename-buffer)Stefan Monnier2002-12-131-10/+6
| | | | | (uniquify-delay-rationalize-file-buffer-names, kill-buffer-hook): Undo 2002/09/27 change, because kill-buffer-hook is not permanent-local.
* (uniquify-get-proposed-name): Don't use directory-sep-char.Richard M. Stallman2002-10-141-9/+8
|
* (uniquify-rationalize-file-buffer-names):Stefan Monnier2002-09-271-7/+12
| | | | | | | Add to kill-buffer-hook for buffers with conflict. (rename-buffer): Check kill-buffer-hook to see if there was a conflict. (uniquify-delay-rationalize-file-buffer-names): Remove useless check. (kill-buffer-hook): Don't change globally.
* Use find-file-hook instead of find-file-hooks.Stefan Monnier2002-08-151-1/+1
|
* (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
|