summaryrefslogtreecommitdiff
path: root/lisp/files.el
Commit message (Collapse)AuthorAgeFilesLines
* * files.el (top-level): Require `cl' when compiling.Juanma Barranquero2009-09-071-1/+3
|
* (auto-mode-alist): Use delphi-mode for .dpr files.Glenn Morris2009-09-071-0/+1
|
* * lisp/files.el (find-alternate-file): Run `kill-buffer-hook' manuallyKarl Fogel2009-09-051-2/+13
| | | | | | before killing the old buffer, since by the time `kill-buffer' is run so many buffer variables have been set to nil that it may not behave as expected. (Bug#4061)
* * lisp/files.el (find-alternate-file): If the old buffer is modifiedKarl Fogel2009-09-051-6/+6
| | | | | | | | and visiting a file, behave similarly to `kill-buffer' when killing it, thus reverting to the pre-1.878 behavior; see http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00101.html for discussion. Also, consult `buffer-file-name' as a variable not as a function, for consistency with the rest of the code.
* (locate-file-completion-table): Make it provide boundaryStefan Monnier2009-09-041-8/+18
| | | | information, so partial-completion works better.
* (get-free-disk-space): Fix paren-typo in last change.Stefan Monnier2009-08-291-1/+1
|
* (get-free-disk-space): Use / for default-directory.Stefan Monnier2009-08-291-6/+2
|
* (magic-fallback-mode-alist): Add ZIP magic numberJuri Linkov2009-08-281-0/+1
| | | | associated with `archive-mode'.
* * gnus/nnheader.el (nnheader-find-file-noselect):Stefan Monnier2009-08-281-1/+1
| | | | | | | | | | | | | | | | | | * gnus/mm-util.el (mm-insert-file-contents): * org/org-html.el (org-export-as-html): * org/org-docbook.el (org-export-as-docbook): * textmodes/reftex.el (reftex-get-file-buffer-force): * progmodes/verilog-mode.el (verilog-batch-execute-func): * emulation/viper.el (viper-go-away, viper-set-hooks): * emacs-lisp/re-builder.el (re-builder-unload-function): * emacs-lisp/bytecomp.el (byte-compile-file): * ses.el (ses-unload-function): * hexl.el (hexl-find-file): * files.el (normal-mode): * ehelp.el (with-electric-help): * autoinsert.el (auto-insert-alist): * arc-mode.el (archive-mode): Use (default-value 'major-mode) instead of default-major-mode.
* (enable-local-variables, enable-local-eval)Glenn Morris2009-08-261-30/+8
| | | | | | | | | | | | | | | | | (safe-local-variable-values, safe-local-eval-forms): Mark as risky in the defcustoms. (auto-mode-alist, ignored-local-variables) (save-some-buffers-action-alist): Move risky declarations to the definitions. (dabbrev-case-fold-search, dabbrev-case-replace, display-time-string) (font-lock-defaults, format-alist, imenu--index-alist) (imenu-generic-expression, input-method-alist, minor-mode-alist) (mode-line-buffer-identification, mode-line-client, mode-line-modes) (mode-line-modified, mode-line-mule-info, mode-line-position) (mode-line-process, mode-line-remote, outline-level) (parse-time-rules, rmail-output-file-alist) (special-display-buffer-names, vc-mode): Move risky declarations to the relevant files.
* (auto-mode-alist): Remove code for defunct system-type next-mach.Glenn Morris2009-08-231-1/+1
|
* * files.el (hack-one-local-variable): If the mode function is forChong Yidong2009-08-171-1/+6
| | | | a minor mode, pass it an argument (Bug#4148).
* * files.el (get-free-disk-space): Change fallback defaultChong Yidong2009-08-161-7/+9
| | | | | directory to /. Expand DIR argument before switching to fallback. Suggested by Kevin Ryde (Bug#2631, Bug#3911).
* * files.el (load-library): Doc fix.Chong Yidong2009-08-151-4/+6
|
* * files.el (auto-mode-alist): Use js-mode for .js files.Chong Yidong2009-08-141-1/+1
|
* Move code that deals with adding/deletingJuri Linkov2009-08-121-413/+0
| | | | file/directory-local variables to files-x.el.
* Commands to add/delete file/directory-local variables.Juri Linkov2009-08-041-0/+413
| | | | | | | | | | | | (read-file-local-variable, read-file-local-variable-value) (read-file-local-variable-mode, modify-file-local-variable) (modify-file-local-variable-prop-line) (modify-dir-local-variable): New functions. (add-file-local-variable, delete-file-local-variable) (add-file-local-variable-prop-line, delete-file-local-variable-prop-line) (add-dir-local-variable, delete-dir-local-variable) (copy-file-locals-to-dir-locals, copy-dir-locals-to-file-locals) (copy-dir-locals-to-file-locals-prop-line): New commands.
* * mail/rmailedit.el (rmail-edit-mode): Use auto-save-include-big-deletions.Chong Yidong2009-07-211-2/+2
| | | | | | * mail/rmail.el (rmail-variables): Use auto-save-include-big-deletions. * files.el (auto-save-mode): Revert 2009-07-21 and 2009-07-16 changes.
* * files.el (auto-save-mode): Handle buffer-save-size = -2Richard M. Stallman2009-07-211-1/+1
| | | | for toggling mode.
* (abort-if-file-too-large): Explicitly pass `filename' as an argument.Glenn Morris2009-07-211-3/+3
| | | | (find-file-noselect, insert-file-1): Update for above change.
* * files.el (hack-local-variables-filter): Fix last change.Chong Yidong2009-07-201-1/+1
|
* (ignored-local-variables): Add `dir-local-variables-alist'.Juri Linkov2009-07-191-5/+20
| | | | | | | | | | | (dir-local-variables-alist): New buffer-local variable. (hack-local-variables-filter): If variable is not dir-local, i.e. `dir-name' is nil, then remove it from `dir-local-variables-alist', because file-local overrides dir-local. (c-postprocess-file-styles)<declare-function>: Remove obsolete declaration. (hack-dir-local-variables): Add dir-local variable/value pair to `dir-local-variables-alist' and remove duplicates. Doc fix.
* * files.el (hack-local-variables-filter): Rewrite.Chong Yidong2009-07-191-49/+41
|
* (hack-local-variables-filter): Remove entries with duplicate keys fromAlan Mackenzie2009-07-181-2/+12
| | | | `file-local-variables-alist'.
* * files.el (auto-save-mode): If buffer-saved-size is -2, don't clobber it.Richard M. Stallman2009-07-161-1/+1
| | | | | * mail/rmail.el (rmail-variables): Set buffer-saved-size to -2. (rmail-retry-ignored-headers): Add more uninteresting fields.
* (find-alternate-file-other-window, find-alternate-file):Stefan Monnier2009-07-051-2/+4
| | | | Obey confirm-nonexistent-file-or-buffer.
* * files.el (trash-directory): Fix defcustom type.Chong Yidong2009-06-281-1/+1
|
* * files.el (trash-directory): Change default to nil.Chong Yidong2009-06-281-33/+138
| | | | | | | | (move-file-to-trash): If trash-directory is nil and system-move-file-to-trash is unbound, perform freedesktop-style trashing. * NEWS: Document change.
* (dir-locals-collect-mode-variables): Allow for any number of `mode'Glenn Morris2009-06-221-1/+3
| | | | and `eval' entries. (Bug#3430)
* (dir-locals-set-directory-class): Make mtime argumentGlenn Morris2009-06-181-1/+1
| | | | optional, since it is always unneeded in the non-file case. (Bug#3577)
* * files.el (save-some-buffers-action-alist): Fix last change (Bug#3578).Chong Yidong2009-06-171-1/+1
|
* (dir-locals-set-directory-class): Fix doc typo.Glenn Morris2009-06-171-1/+1
|
* (locate-dominating-stop-dir-regexp): Add terminalJason Rumney2009-05-201-1/+1
| | | | directory separator to UNC path case (Bug#3252).
* * files.el (hack-local-variables-prop-line)Chong Yidong2009-04-291-4/+8
| | | | | | | (hack-local-variables, dir-locals-read-from-file): Bind read-circle to nil before reading. * lread.c (Vread_circle): New variable. (read1): Disable recursive read if Vread_circle is nil.
* (load-library): Improve docstring.Stefan Monnier2009-04-281-6/+5
|
* * files.el (dir-locals-directory-cache): Change format to includeChong Yidong2009-04-111-25/+50
| | | | | | | | | | the mtime of the directory-local variables file (Bug#2833). (dir-locals-set-directory-class): New arg mtime. Store it in dir-locals-directory-cache. (dir-locals-find-file): Check cache validity using the mtime. (dir-locals-read-from-file): Save the file mtime in the cache. (hack-dir-local-variables): Adapt to new dir-locals-directory-cache entry format.
* (append-to-file): Doc fix.Eli Zaretskii2009-04-081-2/+8
|
* (locate-dominating-stop-dir-regexp): Stop searchingJason Rumney2009-03-301-2/+3
| | | | when a UNC mount point is reached.
* (shell-quote-wildcard-pattern): Doc fix.Eli Zaretskii2009-03-281-4/+6
|
* (file-modes-rights-to-number): Doc fix.Chong Yidong2009-03-211-3/+3
| | | | (file-modes-symbolic-to-number): Handle empty permissions arg (Bug#2729).
* (get-free-disk-space): Ensure that default-directory isChong Yidong2009-03-151-2/+9
| | | | | usable before calling call-process. Suggested by Kevin Ryde (Bug#2631).
* (auto-mode-alist): Add rules for OpenOffice extensionStefan Monnier2009-03-131-2/+2
| | | | packages, as well as Opkg/Ipkg packages.
* (basic-save-buffer-1): Set car part ofKenichi Handa2009-03-031-2/+7
| | | | | | buffer-file-coding-system-explicit. (revert-buffer): Check car part of buffer-file-coding-system-explicit.
* (confirm-nonexistent-file-or-buffer): `other' must be last customGlenn Morris2009-03-011-3/+3
| | | | choice. (Bug#2506)
* (make-directory): Stop recursing if parent is self. (Bug#2309)Jason Rumney2009-02-171-1/+6
|
* (load-library): Doc fix.Eli Zaretskii2009-02-131-0/+4
|
* (read-buffer-to-switch): Add table to icomplete-with-completion-tables.Stefan Monnier2009-02-121-1/+11
|
* (save-buffer): Display "Saving file FOO..." message regardless ofEli Zaretskii2009-02-071-2/+5
| | | | buffer's size. (Bug#2137)
* (save-buffers-kill-terminal): Args forChong Yidong2009-01-111-6/+3
| | | | server-save-buffers-kill-terminal changed.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|