Stefan Monnier
70ff4f5966
(read-buffer-to-switch): Add table to icomplete-with-completion-tables.
2009-02-12 02:19:53 +00:00
Eli Zaretskii
86a3035294
(save-buffer): Display "Saving file FOO..." message regardless of
...
buffer's size. (Bug#2137)
2009-02-07 10:25:06 +00:00
Chong Yidong
0eef14bdd0
(save-buffers-kill-terminal): Args for
...
server-save-buffers-kill-terminal changed.
2009-01-11 16:45:52 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Chong Yidong
f6fbae115c
(basic-save-buffer): Revert 2008-12-22 change.
...
(buffer-swapped-with): Var removed.
2008-12-31 02:13:31 +00:00
Chong Yidong
d5ac5779a4
(move-file-to-trash): Bind backup-directory-alist to nil before
...
uniquifying backup trash file name.
2008-12-28 03:24:53 +00:00
Eli Zaretskii
7533b41880
(dosified-file-name): Declare.
2008-12-26 18:00:26 +00:00
Eli Zaretskii
8245c36184
(dir-locals-find-file) [ms-dos]: Run dir-locals-file through
...
dosified-file-name. Compare files case-insensitively on systems whose
filesystems are case-insensitive.
2008-12-26 15:01:10 +00:00
Richard M. Stallman
caba192ed3
(basic-save-buffer): Fix previous change.
2008-12-22 20:11:51 +00:00
Richard M. Stallman
6faf57bdbb
(buffer-swapped-with): New variable.
...
(basic-save-buffer-0): Most of basic-save-buffer moved here.
(basic-save-buffer): Unswap the buffer temporarily if nec.
2008-12-22 19:48:08 +00:00
Chong Yidong
be9acc2629
(save-some-buffers): At each map-y-or-n-p iteration,
...
check whether the buffer is still alive.
2008-12-09 23:43:11 +00:00
Glenn Morris
8bfbd1327b
(toggle-read-only): Doc fix.
2008-12-04 06:13:19 +00:00
Chong Yidong
622bdb51de
Correct spalling.
2008-12-03 03:26:01 +00:00
Juanma Barranquero
76e7a7f0b4
* files.el (break-hardlink-on-save): Fix typo in docstring. Add :version tag.
2008-11-29 21:32:39 +00:00
Karl Fogel
1d367309a1
* emacs-cvs/lisp/files.el
...
(break-hardlink-on-save): New variable.
(basic-save-buffer-2): Honor new variable break-hardlink-on-save.
(file-precious-flag): Mention it in doc string.
2008-11-29 19:04:14 +00:00
Chong Yidong
4a977e2030
(confirm-nonexistent-file-or-buffer): Allow
...
`after-completion' value to request confirm only after TAB.
(confirm-nonexistent-file-or-buffer): New function.
(read-buffer-to-switch, 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.
(switch-to-buffer-other-window, switch-to-buffer-other-frame): Doc
fix.
2008-11-24 19:13:58 +00:00
Juri Linkov
75fd7f12d5
(hack-local-variables-confirm): Rename arg `project' to
...
`dir-name'. Move `(or dir-name name)' to let-binding of `name'.
(hack-local-variables-filter): Rename arg `project' to `dir-name'.
(hack-local-variables): Rename call of `hack-project-variables' to
`hack-dir-local-variables'. Change error text to "Directory-local
variables error".
(dir-locals-class-alist): Rename from `project-class-alist'.
(dir-locals-directory-alist): Rename from `project-directory-alist'.
(dir-locals-get-class-variables): Rename from `project-get-alist'.
(dir-locals-collect-mode-variables): Rename from
`project-collect-bindings-from-alist'. Rename arg `mode-alist' to
`mode-variables', and arg `settings' to `variables'.
(dir-locals-collect-variables): Rename from
`project-collect-binding-list'. Rename arg `binding-list' to
`class-variables', and arg `settings' to `variables'.
(dir-locals-set-directory-class): Rename from `set-directory-project'.
(dir-locals-set-class-variables): Rename from `define-project-bindings'.
Rename arg `settings' to `variables'.
(dir-locals-file): New defconst.
(dir-locals-find-file): Rename from `project-find-settings-file'.
Use `dir-locals-file'. Rename let-bound `settings' to `locals-file',
and `pda' to `dir-elt'.
(dir-locals-read-from-file): Rename from
`project-define-from-project-file'. Rename arg `settings-file'
to `file'. Rename let-bound `list' to `variables'.
(hack-dir-local-variables): Rename from `hack-project-variables'.
Rename let-bound `settings' to `variables-file', `root-dir'
to `dir-name', and `bindings' to `variables'.
2008-11-22 19:02:47 +00:00
Martin Rudalics
3ad96b4d0a
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
...
Rename buffer argument to buffer-or-name. Reword and mention new
option confirm-nonexistent-file-or-buffer in doc-string.
2008-11-22 11:42:00 +00:00
Chong Yidong
08bb989956
(confirm-nonexistent-file-or-buffer): Change default to nil.
2008-11-21 06:46:18 +00:00
Glenn Morris
6620643fb3
Stephen Berman <Stephen.Berman at gmx.net>
...
(auto-mode-alist): Recognize more OpenOffice.org extensions.
2008-11-20 02:45:32 +00:00
Dan Nicolaescu
35f0d8ce8f
(project-settings-file): Remove.
...
(project-find-settings-file): Undo previous change that added the
use of project-settings-file.
2008-11-19 13:25:43 +00:00
Stefan Monnier
35b05a7793
(confirm-nonexistent-file-or-buffer):
...
Rename from find-file-confirm-nonexistent-file.
(read-buffer-to-switch): Use it.
2008-11-18 18:26:08 +00:00
Karl Fogel
dab71b2c8d
(file-precious-flag): Document that this flag is advisory.
2008-11-14 23:36:37 +00:00
Juanma Barranquero
8fc29035f3
* w32-fns.el (w32-shell-dos-semantics):
...
* calendar/diary-lib.el (diary-face-attrs):
* international/mule-cmds.el (set-default-coding-systems)
(prefer-coding-system):
* net/tramp.el (tramp-set-completion-function):
* progmodes/vhdl-mode.el (vhdl-file-header):
* term/pc-win.el (msdos-show-help): Fix typos in docstrings.
* emacs-lisp/authors.el (authors-fixed-entries): Fix typo in value.
* files.el (enable-local-eval, not-modified, kill-buffer-ask)
(kill-matching-buffers, save-buffers-kill-emacs)
(save-buffers-kill-terminal): Fix typos in docstrings.
(switch-to-buffer-other-window): Reflow docstring.
(revert-buffer): Doc fix.
(define-project-bindings): Rename arg LIST to SETTINGS.
(project-find-settings-file): Use `let', not `let*'. Use `when'.
2008-11-14 13:05:18 +00:00
Chong Yidong
386987aa50
(project-find-settings-file): Fix last change.
2008-11-13 17:04:53 +00:00
Juanma Barranquero
09949b83d2
* files.el (project-settings-file, locate-dominating-file):
...
Fix typos in docstrings.
(find-file-visit-truename): Remove * from defcustom docstring.
2008-11-13 16:01:47 +00:00
Chong Yidong
ffe89e7639
(project-settings-file): New variable.
...
(project-find-settings-file): Use it, instead of hardcoding .dir.settings.el.
2008-11-13 15:17:48 +00:00
Glenn Morris
976556c921
(locate-dominating-stop-dir-regexp): Fix typo.
2008-10-30 04:32:33 +00:00
Stefan Monnier
8cd56959b4
* files.el (locate-dominating-stop-dir-regexp): New var.
...
(locate-dominating-file): Change arg from a regexp to a file name.
Rewrite using the vc-find-root code to avoid directory-files which is
too slow. Obey locate-dominating-stop-dir-regexp.
Don't pay attention to changes in owner.
(project-find-settings-file): Adjust call to locate-dominating-file.
* progmodes/flymake.el (flymake-find-buildfile):
Adjust call to locate-dominating-file.
* vc-hooks.el (vc-find-root): Use locate-dominating-file.
(vc-ignore-dir-regexp): Use locate-dominating-stop-dir-regexp.
2008-10-25 15:18:53 +00:00
Eli Zaretskii
e240aaa99e
(trash-directory): Run thru `convert-standard-filename'.
...
(file-modes-char-to-who, file-modes-char-to-right)
(file-modes-rights-to-number, file-modes-symbolic-to-number)
(read-file-modes): Doc fixes.
2008-10-18 18:41:32 +00:00
Glenn Morris
f8dce815d0
(make-temp-file): Handle empty `prefix'. (Bug#1081)
2008-10-04 20:31:33 +00:00
Glenn Morris
4998f83947
(auto-mode-alist): Add .PRO as per above autoload.
2008-10-03 07:13:31 +00:00
Eli Zaretskii
a03c5807a3
(locate-dominating-file): Wrap directory-files with condition-case, instead
...
of calling file-directory-p, which stats the directory one more time.
2008-09-30 12:52:46 +00:00
Eli Zaretskii
69ad666d70
(locate-dominating-file): Take file-attributes of dir', not of
file'
...
(which never changes).
2008-09-29 11:31:10 +00:00
Michael Albinus
9f2f6ad816
* files.el (file-remote-p): Precise doc string; IDENTIFICATION can
...
also be `localname'.
2008-09-29 05:39:39 +00:00
Glenn Morris
3102b34263
David De La Harpe Golden <david at harpegolden.net>
...
(move-file-to-trash): Avoid recursive trashing if rename-file calls delete-file.
2008-09-20 21:29:03 +00:00
Simon Josefsson
8a28dd0bb6
(auto-mode-alist): Use sieve-mode for .sv, .siv, and
...
.sieve files.
2008-09-18 15:02:59 +00:00
Martin Rudalics
1676807bc7
(switch-to-buffer-other-frame): Don't raise frame since
...
pop-to-buffer already does it.
(display-buffer-other-frame): Fix doc-string.
2008-09-16 08:28:18 +00:00
Martin Rudalics
35e3abe55c
(file-truename): Don't raise args-out-of-range error
...
when filename has no separator on windows-nt. (Bug#982)
2008-09-15 09:23:45 +00:00
Dan Nicolaescu
c3190aad4b
(auto-mode-alist): Use verilog-mode for SystemVerilog files.
2008-09-02 16:10:37 +00:00
Chong Yidong
7e537871ff
(auto-save-visited-file-name): Move definition to fileio.c.
2008-08-05 21:41:46 +00:00
Chong Yidong
9b3e808682
(hack-one-local-variable-eval-safep): Handle lisp-indent-function and
...
scheme-indent-function in addition to the deprecated lisp-indent-hook.
2008-08-05 20:46:42 +00:00
Juanma Barranquero
094eabe407
* files.el (read-file-modes): Fix tpo in docstring.
2008-07-31 21:35:59 +00:00
Chong Yidong
20431da988
(abbreviate-file-name): When replacing $HOME with ~, turn off
...
case-fold-search.
2008-07-31 21:09:05 +00:00
Juri Linkov
7cb41b3278
(read-file-modes): Set default value to the original
...
mode string using absolute notation like u=rwx,g=rx,o=rx.
Use it as the `default' arg of `read-string'.
2008-07-31 17:18:06 +00:00
Dan Nicolaescu
7c2fb837ec
* bitmaps/README:
...
* xfns.c:
* termcap.c:
* term.c:
* syswait.h:
* systty.h:
* systime.h:
* syssignal.h:
* sysdep.c:
* process.h:
* process.c:
* print.c:
* ndir.h:
* lread.c:
* keyboard.c:
* getpagesize.h:
* floatfns.c:
* fileio.c:
* emacs.c:
* doc.c:
* dispnew.c:
* dired.c:
* data.c:
* callproc.c:
* buffer.c:
* README:
* Makefile.in:
* s/template.h:
* s/msdos.h:
* m/vax.h: Remove VMS support.
* s/vms.h:
* vlimit.h:
* uaf.h:
* temacs.opt:
* param.h:
* ioctl.h: Remove file.
* descrip.mms:
* compile.com: Remove file.
* Create.c: Remove VMS support.
* message.el (Module):
* gnus-start.el (Module):
* gnus-registry.el (Module):
* textmodes/texinfmt.el:
* nxml/nxml-enc.el:
* mail/feedmail.el:
* international/mule.el:
* international/latexenc.el:
* emulation/viper-util.el:
* emulation/viper-init.el:
* emulation/viper-ex.el:
* emacs-lisp/bytecomp.el:
* version.el:
* subr.el:
* startup.el:
* sort.el:
* shadowfile.el:
* recentf.el:
* printing.el:
* paths.el:
* minibuffer.el:
* ls-lisp.el:
* loadup.el:
* hippie-exp.el:
* finder.el:
* files.el:
* ediff-util.el:
* ediff-ptch.el:
* ediff-init.el:
* ediff-diff.el:
* dired.el:
* dired-aux.el:
* cus-edit.el:
* bindings.el:
* arc-mode.el:
* add-log.el: Remove VMS support.
* obsolete/vmsproc.el:
* obsolete/vms-pmail.el:
* obsolete/vms-patch.el: Remove file.
* etags.c:
* emacsclient.c: Remove VMS support.
* termcap.src: Remove file.
* README:
* PROBLEMS:
* MACHINES: Remove VMS info.
* ediff.texi: Remove VMS support.
* os.texi:
* intro.texi:
* files.texi: Remove VMS support.
* emacs.texi: Remove VMS support.
* make-dist:
* README: Remove VMS support.
* vms: Remove directory.
2008-07-31 05:33:56 +00:00
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