Commit graph

1362 commits

Author SHA1 Message Date
Chong Yidong
2b8ac025af (normal-mode): Move call to hack-project-variables into
hack-local-variables.
(file-local-variables-alist, before-hack-local-variables-hook):
New vars.
(ignored-local-variables): Add file-local-variables-alist.
(hack-local-variables-filter): Renamed from
hack-local-variables-apply.  Add the result to
file-local-variables-alist, without applying them.
(hack-local-variables): Set file-local-variables-alist to nil.
Call hack-project-variables and before-hack-local-variables-hook.
Apply variables here, instead of hack-local-variables-apply.
Based on a patch by Alan Mackenzie.
2008-07-31 01:22:54 +00:00
Jason Rumney
85d181e19e (file-truename): Get truename of ancestors if file does
not exist on Windows.
2008-07-11 23:08:07 +00:00
Jason Rumney
6cf29fe815 Changes from Toru Tsuneyoshi for using Trash can when deleting files.
* files.el (backup-extract-version): Handle versioned directories.
	(trash-directory): New variable.
	(move-file-to-trash): New function.

	* cus-start.el (delete-by-moving-to-trash): Declare for custom.

        * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.

        * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
        (syms_of_fileio): Initialize and export them.
        (Fdelete_directory, Fdelete_file): Optionally delete via trash.

        * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
        (Fsystem_move_file_to_trash): New function.
        (syms_of_w32fns): Export it to lisp.
