1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
Commit Graph

632 Commits

Author SHA1 Message Date
Richard M. Stallman
7906c044c1 (find-alternate-file): Handle dired-directory like buffer-file-name. 2003-02-04 10:40:14 +00:00
Juanma Barranquero
c60ee5e70f Cygwin support patch. 2003-01-31 15:24:20 +00:00
Kenichi Handa
99f01c91bc (insert-directory): Read the output of "ls" by
no-conversion, and decode it later while preserving
`dired-filename' property.
2003-01-23 05:59:47 +00:00
Richard M. Stallman
b459083cb7 (mode-line-process): Mark as risky. 2003-01-13 08:05:13 +00:00
Richard M. Stallman
7da6bf0059 (backup-buffer): Cope if file-modes returns nil. 2003-01-01 16:55:11 +00:00
Richard M. Stallman
4ad1689f62 (find-file-noselect-1): Kill local value of `cursor-type'. 2002-12-28 21:23:58 +00:00
Andreas Schwab
75bb5ca4dc (insert-directory): Insert free space only when listing a full directory. 2002-12-08 13:20:42 +00:00
Andreas Schwab
b2a26f4e8f (find-file-read-args): Reenable wildcard processing unconditionally. 2002-12-07 14:47:40 +00:00
Jason Rumney
06dd5ef70b (file-truename): Canonicalize non-existent names on w32. 2002-11-27 23:53:44 +00:00
Richard M. Stallman
fecddd0d16 (parse-time-rules): Mark it as risky. 2002-11-18 04:57:40 +00:00
Kim F. Storm
fbafc3bd64 (mode-name): Mark it as risky-local-variable here like the
other mode-line elements (moved from bindings.el).
2002-11-14 11:24:02 +00:00
Dave Love
24c9eeeb1d (normal-mode): Call ucs-set-table-for-input. 2002-11-06 23:28:29 +00:00
Juanma Barranquero
3a64a3cfa0 (find-buffer-visiting): Accept new optional PREDICATE argument to return only a
buffer that satisfies the predicate.
(insert-file-1): New function.
(insert-file-literally): Use it.
(insert-file): Use it.
2002-11-05 07:21:14 +00:00
Richard M. Stallman
0d8781d856 (risky-local-variable-p): VAL=nil has special meaning. 2002-10-26 22:34:14 +00:00
Richard M. Stallman
472514b72d (risky-local-variable-p): New function.
(compile-command): Use `stringp' for `safe-local-variable' prop.
(hack-one-local-variable): Use `risky-local-variable-p'.
2002-10-23 17:38:44 +00:00
André Spiegel
9423860f88 (insert-directory): Handle //SUBDIRED// lines in recursive listings
from ls --dired.
2002-10-14 15:19:49 +00:00
Paul Reilly
eb55170455 auto-mode-alist: Use archive-mode for ear/EAR (Enterprise ARchive) and
war/WAR (Web ARchive) files.
2002-09-29 01:43:10 +00:00
Jonathan Yavner
7ed9159a5c New major mode "SES" for spreadsheets.
New function (unsafep X) determines whether X is a safe Lisp form.
New support module testcover.el for coverage testing.
2002-09-28 18:45:56 +00:00
Richard M. Stallman
446c63b0a2 (backup-buffer): Bind local var MODES.
Don't use renaming for a suid or sgid file.
Use backup-buffer-copy to do copying.
(backup-buffer-copy): New subroutine.
Clear suid and sgid bits for the copy.
2002-09-26 22:00:22 +00:00
Kai Großjohann
1fc85daee0 * dired.el (dired-insert-directory): Always add "--dired" to to
SWITCHES for remote files.
* files.el (insert-directory): Comment saying that "--dired"
might be in the SWITCHES.
* net/ange-ftp.el (ange-ftp-ls): Handle "--dired" in LSARGS.
(ange-ftp-insert-directory): Comment explaining "--dired"
handling.
2002-09-22 13:01:10 +00:00
Markus Rost
4e4e95198a (diff-buffer-with-file): Check whether associated file exists.
Display message for 1 second.  Always return nil.
2002-09-13 20:22:29 +00:00
Richard M. Stallman
0b9e474953 (diff-buffer-with-file): Simplify.
Don't signal an error if buffer has no file.
Call sit-for after `diff' returns.
2002-09-10 16:48:52 +00:00
Kai Großjohann
709d45e1a8 (auto-mode-alist): ~/.gnus, ~/.viper are in
emacs-lisp-mode, like ~/.emacs.
2002-09-10 08:08:18 +00:00
Markus Rost
d97182abe1 (save-some-buffers-action-alist): Use lower case for help string of
diff-buffer-with-file.
2002-09-09 20:28:53 +00:00
Richard M. Stallman
b921b596bc (auto-mode-alist): Use sh-mode for .bash files. 2002-09-09 19:32:41 +00:00
Richard M. Stallman
ee291b4684 (make-backup-file-name-1): When make-directory fails,
ignore backup-directory-alist.
(make-directory): Expand DIR before looking for handler.
2002-09-09 19:23:37 +00:00
Colin Walters
5840a0d4d3 (diff-buffer-with-file): Call diff synchronously, so we don't delete
the temporary file before diff has a chance to read it.
2002-09-07 21:30:37 +00:00
Richard M. Stallman
1eeae2a113 (save-some-buffers-action-alist): New variable.
(save-some-buffers): Use that.
(diff-buffer-with-file): New function.
2002-09-02 00:11:41 +00:00
Richard M. Stallman
6f4b3ed83d (find-buffer-visiting): Compare file attributes using buffer-file-truename. 2002-08-28 22:23:36 +00:00
Richard M. Stallman
d7b6ca4a9f (make-auto-save-file-name, make-backup-file-name-1):
Don't use directory-sep-char.
2002-08-28 22:16:42 +00:00
Richard M. Stallman
d97a9ff339 (find-alternate-file): Bind kill-buffer-query-functions locally, don't set it. 2002-08-27 20:38:30 +00:00
Richard M. Stallman
1aa8fe4665 (ange-ftp-completion-hook-function): Add safe-magic prop. 2002-08-24 02:57:31 +00:00
Richard M. Stallman
64d18e8f14 (recover-this-file): New function.
(after-find-file): Recommend recover-this-file.
2002-08-15 20:08:24 +00:00
Kenichi Handa
01afb4f3ac (revert-buffer): Fix previous change. 2002-07-30 00:44:36 +00:00
Richard M. Stallman
6ee24f1e72 (file-name-sans-extension): Avoid expanding DIRECTORY. 2002-07-27 19:09:54 +00:00
Kenichi Handa
1eb0bebc79 (revert-buffer): Before calling insert-file-contents,
kill the local variable buffer-file-coding-system.
2002-07-26 12:07:26 +00:00
Richard M. Stallman
f3f9e20778 (basic-save-buffer-2): If there's an error writing the file,
unrename the backup file if it was just made.
(backup-buffer, basic-save-buffer-2, basic-save-buffer-1)
(basic-save-buffer): Value now has form (MODES . BACKUPNAME)
when a backup was just made by renaming.  Otherwise it's nil.
2002-07-23 19:23:08 +00:00
Richard M. Stallman
a5dd5f602f (toggle-read-only): Clean up the hint message. 2002-07-20 22:02:57 +00:00
André Spiegel
d758359d9d Bind toggle-read-only to C-x C-q.
(toggle-read-only): Display a warning message if the file is under
version control.
2002-07-16 17:40:37 +00:00
Richard M. Stallman
63fabbb4fe (find-alternate-file): Offer to save a modified buffer.
Handle kill-buffer-query-functions better.
2002-07-14 15:30:54 +00:00
Pavel Janík
c25773c46d *** empty log message *** 2002-07-11 17:32:01 +00:00
Kenichi Handa
82e22b5719 (insert-directory): Be sure to bind
coding-system-for-write to the just decided
coding-system-for-read.
2002-07-09 02:42:06 +00:00
Kim F. Storm
879365c68f (after-find-file): Don't check for read-only status
of files just created (and not yet saved on disk).
2002-07-07 23:15:04 +00:00
Richard M. Stallman
8fd9c1745e (safe-local-eval-forms): New user option.
(hack-one-local-variable-eval-safep): Support it.
Also allow `safe-local-eval-function' property to be a function
or a list of functions.
(c-add-style): Delete `safe-local-eval-function' property.

