1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

84 Commits

Author SHA1 Message Date
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
43ae2c48f7 (uniquify-maybe-rerationalize-w/o-cb): Remove
uniquify-after-kill-buffer-p dependency.
(uniquify-kill-buffer-function): New function.
(kill-buffer-hook): Use uniquify-kill-buffer-function.  (Bug#1315)
2008-11-15 22:37:20 +00:00
Dan Nicolaescu
76dc97b800 (uniquify-list-buffers-directory-modes): Add vc-dir-mode. 2008-07-01 14:58:28 +00:00
Michael Albinus
b8206d82a5 * uniquify.el (uniquify-get-proposed-name): Handle remote files. 2008-06-08 10:42:34 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
3e9db557b8 (uniquify-rationalize-a-list): Beware of side-effects. 2008-04-29 07:11:36 +00:00
Stefan Monnier
ef9f9d309f (uniquify-buffer-base-name): Undo last change. Should be
done in desktop.el instead.
2008-02-28 17:09:18 +00:00
Juanma Barranquero
07e4bb9a30 (uniquify-buffer-base-name): If the base name is an empty
string, return nil to allow the caller to default to the
buffer name.  Reported by Martin Fischer <parozusa@web.de>.
2008-02-27 16:39:45 +00:00
Juanma Barranquero
20c4d633d3 (uniquify-buffer-base-name): New function.
Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
2008-02-14 14:32:44 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Miles Bader
c12ecb0af9 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-923
2007-11-09 09:45:30 +00:00
Miles Bader
ba69b876ac Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 138-139)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-914
2007-10-30 23:28:12 +00:00
Juanma Barranquero
352ddc78d3 (uniquify-unload-function): Add docstring.
(uniquify-unload-function): Remove variable.
2007-10-30 00:20:44 +00:00
Juanma Barranquero
2513e3fdc2 (uniquify-unload-function): New function and var. 2007-10-29 13:25:08 +00:00
Juanma Barranquero
58be68a88b (uniquify-maybe-rerationalize-w/o-cb): Define it before use
to avoid a warning in packages that require uniquify.
2007-10-29 11:59:27 +00:00
Juanma Barranquero
62f7f21b37 *** empty log message *** 2007-10-28 16:48:51 +00:00
Miles Bader
7f22a76506 Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 97-100)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 246-247)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-860
2007-08-27 04:00:19 +00:00
Stefan Monnier
8837a213a2 (uniquify-rationalize-file-buffer-names): Check liveness
of buffers in uniquify-managed.
2007-08-25 20:21:12 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Stefan Monnier
e725d58ffd Docstring fixes. 2007-07-18 19:16:41 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +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
Juanma Barranquero
0c4eeda3b5 (uniquify): Finish `defgroup' description with period. 2005-07-04 02:36:52 +00:00
Juanma Barranquero
f530778210 Specify missing group (and type, if simple) in defcustom. 2005-05-19 19:06:19 +00:00
Stefan Monnier
9890ec7d19 (uniquify-rationalize-file-buffer-names): Fix corner case when renaming
to the same name.
2005-01-05 21:49:02 +00:00
Stefan Monnier
2eec3e8edf (uniquify-rationalize-file-buffer-names): Re-add an interactive spec. 2005-01-05 21:20:38 +00:00
Richard M. Stallman
e7e7e16883 (uniquify-rationalize-file-buffer-names): Delete interactive spec. 2004-12-27 16:38:06 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
dee9b44fb6 (uniquify-after-kill-buffer-p): Set default to t.
(uniquify-ignore-buffers-re): Revert to nil now that uniquify
is more careful about preserving buffer names.
2003-05-13 19:15:19 +00:00
Stefan Monnier
1c4001a1df (uniquify-rationalize-file-buffer-names): Thinko. 2003-05-10 22:46:10 +00:00
Stefan Monnier
aa74499543 (uniquify-rationalize-file-buffer-names):
Refresh the dirname in the case that rename-buffer was skipped.
(uniquify-buffer-file-name): Return a dirname with no trailing slash.
2003-05-10 18:16:19 +00:00
Stefan Monnier
75e2fcb63a Use the original buffer-name as `base' in place of the
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.
2003-05-09 13:21:05 +00:00
Stefan Monnier
c3c140d6f3 (uniquify-after-kill-buffer-p): Fix misleading docstring.
(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.
2003-05-08 19:39:32 +00:00
Stefan Monnier
ad599c1193 (uniquify-rationalize-file-buffer-names):
Don't uniquify if there is no filename.
2003-05-07 21:56:43 +00:00
Stefan Monnier
518e35e6d1 (uniquify-rationalize): New fun. Store the fix-list in uniquify-managed.
(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.
2003-05-07 16:03:14 +00:00
Stefan Monnier
bf0e40d484 (uniquify-item, uniquify-get-proposed-name)
(uniquify-rationalize-conflicting-sublist): Rename filename -> dirname.
2003-05-07 15:53:08 +00:00
Stefan Monnier
6b09e9c8da (uniquify-managed): New var.
(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.
2003-05-06 14:29:39 +00:00
Stefan Monnier
54547ff5bf (uniquify-buffer-name-style, uniquify-after-kill-buffer-p)
(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'.
2003-05-05 16:55:38 +00:00
Stefan Monnier
df05087018 Move provide to end of file.
(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.
2003-05-04 21:30:25 +00:00
Richard M. Stallman
1f9d00ca8a (uniquify-ignore-buffers-re): Change default to match some Gnus buffers. 2003-05-03 13:51:00 +00:00
Stefan Monnier
8b374c3fd7 (uniquify-rationalize-file-buffer-names, rename-buffer)
(uniquify-delay-rationalize-file-buffer-names, kill-buffer-hook):
Undo 2002/09/27 change, because kill-buffer-hook is not permanent-local.
2002-12-13 19:52:35 +00:00
Richard M. Stallman
5da10d404b (uniquify-get-proposed-name): Don't use directory-sep-char. 2002-10-14 01:28:36 +00:00
Stefan Monnier
124e448b98 (uniquify-rationalize-file-buffer-names):
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.
2002-09-27 17:37:47 +00:00
Stefan Monnier
1a4914f340 Use find-file-hook instead of find-file-hooks. 2002-08-15 00:48:20 +00:00
Stefan Monnier
2ff96ab3e7 (uniquify-delay-rationalize-file-buffer-names):
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.
2002-06-27 15:35:48 +00:00
Stefan Monnier
de856d998f (uniquify-rationalize-file-buffer-names):
Always strip the trailing / even if the file is not a directory.
2002-05-19 02:11:24 +00:00