2008-07-02 13:19:07 +00:00
Stefan Monnier
9b106871a4 * emacs-lisp/map-ynp.el (map-y-or-n-p): Add support for other-window-scroll.
* files.el (save-some-buffers-action-alist): Only use recursive-edit
if the user enabled recursive-minibuffers.
2008-06-11 01:47:48 +00:00
Stefan Monnier
5ee66afc6d (hack-local-variables): Don't signal an error if the local
variable section is not properly terminated.
2008-05-28 20:23:06 +00:00
Stefan Monnier
ab1d38354d * progmodes/flymake.el (flymake-save-buffer-in-file):
* shadowfile.el (shadow-copy-file):
* arc-mode.el (archive-*-write-file-member):
* files.el (diff-buffer-with-file):
* subr.el (with-temp-file): Pass nil to write-region.
* jka-compr.el (jka-compr-write-region): Preserve `start's nullness.
2008-05-28 17:35:34 +00:00
Stefan Monnier
6b3d752c5d * src/fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
calling build_annotations.
* lisp/files.el (basic-save-buffer-2): Pass nil rather than (point-min)
to write-region.
2008-05-28 12:36:15 +00:00
Stefan Monnier
a77b655d87 (locate-dominating-file): Accept non-existing argument.
(project-find-settings-file): Rewrite, using locate-dominating-file.
2008-05-22 03:09:34 +00:00
Glenn Morris
361edc854f (c-postprocess-file-styles): Declare for compiler. 2008-05-21 03:55:40 +00:00
Michael Olson
360a13492a files.el (project-find-settings-file): Change concat to expand-file-name. 2008-05-20 03:15:16 +00:00
Michael Olson
12a28ea34c lisp/files.el: Remove trailing whitespace. 2008-05-19 22:39:16 +00:00
Michael Olson
1b21ee065d Implement Project-local variables. 2008-05-19 22:36:09 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
2bd49e46f4 (minibuffer-with-setup-hook): Allow `fun' expressions rather than only value. 2008-05-02 17:22:04 +00:00
Stefan Monnier
28bb43e10f (read-buffer-to-switch): Avoid making assumptions about `other-buffer'. 2008-04-29 14:47:45 +00:00
Dan Nicolaescu
bfeee9d151 * epa-file.el (auto-encryption-mode): Rename from epa-file-mode.
(epa-file-handler): Put 'safe-magic and 'operations properties.

* epa.el (epa-global-minor-modes, epa-mode, epa-menu)
(epa-menu-items): Remove.

* epa-dired.el (epa-dired-do-decrypt, epa-dired-do-verify)
(epa-dired-do-sign, epa-dired-do-encrypt): Add autoload cookie.
(epa-dired-mode, epa-global-dired-mode): Remove.

* dired.el (dired-mode-map): Bind encryption/decryption commands.

* menu-bar.el (menu-bar-encryption-decryption-menu): New menu item.

* files.el (insert-file-contents-literally): Inhibit epa-file-handler.
2008-04-27 19:49:15 +00:00
Juri Linkov
e4c0cccf13 (read-buffer-to-switch): New function.
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Change interactive spec to call read-buffer-to-switch instead of
using the letter "B".
2008-04-22 19:48:02 +00:00
Stefan Monnier
e8dab97599 * files.el (locate-file-completion-table): Rename from
locate-file-completion and make it use `pred' in the normal way.
(locate-file-completion): New compatibility wrapper.
(load-library): Use locate-file-completion-table.
* emacs-lisp/find-func.el (find-library): Likewise.
* info.el: Use with-current-buffer and inhibit-read-only.
(Info-read-node-name-2): Change to use `predicate' in the normal way.
(Info-read-node-name-1): Adjust uses accordingly.
2008-04-19 03:33:13 +00:00
Glenn Morris
cd6ef82d85 Move non-autoloaded define-obsolete-variable-alias calls for
defcustoms not in dumped files before the associated defcustom.
2008-04-12 03:17:19 +00:00
Juanma Barranquero
afe9998d56 (abort-if-file-too-large): Fix typo in docstring. 2008-04-05 21:15:20 +00:00
Adrian Robert
4954b81b55 files.el: add abort-if-file-too-large and use it in find-file-noselect and insert-file-1 2008-04-05 12:03:23 +00:00
Stefan Monnier
ece2193705 (auto-mode-alist): Use archive-mode for Debian packages. 2008-04-03 20:06:46 +00:00
Stefan Monnier
ae0ece90c6 (make-directory): Docstring fix. 2008-03-14 17:14:09 +00:00
Stefan Monnier
38a79e3315 (display-buffer-other-frame): Eliminate problematic code. 2008-03-11 20:48:57 +00:00
Miles Bader
51fb064bc7 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1090
2008-03-01 01:28:31 +00:00
Jason Rumney
ad80c67928 (make-auto-save-file-name): Encode more characters in
non-file buffer names. Use url-encoding.
2008-02-26 16:52:02 +00:00
Chong Yidong
d6d6157455 (shell-quote-wildcard-pattern): Quote ' and " as well. 2008-02-25 17:42:13 +00:00
Chong Yidong
df28b5c176 (shell-quote-wildcard-pattern): Quote ' and " as well. 2008-02-25 17:40:42 +00:00
Miles Bader
ffe832ea68 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1081
2008-02-25 00:21:57 +00:00
Jason Rumney
12f68d3fdf (file-name-invalid-regexp): Fix octal/decimal confusion. 2008-02-24 16:57:51 +00:00
Stefan Monnier
a02bf0c3ee (locate-dominating-file): Fix thinko in last change.
Reported by Bruce Stephens <bruce.stephens@isode.com>.
2008-02-19 02:21:08 +00:00
Stefan Monnier
5ffc4c051f (locate-dominating-file): Remove initial loop because it's
not careful enough.  Detect the uid-change all within the main loop.
2008-02-16 21:39:31 +00:00
Stefan Monnier
8299c8a5ce (file-remote-p): Docstring fix. 2008-01-30 21:25:08 +00:00
Miles Bader
02cbe062be Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1024
2008-01-30 07:11:04 +00:00
Richard M. Stallman
6638102773 (hack-local-variables): Don't query about fake variables. 2008-01-29 14:45:13 +00:00
Miles Bader
1bad168e59 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Dan Nicolaescu
146b3daf07 (safe-local-eval-forms): Mark
(add-hook 'write-file-hooks 'time-stamp) as safe.
2008-01-10 14:01:13 +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
Thien-Thi Nguyen
cfef87adf1 (cd-absolute): Fix omission bug:
Make `list-buffers-directory' buffer-local.
2007-12-29 12:59:09 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
Richard M. Stallman
73936494a3 (conf-mode-maybe): New function.
(auto-mode-alist): Use conf-mode-maybe for .conf etc.
2007-12-26 17:29:34 +00:00
Juri Linkov
88a548042d (auto-mode-alist): Add \\' to doc-view files regexp.
Remove duplicate entry .x[bp]m accidently added by the latest sync from Emacs-22.
2007-12-23 17:37:46 +00:00
Andreas Schwab
f862fc9e05 (switch-to-buffer-other-frame): Return the buffer
switched to.
2007-12-23 16:08:54 +00:00
Andreas Schwab
a769e627ec (switch-to-buffer-other-frame): Return the buffer
switched to.
2007-12-23 16:07:54 +00:00
Eli Zaretskii
426aa4f0be (file-name-history): Add reference to `history-length' in the doc string. 2007-12-22 17:08:03 +00:00
Michael Albinus
9fa0d3aabb * files.el (cd-absolute): Set `list-buffers-directory' in order to
show correct path in buffer list.

* net/tramp.el (tramp-open-connection-setup-interactive-shell)
(tramp-find-shell): Send only single prompt setting commands, in
order to avoid double-prompt.

* net/tramp-compat.el (top): Require cl only when compiling.
Reported by Glenn Morris <rgm@gnu.org>.
2007-12-18 21:02:53 +00:00
Miles Bader
47854a5568 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-956
2007-12-16 04:31:49 +00:00
Vinicius Jose Latorre
c84b30043d revert-buffer docstring fix 2007-12-12 11:31:52 +00:00
Vinicius Jose Latorre
0dff897520 revert-buffer docstring fix 2007-12-12 11:25:21 +00:00