1. 29 Aug, 2014 1 commit
  2. 12 Aug, 2014 1 commit
  3. 11 Aug, 2014 1 commit
    • Glenn Morris's avatar
      Revert 2013-01-31 change that decides coding system before backing up · f314e84f
      Glenn Morris authored
      It causes a more serious problem than the one it solves.
      This closes bug#18141, and reopens bug#13522.
      
      * lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.
      
      * src/fileio.c: Revert 2013-01-31 change.
      (choose_write_coding_system): No longer callable from Lisp.
      Move last piece back here from Fwrite_region.
      (Fwrite_region, syms_of_fileio): Update for above changes.
      
      * test/automated/data/files-bug18141.el.gz: New file.
      * test/automated/files.el (files-test-bug-18141-file):
      New variable and test.
      f314e84f
  4. 07 Aug, 2014 2 commits
    • Reuben Thomas's avatar
      Remove remaining mentions of VMS as a host · 6d9d9cde
      Reuben Thomas authored
      * notes/exit-value: Remove specific discussion of VMS.
      * doc/emacs/programs.texi (Program Modes): Don't advertise VMS DCL support
      any more.
      * doc/misc/ediff.texi (Merging and diff3): Don't mention lack of support
      for VMS diff, we no longer support VMS.
      * lisp/progmodes/ada-mode.el:
      * lisp/net/tramp.el (tramp-handle-file-symlink-p):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment
      about VMS, which we no longer support.
      * lisp/progmodes/ada-xref.el (ada-xref-current): Remove mention of VMS,
      and fix a FIXME, using convert-standard-filename in place of
      removed ada-convert-file-name.
      * lisp/url/url-handlers.el: Remove a comment about VMS, which we no longer
      support.
      6d9d9cde
    • Reuben Thomas's avatar
      Fix a few ``MS-DOG''s overlooked in the previous commit. · 6c5bbf8a
      Reuben Thomas authored
      * README: ``MSDOG'' becomes ``MS-DOS''.
      * lisp/arc-mode.el: Fix a couple of ``MS-DOG''s missed in the previous
      commit.
      * lisp/file-mode.el: ditto.
      * src/editfns.c: Fix a couple of ``MS-DOG''s missed in the previous commit.
      * src/xfaces.c: ditto.
      6c5bbf8a
  5. 25 Jul, 2014 1 commit
    • Glenn Morris's avatar
      More toggle-read-only doc tweaks · 59bb3785
      Glenn Morris authored
      * lisp/files.el (toggle-read-only): Re-add basic doc-string.
      
      * lisp/vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.
      59bb3785
  6. 21 Jul, 2014 1 commit
    • Glenn Morris's avatar
      Small fixes re toggle-read-only, mainly doc · f6c951e5
      Glenn Morris authored
      * progmodes/hideif.el (hide-ifdef-mode-submap): Also substitute read-only-mode.
      
      * bindings.el (mode-line-toggle-read-only):
      * bs.el (bs-toggle-readonly):
      * buff-menu.el (Buffer-menu-toggle-read-only):
      * dired.el (dired-toggle-read-only):
      * files.el (view-read-only, find-file-read-only)
      (find-file-read-only-other-window)
      (find-file-read-only-other-frame):
      * progmodes/hideif.el (hide-ifdef-toggle-outside-read-only):
      Doc fixes re toggle-read-only.
      
      * view.el: Comment updates.
      f6c951e5
  7. 11 Jul, 2014 1 commit
  8. 10 Jul, 2014 3 commits
  9. 28 Jun, 2014 1 commit
  10. 25 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      Do not allow out-of-range character position in Fcompare_strings. · 5697ca55
      Dmitry Antipov authored
      * src/fns.c (validate_subarray): Add prototype.
      (Fcompare_substring): Use validate_subarray to check ranges.
      Adjust comment to mention that the semantics was changed.  Also see
      http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
      * lisp/files.el (dir-locals-find-file, file-relative-name):
      * lisp/info.el (Info-complete-menu-item):
      * lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p
      to compare-strings to avoid out-of-range errors.
      * lisp/subr.el (string-prefix-p): Adjust to match strict range
      checking in compare-strings.
      * test/automated/fns-tests.el (fns-tests-compare-string): New test.
      5697ca55
  11. 12 Jun, 2014 1 commit
  12. 08 Jun, 2014 1 commit
    • Glenn Morris's avatar
      Doc edits re uniquify · 99d8aedf
      Glenn Morris authored
      * doc/emacs/buffers.texi (Uniquify): Copyedits.
      
      * doc/emacs/files.texi (Visiting): Update for uniquify changes.
      
      * doc/lispref/files.texi (Subroutines of Visiting): Mention uniquify.
      
      * doc/misc/vip.texi (Files): Defer to Emacs manual for uniquify details.
      
      * lisp/bookmark.el (bookmark-load): Doc fix.
      
      * lisp/uniquify.el (uniquify-buffer-name-style): Doc fix.
      
      * lisp/files.el: Comment.
      
      * etc/NEWS: Related edit.
      99d8aedf
  13. 31 May, 2014 1 commit
  14. 21 May, 2014 1 commit
    • Daniel Colascione's avatar
      File-local-variable support for sh-script; add mksh support · 708374c7
      Daniel Colascione authored
      * lisp/files.el (interpreter-mode-alist): Add mksh.
      
      * lisp/progmodes/sh-script.el (sh-ancestor-alist): Add mksh, a pdksh
      derivative.
      (sh-alias-alist): Alias /system/bin/sh (Android's system shell) to
      mksh. Improve custom spec; allow regular expressions.
      (sh-shell): Delegate name splitting to `sh-canonicalize-shell'.
      (sh-after-hack-local-variables): New function.
      (sh-mode): Use it; respect file-local `sh-shell' variable.
      (sh-set-shell): Use `sh-canonicalize-shell' instead of open-coding
      the normalization.
      (sh-canonicalize-shell): Rewrite to support regexes.
      
      Fixes: debbugs:17333
      708374c7
  15. 14 May, 2014 1 commit
    • Glenn Morris's avatar
      Add with-file-modes macro, and use it · d63d883a
      Glenn Morris authored
      * lisp/subr.el (with-file-modes): New macro.
      
      * lisp/printing.el (pr-save-file-modes):
      * lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
      Add with-file-modes.
      
      * lisp/doc-view.el (doc-view-make-safe-dir):
      * lisp/epg.el (epg--start):
      * lisp/files.el (locate-user-emacs-file, make-temp-file)
      (backup-buffer-copy, move-file-to-trash):
      * printing.el (pr-despool-print, pr-call-process, pr-text2ps):
      * eshell/esh-util.el (eshell-with-private-file-modes)
      (eshell-make-private-directory):
      * lisp/net/browse-url.el (browse-url-mosaic):
      * lisp/obsolete/mailpost.el (post-mail-send-it):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
      * lisp/url/url-util.el (url-make-private-file):
      Use with-file-modes.
      
      * doc/lispref/files.texi (Changing Files): Mention with-file-modes.
      
      * etc/NEWS: Mention this.
      d63d883a
  16. 09 May, 2014 2 commits
    • Glenn Morris's avatar
      Use file-accessible-directory-p in some more places · 1d75432d
      Glenn Morris authored
      * lisp/files.el (file-expand-wildcards):
      * lisp/man.el (Man-support-local-filenames):
      * lisp/printing.el (pr-i-directory, pr-interface-directory):
      * lisp/progmodes/grep.el (lgrep, rgrep):
      * lisp/textmodes/ispell.el (ispell-call-process)
      (ispell-call-process-region, ispell-start-process)
      (ispell-init-process):
      * lisp/mh-e/mh-e.el (mh-variants):
      Use file-accessible-directory-p.
      1d75432d
    • Glenn Morris's avatar
      * files.el (cd-absolute): Test if directory is accessible · 2651ed05
      Glenn Morris authored
      rather than executable. 
      
      This can't be any worse, and may be better in some situations.
      It may or may not fix bug#17330.
      2651ed05
  17. 04 Apr, 2014 1 commit
    • Glenn Morris's avatar
      Doc updates for buffer-stale-function now applying to file buffers too · 8a1d24b1
      Glenn Morris authored
      * doc/emacs/arevert-xtra.texi (Supporting additional buffers):
      * doc/lispref/backups.texi (Reverting):
      Update for buffer-stale-function also applying to file-buffers.
      
      * lisp/autorevert.el (auto-revert-buffers):
      * lisp/files.el (buffer-stale--default-function)
      (buffer-stale-function, revert-buffer--default): Doc tweaks.
      
      * etc/NEWS: Related edits.
      8a1d24b1
  18. 03 Apr, 2014 1 commit
    • Glenn Morris's avatar
      Doc updates related to changes in revert-buffer function variables · d738ebdc
      Glenn Morris authored
      * lisp/files.el (make-backup-file-name-function)
      (make-backup-file-name, make-backup-file-name--default-function)
      (make-backup-file-name-1, find-backup-file-name)
      (revert-buffer-function, revert-buffer-insert-file-contents-function)
      (buffer-stale--default-function, buffer-stale-function)
      (before-revert-hook, after-revert-hook, revert-buffer-in-progress-p)
      (revert-buffer, revert-buffer--default)
      (revert-buffer-insert-file-contents--default-function):
      Doc fixes related to defaults no longer being nil.
      (make-backup-file-name-function): Bump :version.
      Restore nil as a valid but deprecated custom type.
      
      * etc/NEWS: Related edit.
      d738ebdc
  19. 26 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Remove the build-time option CLASH_DETECTION · 11ee65af
      Glenn Morris authored
      Every platform supports it, and the runtime option `create-lockfiles'
      replaces it.
      
      * configure.ac (CLASH_DETECTION): Remove option.
      
      * lisp/files.el (lock-buffer, unlock-buffer, file-locked-p):
      Remove fallback aliases, since they are always defined now.
      
      * src/buffer.c (Frestore_buffer_modified_p, Fkill_buffer):
      * src/emacs.c (shut_down_emacs):
      * src/fileio.c (Finsert_file_contents, write_region):
      * src/filelock.c (top-level, syms_of_filelock):
      * src/insdel.c (prepare_to_modify_buffer_1):
      CLASH_DETECTION is always defined now.
      
      * admin/CPP-DEFINES: Remove CLASH_DETECTION.
      11ee65af
  20. 22 Mar, 2014 2 commits
    • Glenn Morris's avatar
      Include interactive-only information in describe-function output · f9c81e7b
      Glenn Morris authored
      * lisp/help-fns.el (help-fns--interactive-only): New function.
      (help-fns-describe-function-functions): Add the above function.
      
      * lisp/simple.el (beginning-of-buffer, end-of-buffer, insert-buffer)
      (next-line, previous-line): Remove hand-written interactive-only
      information from doc strings, it is auto-generated now.
      
      * lisp/bookmark.el (bookmark-write):
      * lisp/epa-mail.el (epa-mail-decrypt, epa-mail-verify, epa-mail-sign)
      (epa-mail-import-keys): Mark interactive-only,
      and remove hand-written interactive-only information from doc strings.
      
      * lisp/epa.el (epa-decrypt-armor-in-region, epa-verify-region)
      (epa-verify-cleartext-in-region, epa-sign-region, epa-encrypt-region):
      * lisp/files.el (not-modified):
      * lisp/simple.el (mark-whole-buffer): Mark interactive-only.
      
      * doc/lispref/commands.texi (Defining Commands):
      Mention that interactive-only also affects describe-function.
      
      * etc/NEWS: Mention this.
      f9c81e7b
    • Glenn Morris's avatar
      Allow `declare' to set the interactive-only property · 5076d275
      Glenn Morris authored
      * lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
      Add interactive-only.  Doc tweak.
      (macro-declarations-alist): Doc tweak.
      
      * lisp/subr.el (declare): Doc tweak (add xref to manual).
      
      * lisp/comint.el (comint-run):
      * lisp/files.el (insert-file-literally, insert-file):
      * lisp/replace.el (replace-string, replace-regexp):
      * lisp/simple.el (beginning-of-buffer, end-of-buffer, delete-backward-char)
      (delete-forward-char, goto-line, insert-buffer, next-line)
      (previous-line): Set interactive-only via declare.
      
      * doc/lispref/functions.texi (Declare Form): Add interactive-only.
      
      * doc/lispref/commands.texi (Defining Commands) Mention declare.
      
      * etc/NEWS: Mention this.
      5076d275
  21. 16 Mar, 2014 1 commit
    • Martin Rudalics's avatar
      Fix behavior of with-temp-buffer-window (Bug#16816, Bug#17007). · b92631bf
      Martin Rudalics authored
      * window.el (with-temp-buffer-window): Don't make BUFFER-OR-NAME
      current (Bug#16816, Bug#17007).
      (with-current-buffer-window): New macro doing the same as
      `with-temp-buffer-window' but with BUFFER-OR-NAME current.
      * help.el (help-print-return-message): Warn in doc-string to not
      use this in `with-help-window'.
      (describe-bindings-internal): Call `describe-buffer-bindings'
      from within help buffer.  See Juanma's scenario in (Bug#16816).
      (with-help-window): Update doc-string.
      * dired.el (dired-mark-pop-up):
      * files.el (save-buffers-kill-emacs):
      * register.el (register-preview): Use `with-current-buffer-window'
      instead of `with-temp-buffer-window'.
      * display.texi (Temporary Displays): Rewrite descriptions of
      `with-output-to-temp-buffer' and `with-temp-buffer-window'.
      * help.texi (Help Functions): Rewrite description of
      `with-help-window'.
      b92631bf
  22. 10 Mar, 2014 1 commit
  23. 05 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Recognize dash shell · bd2d43dc
      Glenn Morris authored
      * lisp/files.el (interpreter-mode-alist):
      * lisp/progmodes/sh-script.el (sh-ancestor-alist): Add dash.
      
      Fixes: debbugs:16938
      bd2d43dc
  24. 04 Mar, 2014 1 commit
  25. 10 Feb, 2014 3 commits
  26. 09 Feb, 2014 5 commits
  27. 08 Feb, 2014 2 commits
  28. 06 Jan, 2014 1 commit
    • Paul Eggert's avatar
      Spelling fixes. · d5081c1e
      Paul Eggert authored
      * calc/calc-yank.el (calc-edit-mode, calc-edit-cancel):
      * emacs-lisp/debug.el (cancel-debug-on-entry):
      * epg.el (epg-error-to-string):
      * files.el (recover-file):
      * lpr.el (lpr-buffer, print-buffer, lpr-region, print-region):
      * mail/emacsbug.el (report-emacs-bug-hook):
      * mail/sendmail.el (mail-recover):
      * ses.el (ses-yank-resize):
      * term/ns-win.el (ns-print-buffer):
      Spelling fixes in diagnostics, mostly for "canceled" with one L.
      * epg.el (epg-key-capability-alist): Rename from misspelled version.
      All uses changed.
      * obsolete/xesam.el (xesam-all-fields): Fix misspelled field name.
      d5081c1e