Stefan Monnier
cb211eb2f6
(view-read-only): Move from view.el to files.el.
2003-04-18 13:53:18 +00:00
Stefan Monnier
818286f457
(view-read-only): Don't declare a second time.
...
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Check that file does exist.
(large-file-warning-threshold): New custom.
(find-file-noselect): Use it.
(report-errors): New macro.
(normal-mode): Use it.
(toggle-read-only): Really toggle, even if view-mode is on.
(parse-colon-path): Remove unused `cd-prefix' var.
(make-backup-file-name-1): Remove unused `failed' var.
(basic-save-buffer): Remove unused `tempsetmodes' var.
(basic-save-buffer-2): Remove unused `temp' var.
(insert-directory): Remove unused `available' var.
2003-04-17 21:15:04 +00:00
Stefan Monnier
4e16371510
*** empty log message ***
2003-04-14 20:48:44 +00:00
Richard M. Stallman
92464ae63f
(file-chase-links): Fix previous change.
2003-04-09 19:06:19 +00:00
Richard M. Stallman
302fcc98cc
(file-chase-links): New arg LIMIT.
...
After that many iterations, just return what we've got.
2003-04-09 01:34:38 +00:00
Richard M. Stallman
a0e74e7261
(hack-local-variables-prop-line): New arg MODE-ONLY.
...
(hack-local-variables): When MODE-ONLY is set, pass it along to
hack-local-variables-prop-line.
2003-04-03 23:00:22 +00:00
Kai Großjohann
493c98af4a
(file-relative-name): Remove superfluous `and'.
...
Clarify docstring. From Lars Hansen.
2003-03-31 16:05:50 +00:00
Kai Großjohann
753ad98890
(file-relative-name): If FILENAME and DIRECTORY are on
...
different drives (on DOS/Windows) or use different handlers, do
like `expand-file-name' on FILENAME and return an absolute name.
From Lars Hansen <larsh@math.ku.dk>.
2003-03-29 15:31:07 +00:00
Kenichi Handa
9bdbd98e40
(recode-file-name): New function.
2003-03-26 04:42:29 +00:00
John Paul Wallington
194600a8fa
* files.el (recover-session): Error if there are no previous
...
sessions to recover.
* subr.el (posn-col-row): Simplify.
* arc-mode.el (archive-subtype, archive-file-list-start)
(archive-file-list-end, archive-proper-file-start)
(archive-read-only, archive-local-name, archive-mode-map)
(archive-file-name-indent, archive-remote)
(archive-alternate-display, archive-superior-buffer)
(archive-subfile-mode): Doc fixes.
2003-03-14 22:38:46 +00:00
Kenichi Handa
b6647390d9
(insert-directory): Decode by what specified.
2003-03-12 08:02:32 +00:00
Jason Rumney
3f5c8d98d2
(auto-mode-alist): Add .xsl for sgml-mode.
2003-03-11 22:17:21 +00:00
Richard M. Stallman
e3bfcda9ac
(revert-buffer): Different error message for reverting a nonexistent file.
2003-02-23 15:04:11 +00:00
Kai Großjohann
5baabf7b78
(abbreviate-file-name): Shorten docstring: variables
...
are now hyperlinks and `C-h v' need not be mentioned explicitly.
2003-02-22 20:27:51 +00:00
Kai Großjohann
b69a0de98a
(abbreviate-file-name): Document removal of
...
automounter prefixes. Reported by Lars Hansen.
2003-02-21 16:33:24 +00:00
Kenichi Handa
7702ccc529
(insert-directory): Add workaround for the case that we
...
can't trust ls's output as to byte positions of filenames.
2003-02-17 06:18:58 +00:00
Markus Rost
37c58ca655
(find-alternate-file): Undo last change.
2003-02-13 19:38:19 +00:00
Juanma Barranquero
5b373bd3f7
(file-truename): Revert change from 2002-11-27.
2003-02-12 14:14:15 +00:00
Juanma Barranquero
c45bc75309
(find-alternate-file): Check whether `dired-directory' is bound.
2003-02-12 09:26:17 +00:00
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