Commit graph

1158 commits

Author SHA1 Message Date
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
Vinicius Jose Latorre
2a29c40930 return back entry: revert-buffer should eliminate overlays and the mark 2007-12-12 01:18:26 +00:00
Vinicius Jose Latorre
bb14938c9f revert-buffer eliminates overlays and the mark 2007-12-11 00:26:52 +00:00
Dan Nicolaescu
62a7c35dbc (auto-mode-alist): Recognize verilog files. 2007-12-08 19:39:26 +00:00
Deepak Goel
f6e7ec0248 Fix possibly buggy calls to `message'. 2007-12-06 00:17:56 +00:00