Commit graph

1431 commits

Author SHA1 Message Date
Alan Mackenzie
982cbcabc0 (hack-local-variables-filter): Remove entries with duplicate keys from
`file-local-variables-alist'.
2009-07-18 20:41:32 +00:00
Richard M. Stallman
7a907299a2 * files.el (auto-save-mode): If buffer-saved-size is -2, don't clobber it.
* mail/rmail.el (rmail-variables): Set buffer-saved-size to -2.
(rmail-retry-ignored-headers): Add more uninteresting fields.
2009-07-16 01:52:32 +00:00
Stefan Monnier
4b8b1ec5b0 (find-alternate-file-other-window, find-alternate-file):
Obey confirm-nonexistent-file-or-buffer.
2009-07-05 22:15:34 +00:00
Chong Yidong
f7c0d93167 * files.el (trash-directory): Fix defcustom type. 2009-06-28 16:09:46 +00:00
Chong Yidong
d63a01efdb * files.el (trash-directory): Change default to nil.
(move-file-to-trash): If trash-directory is nil and
system-move-file-to-trash is unbound, perform freedesktop-style
trashing.

* NEWS: Document change.
2009-06-28 04:54:06 +00:00
Glenn Morris
46253b3440 (dir-locals-collect-mode-variables): Allow for any number of `mode'
and `eval' entries.  (Bug#3430)
2009-06-22 07:02:04 +00:00
Glenn Morris
c1a7089259 (dir-locals-set-directory-class): Make mtime argument
optional, since it is always unneeded in the non-file case.  (Bug#3577)
2009-06-18 06:54:47 +00:00
Chong Yidong
b933010836 * files.el (save-some-buffers-action-alist): Fix last change (Bug#3578). 2009-06-17 15:06:25 +00:00
Glenn Morris
cf66a343c3 (dir-locals-set-directory-class): Fix doc typo. 2009-06-17 02:54:49 +00:00
Jason Rumney
41c4018353 (locate-dominating-stop-dir-regexp): Add terminal
directory separator to UNC path case (Bug#3252).
2009-05-20 12:53:54 +00:00
Chong Yidong
91f68422d6 * files.el (hack-local-variables-prop-line)
(hack-local-variables, dir-locals-read-from-file): Bind
read-circle to nil before reading.
* lread.c (Vread_circle): New variable.
(read1): Disable recursive read if Vread_circle is nil.
2009-04-29 03:02:54 +00:00
Stefan Monnier
0a56bf8c52 (load-library): Improve docstring. 2009-04-28 19:00:38 +00:00
Chong Yidong
25760acbb9 * files.el (dir-locals-directory-cache): Change format to include
the mtime of the directory-local variables file (Bug#2833).
(dir-locals-set-directory-class): New arg mtime.  Store it in
dir-locals-directory-cache.
(dir-locals-find-file): Check cache validity using the mtime.
(dir-locals-read-from-file): Save the file mtime in the cache.
(hack-dir-local-variables): Adapt to new
dir-locals-directory-cache entry format.
2009-04-11 15:26:26 +00:00
Eli Zaretskii
d8c0d4196f (append-to-file): Doc fix. 2009-04-08 14:06:45 +00:00
Jason Rumney
48981b8b81 (locate-dominating-stop-dir-regexp): Stop searching
when a UNC mount point is reached.
2009-03-30 13:48:06 +00:00
Eli Zaretskii
7f94baf012 (shell-quote-wildcard-pattern): Doc fix. 2009-03-28 12:27:52 +00:00
Chong Yidong
ca66f00dcd (file-modes-rights-to-number): Doc fix.
(file-modes-symbolic-to-number): Handle empty permissions arg (Bug#2729).
2009-03-21 15:53:29 +00:00
Chong Yidong
86c7144b37 (get-free-disk-space): Ensure that default-directory is
usable before calling call-process.  Suggested by Kevin
Ryde (Bug#2631).
2009-03-15 02:31:45 +00:00
Stefan Monnier
ccb012c57e (auto-mode-alist): Add rules for OpenOffice extension
packages, as well as Opkg/Ipkg packages.
2009-03-13 15:58:06 +00:00
Kenichi Handa
86c507f71d (basic-save-buffer-1): Set car part of
buffer-file-coding-system-explicit.
(revert-buffer): Check car part of
buffer-file-coding-system-explicit.
2009-03-03 01:58:22 +00:00
Glenn Morris
b61324c301 (confirm-nonexistent-file-or-buffer): `other' must be last custom
choice.  (Bug#2506)
2009-03-01 00:48:51 +00:00
Jason Rumney
bb4a52db9f (make-directory): Stop recursing if parent is self. (Bug#2309) 2009-02-17 14:27:28 +00:00
Eli Zaretskii
e005ff0da1 (load-library): Doc fix. 2009-02-13 15:14:33 +00:00
Stefan Monnier
70ff4f5966 (read-buffer-to-switch): Add table to icomplete-with-completion-tables. 2009-02-12 02:19:53 +00:00
Eli Zaretskii
86a3035294 (save-buffer): Display "Saving file FOO..." message regardless of
buffer's size.  (Bug#2137)
2009-02-07 10:25:06 +00:00
Chong Yidong
0eef14bdd0 (save-buffers-kill-terminal): Args for
server-save-buffers-kill-terminal changed.
2009-01-11 16:45:52 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Chong Yidong
f6fbae115c (basic-save-buffer): Revert 2008-12-22 change.
(buffer-swapped-with): Var removed.
2008-12-31 02:13:31 +00:00
Chong Yidong
d5ac5779a4 (move-file-to-trash): Bind backup-directory-alist to nil before
uniquifying backup trash file name.
2008-12-28 03:24:53 +00:00
Eli Zaretskii
7533b41880 (dosified-file-name): Declare. 2008-12-26 18:00:26 +00:00
Eli Zaretskii
8245c36184 (dir-locals-find-file) [ms-dos]: Run dir-locals-file through
dosified-file-name.  Compare files case-insensitively on systems whose
filesystems are case-insensitive.
2008-12-26 15:01:10 +00:00
Richard M. Stallman
caba192ed3 (basic-save-buffer): Fix previous change. 2008-12-22 20:11:51 +00:00
Richard M. Stallman
6faf57bdbb (buffer-swapped-with): New variable.
(basic-save-buffer-0): Most of basic-save-buffer moved here.
(basic-save-buffer): Unswap the buffer temporarily if nec.
2008-12-22 19:48:08 +00:00
Chong Yidong
be9acc2629 (save-some-buffers): At each map-y-or-n-p iteration,
check whether the buffer is still alive.
2008-12-09 23:43:11 +00:00
Glenn Morris
8bfbd1327b (toggle-read-only): Doc fix. 2008-12-04 06:13:19 +00:00
Chong Yidong
622bdb51de Correct spalling. 2008-12-03 03:26:01 +00:00
Juanma Barranquero
76e7a7f0b4 * files.el (break-hardlink-on-save): Fix typo in docstring. Add :version tag. 2008-11-29 21:32:39 +00:00
Karl Fogel
1d367309a1 * emacs-cvs/lisp/files.el
(break-hardlink-on-save): New variable.
  (basic-save-buffer-2): Honor new variable break-hardlink-on-save.
  (file-precious-flag): Mention it in doc string.
2008-11-29 19:04:14 +00:00
Chong Yidong
4a977e2030 (confirm-nonexistent-file-or-buffer): Allow
`after-completion' value to request confirm only after TAB.
(confirm-nonexistent-file-or-buffer): New function.
(read-buffer-to-switch, find-file, find-file-other-window)
(find-file-other-frame, find-file-read-only)
(find-file-read-only-other-window)
(find-file-read-only-other-frame): Use it.
(switch-to-buffer-other-window, switch-to-buffer-other-frame): Doc
fix.
2008-11-24 19:13:58 +00:00
Juri Linkov
75fd7f12d5 (hack-local-variables-confirm): Rename arg `project' to
`dir-name'.  Move `(or dir-name name)' to let-binding of `name'.
(hack-local-variables-filter): Rename arg `project' to `dir-name'.
(hack-local-variables): Rename call of `hack-project-variables' to
`hack-dir-local-variables'.  Change error text to "Directory-local
variables error".
(dir-locals-class-alist): Rename from `project-class-alist'.
(dir-locals-directory-alist): Rename from `project-directory-alist'.
(dir-locals-get-class-variables): Rename from `project-get-alist'.
(dir-locals-collect-mode-variables): Rename from
`project-collect-bindings-from-alist'.  Rename arg `mode-alist' to
`mode-variables', and arg `settings' to `variables'.
(dir-locals-collect-variables): Rename from
`project-collect-binding-list'.  Rename arg `binding-list' to
`class-variables', and arg `settings' to `variables'.
(dir-locals-set-directory-class): Rename from `set-directory-project'.
(dir-locals-set-class-variables): Rename from `define-project-bindings'.
Rename arg `settings' to `variables'.
(dir-locals-file): New defconst.
(dir-locals-find-file): Rename from `project-find-settings-file'.
Use `dir-locals-file'.  Rename let-bound `settings' to `locals-file',
and `pda' to `dir-elt'.
(dir-locals-read-from-file): Rename from
`project-define-from-project-file'.  Rename arg `settings-file'
to `file'.  Rename let-bound `list' to `variables'.
(hack-dir-local-variables): Rename from `hack-project-variables'.
Rename let-bound `settings' to `variables-file', `root-dir'
to `dir-name', and `bindings' to `variables'.
2008-11-22 19:02:47 +00:00
Martin Rudalics
3ad96b4d0a (switch-to-buffer-other-window, switch-to-buffer-other-frame):
Rename buffer argument to buffer-or-name.  Reword and mention new
option confirm-nonexistent-file-or-buffer in doc-string.
2008-11-22 11:42:00 +00:00
Chong Yidong
08bb989956 (confirm-nonexistent-file-or-buffer): Change default to nil. 2008-11-21 06:46:18 +00:00
Glenn Morris
6620643fb3 Stephen Berman <Stephen.Berman at gmx.net>
(auto-mode-alist): Recognize more OpenOffice.org extensions.
2008-11-20 02:45:32 +00:00
Dan Nicolaescu
35f0d8ce8f (project-settings-file): Remove.
(project-find-settings-file): Undo previous change that added the
use of project-settings-file.
2008-11-19 13:25:43 +00:00
Stefan Monnier
35b05a7793 (confirm-nonexistent-file-or-buffer):
Rename from find-file-confirm-nonexistent-file.
(read-buffer-to-switch): Use it.
2008-11-18 18:26:08 +00:00
Karl Fogel
dab71b2c8d (file-precious-flag): Document that this flag is advisory. 2008-11-14 23:36:37 +00:00
Juanma Barranquero
8fc29035f3 * w32-fns.el (w32-shell-dos-semantics):
* calendar/diary-lib.el (diary-face-attrs):
* international/mule-cmds.el (set-default-coding-systems)
  (prefer-coding-system):
* net/tramp.el (tramp-set-completion-function):
* progmodes/vhdl-mode.el (vhdl-file-header):
* term/pc-win.el (msdos-show-help): Fix typos in docstrings.

* emacs-lisp/authors.el (authors-fixed-entries): Fix typo in value.

* files.el (enable-local-eval, not-modified, kill-buffer-ask)
  (kill-matching-buffers, save-buffers-kill-emacs)
  (save-buffers-kill-terminal): Fix typos in docstrings.
  (switch-to-buffer-other-window): Reflow docstring.
  (revert-buffer): Doc fix.
  (define-project-bindings): Rename arg LIST to SETTINGS.
  (project-find-settings-file): Use `let', not `let*'.  Use `when'.
2008-11-14 13:05:18 +00:00
Chong Yidong
386987aa50 (project-find-settings-file): Fix last change. 2008-11-13 17:04:53 +00:00
Juanma Barranquero
09949b83d2 * files.el (project-settings-file, locate-dominating-file):
Fix typos in docstrings.
  (find-file-visit-truename): Remove * from defcustom docstring.
2008-11-13 16:01:47 +00:00
Chong Yidong
ffe89e7639 (project-settings-file): New variable.
(project-find-settings-file): Use it, instead of hardcoding .dir.settings.el.
2008-11-13 15:17:48 +00:00