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

1145 Commits

Author SHA1 Message Date
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
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