(after-find-file): Make buffer read-only if file is
marked that way, even for root.

(save-some-buffers): Doc fix.
2002-07-07 09:21:52 +00:00
Francesco Potortì
6e6b84ef01 (auto-mode-alist): Add knowledge of .sx[dmicw] file
suffixes for Open office data files.
2002-07-05 23:15:37 +00:00
Richard M. Stallman
ff7affeb8b (hack-one-local-variable-constantp): New function.
(hack-one-local-variable-eval-safep): New function.
Check for `eval:' calling fn with `safe-local-eval-function' property.
(hack-one-local-variable): Use hack-one-local-variable-eval-safep.
(c-add-style, c-set-style): Add safe-local-eval-function property.

(insert-directory): Handle --dired option to ls.

(file-remote-p): New function.
2002-07-02 18:58:29 +00:00
Andreas Schwab
525fdbc9c8 * files.el (directory-free-space-args): Don't use -P on Darwin.
* term/mac-win.el: Don't set it here.
2002-06-30 14:42:19 +00:00
Stefan Monnier
0370fe77f1 Rename (and mark as obsolete)
find-file-hooks to find-file-hook,
find-file-not-found-hooks to find-file-not-found-functions,
write-file-hooks to write-file-functions,
write-contents-hooks to write-contents-functions.
Mark local-write-file-hooks as obsolete.
(locate-file-completion): Don't cons uselessly.  Use test-completion.
(basic-save-buffer): Use (point-min) rather than 1.
(basic-save-buffer-2): Obey the `setmodes' returned by backup-buffer.
2002-06-23 21:16:38 +00:00
Andreas Schwab
05a7cb3dca (find-file-read-args): Add new argument `mustmatch' and
pass it down to read-file-name.
(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 and fix prompts.
2002-06-21 08:35:50 +00:00
Andreas Schwab
dfd8bf47b3 (auto-mode-alist): Move entry for ".in" to the end. 2002-06-13 09:32:23 +00:00