aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/files.el
Commit message (Collapse)AuthorAgeFilesLines
...
* (risky-local-variable-p): New function.Richard M. Stallman2002-10-231-12/+17
| | | | | (compile-command): Use `stringp' for `safe-local-variable' prop. (hack-one-local-variable): Use `risky-local-variable-p'.
* (insert-directory): Handle //SUBDIRED// lines in recursive listingsAndré Spiegel2002-10-141-0/+3
| | | | from ls --dired.
* auto-mode-alist: Use archive-mode for ear/EAR (Enterprise ARchive) andPaul Reilly2002-09-291-2/+2
| | | | war/WAR (Web ARchive) files.
* New major mode "SES" for spreadsheets.Jonathan Yavner2002-09-281-7/+11
| | | | | New function (unsafep X) determines whether X is a safe Lisp form. New support module testcover.el for coverage testing.
* (backup-buffer): Bind local var MODES.Richard M. Stallman2002-09-261-21/+19
| | | | | | | 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.
* * dired.el (dired-insert-directory): Always add "--dired" to toKai Großjohann2002-09-221-0/+3
| | | | | | | | | 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.
* (diff-buffer-with-file): Check whether associated file exists.Markus Rost2002-09-131-12/+18
| | | | Display message for 1 second. Always return nil.
* (diff-buffer-with-file): Simplify.Richard M. Stallman2002-09-101-16/+14
| | | | | Don't signal an error if buffer has no file. Call sit-for after `diff' returns.
* (auto-mode-alist): ~/.gnus, ~/.viper are inKai Großjohann2002-09-101-3/+3
| | | | emacs-lisp-mode, like ~/.emacs.
* (save-some-buffers-action-alist): Use lower case for help string ofMarkus Rost2002-09-091-1/+1
| | | | diff-buffer-with-file.
* (auto-mode-alist): Use sh-mode for .bash files.Richard M. Stallman2002-09-091-0/+1
|
* (make-backup-file-name-1): When make-directory fails,Richard M. Stallman2002-09-091-5/+8
| | | | | ignore backup-directory-alist. (make-directory): Expand DIR before looking for handler.
* (diff-buffer-with-file): Call diff synchronously, so we don't deleteColin Walters2002-09-071-1/+1
| | | | the temporary file before diff has a chance to read it.
* (save-some-buffers-action-alist): New variable.Richard M. Stallman2002-09-021-12/+43
| | | | | (save-some-buffers): Use that. (diff-buffer-with-file): New function.
* (find-buffer-visiting): Compare file attributes using buffer-file-truename.Richard M. Stallman2002-08-281-1/+1
|
* (make-auto-save-file-name, make-backup-file-name-1):Richard M. Stallman2002-08-281-10/+9
| | | | Don't use directory-sep-char.
* (find-alternate-file): Bind kill-buffer-query-functions locally, don't set it.Richard M. Stallman2002-08-271-3/+4
|
* (ange-ftp-completion-hook-function): Add safe-magic prop.Richard M. Stallman2002-08-241-0/+1
|
* (recover-this-file): New function.Richard M. Stallman2002-08-151-1/+6
| | | | (after-find-file): Recommend recover-this-file.
* (revert-buffer): Fix previous change.Kenichi Handa2002-07-301-1/+2
|
* (file-name-sans-extension): Avoid expanding DIRECTORY.Richard M. Stallman2002-07-271-2/+3
|
* (revert-buffer): Before calling insert-file-contents,Kenichi Handa2002-07-261-0/+6
| | | | kill the local variable buffer-file-coding-system.
* (basic-save-buffer-2): If there's an error writing the file,Richard M. Stallman2002-07-231-12/+27
| | | | | | | 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.
* (toggle-read-only): Clean up the hint message.Richard M. Stallman2002-07-201-2/+2
|
* Bind toggle-read-only to C-x C-q.André Spiegel2002-07-161-14/+20
| | | | | (toggle-read-only): Display a warning message if the file is under version control.
* (find-alternate-file): Offer to save a modified buffer.Richard M. Stallman2002-07-141-13/+22
| | | | Handle kill-buffer-query-functions better.
* *** empty log message ***Pavel Janík2002-07-111-1/+1
|
* (insert-directory): Be sure to bindKenichi Handa2002-07-091-6/+6
| | | | | coding-system-for-write to the just decided coding-system-for-read.
* (after-find-file): Don't check for read-only statusKim F. Storm2002-07-071-1/+2
| | | | of files just created (and not yet saved on disk).
* (safe-local-eval-forms): New user option.Richard M. Stallman2002-07-071-18/+47
| | | | | | | | | | | | (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.
* (auto-mode-alist): Add knowledge of .sx[dmicw] fileFrancesco Potortì2002-07-051-0/+1
| | | | suffixes for Open office data files.
* (hack-one-local-variable-constantp): New function.Richard M. Stallman2002-07-021-14/+53
| | | | | | | | | | | (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.
* * files.el (directory-free-space-args): Don't use -P on Darwin.Andreas Schwab2002-06-301-1/+2
| | | | * term/mac-win.el: Don't set it here.
* Rename (and mark as obsolete)Stefan Monnier2002-06-231-44/+42
| | | | | | | | | | | 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.
* (find-file-read-args): Add new argument `mustmatch' andAndreas Schwab2002-06-211-8/+8
| | | | | | | 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.
* (auto-mode-alist): Move entry for ".in" to the end.Andreas Schwab2002-06-131-3/+3
|
* (make-auto-save-file-name): Rename local `filename' to `file-name'.Richard M. Stallman2002-06-111-1/+1
|
* (revert-buffer): Correct typo: variable name is `buffer-file-format',Miles Bader2002-06-101-1/+1
| | | | not `buffer-file-formats'.
* (find-file-noselect-1): Undo previous change.Richard M. Stallman2002-06-081-11/+14
|
* (auto-mode-alist): Strip trailing ".in" from the fileSam Steingold2002-06-011-5/+6
| | | | name when deciding the mode (for config.h.in, Makefile.in etc).
* (find-file-default): Add defvar for var already used.Richard M. Stallman2002-05-301-0/+3
|
* (find-file-noselect-1): Return the buffer we createdRichard M. Stallman2002-05-291-8/+10
| | | | | | even if it has been killed within `after-find-file'. (auto-mode-alist): Use ada-mode for .ad[bs].dg files.
* (read-directory-name): New function.Kim F. Storm2002-05-281-1/+20
| | | | (cd): Use it instead of read-file-name.
* (file-newest-backup): Use file-name-sans-versions.Markus Rost2002-05-221-1/+2
|
* (find-file-read-args): Don't trash existing value ofMiles Bader2002-05-201-5/+8
| | | | `minibuffer-setup-hook', just add our hook to it.
* (locate-file): Doc fix.Richard M. Stallman2002-05-191-12/+41
|
* (make-auto-save-file-name):Richard M. Stallman2002-05-141-22/+30
| | | | Delete the auto-save file after make-temp-file creates it.
* (locate-file): Deprecate integer values for predicate.Stefan Monnier2002-05-061-1/+1
|
* (locate-file): New fun.Stefan Monnier2002-04-301-8/+32
| | | | | | (locate-file-completion): Rename from load-completion and generalize. (load-library): Use it. (make-auto-save-file-name): Expand caddr.
* (small-temporary-file-directory): Fix custom type.Richard M. Stallman2002-04-291-1/+1
|