1. 22 Oct, 2016 3 commits
    • Michael Albinus's avatar
      Fix error codes in Tramp · abd1642e
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-user-error): New defsubst,
      taken from tramp.el.
      (tramp-file-missing): New defconst.
      * lisp/net/tramp.el (tramp-user-error): Remove it.
      (tramp-dissect-file-name, tramp-debug-message)
      * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
      Use `tramp-compat-user-error'.
      * lisp/net/tramp.el (tramp-handle-insert-file-contents)
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
      * lisp/net/tramp-smb.el (tramp-smb-handle-file-local-copy):
      Use `tramp-file-missing'.  (Bug#24714)
      * lisp/net/tramp-sh.el (tramp-sh-handle-add-name-to-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      Use `file-already-exists'.
    • Jorgen Schaefer's avatar
      Autoload all commands from misc.el · d4a32c4d
      Jorgen Schaefer authored
      Only two of the commands there were autoloaded, one of which is an
      easter egg.
      * lisp/miscl.el (copy-from-above-command):
      * lisp/miscl.el (zap-up-to-char):
      * lisp/miscl.el (mark-beginning-of-buffer):
      * lisp/miscl.el (mark-end-of-buffer):
      * lisp/miscl.el (upcase-char):
      * lisp/miscl.el (forward-to-word):
      * lisp/miscl.el (backward-to-word):
      Add autoload cookie.
    • Martin Rudalics's avatar
      On terminal frames ignore minibuffer frame parameter (Bug#24758) · d45be6bc
      Martin Rudalics authored
      * src/frame.c (Fmake_terminal_frame): Don't complain when the
      caller asks for a deviant minibuffer setting (Bug#24758).
  2. 21 Oct, 2016 3 commits
    • Paul Eggert's avatar
      New error file-missing · 89799829
      Paul Eggert authored
      This fixes a recently-introduced bug in delete-directory,
      where the code assumes the C locale when determining
      whether a file-error corresponds to a missing file (Bug#24714).
      * doc/lispref/errors.texi (Standard Errors):
      * doc/lispref/files.texi (Changing Files):
      * etc/NEWS:
      Document this.
      * doc/lispref/loading.texi (How Programs Do Loading):
      Say "a file-error" rather than "the error file-error" since
      it might be a file-missing now.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file):
      * lisp/epa-file.el (epa-file--find-file-not-found-function):
      (epa-file-insert-file-contents, epa-file-write-region):
      * lisp/ffap.el (find-file-at-point, dired-at-point):
      * lisp/jka-compr.el (jka-compr-insert-file-contents)
      * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
      (ange-ftp-insert-file-contents, ange-ftp-copy-file-internal):
      * lisp/progmodes/etags.el (visit-tags-table):
      * lisp/url/url-handlers.el (url-copy-file):
      * src/fileio.c (report_file_errno):
      Signal file-missing if appropriate.
      * lisp/epa-file.el (epa-file-insert-file-contents):
      * lisp/jka-compr.el (jka-compr-insert-file-contents):
      Don't assume file-error is a leaf in the error hierarchy.
      * lisp/files.el (files--force):
      * lisp/gnus/nnmaildir.el (nnmaildir--enoent-p):
      * lisp/jka-compr.el (jka-compr-insert-file-contents):
      Use file-missing to detect whether the file is missing.
      * lisp/url/url-handlers.el (url-copy-file):
      Signal file-already-exists if appropriate.
      * src/fileio.c (syms_of_fileio): Define file-missing.
      2016-10-18  Paul Eggert  <eggert@cs.ucla.edu>
    • Mark Oteiza's avatar
      Teach browse-url to open man page urls · 76b08a35
      Mark Oteiza authored
      * lisp/net/browse-url.el (browse-url-man-function): New custom option.
      (browse-url): Add a condition to catch links matching "^man:".
      (browse-url-man): New function.
    • Eli Zaretskii's avatar
      Improve fontification of footnote references in Info buffers · 0929e061
      Eli Zaretskii authored
      * lisp/info.el (Info-fontify-node): Don't fontify random numbers
      in parentheses as if they were footnote references.  See
      for the details.
  3. 20 Oct, 2016 6 commits
  4. 18 Oct, 2016 7 commits
    • Johan Bockgård's avatar
      cl-defstruct: Fix debug spec and check of slot options · eb610f27
      Johan Bockgård authored
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Improve checking of slot
      option syntax.  Fix debug spec.  (Bug#24700)
    • Johan Bockgård's avatar
      isearch: Fix bug in defstruct syntax · f52892fe
      Johan Bockgård authored
      * lisp/isearch.el (isearch--state): Use correct form of defstruct slot
      options.  (Bug#24685)
    • Mark Oteiza's avatar
      Add an option for eshell-input-filter · 22444392
      Mark Oteiza authored
      * etc/NEWS: Document changes.
      * lisp/eshell/em-hist.el (eshell-input-filter): Set value to function
      symbol.  Change type to a radio for choosing functions.  Refer to both
      new functions.
      (eshell-input-filter-default): New function.  Same body as the previous
      value of eshell-input-filter.
      (eshell-input-filter-initial-space): New function.
    • Philipp Stephani's avatar
      ; Fix embarassing typo · 2ce01c49
      Philipp Stephani authored
    • Paul Eggert's avatar
      delete-directory no longer errors when racing · 704fd2a7
      Paul Eggert authored
      Problem reported by Glenn Morris for package-test.el (Bug#24714).
      * doc/lispref/files.texi (Create/Delete Dirs), etc/NEWS: Document this.
      * lisp/files.el (files--force): New function.
      (delete-directory): Use it to avoid error in this case.
    • Yuri Khan's avatar
      Support Shift selection in nxml-mode commands · 0956a3e4
      Yuri Khan authored
      * lisp/nxml/nxml-mode.el (nxml-forward-balanced-item)
      (nxml-up-element, nxml-backward-up-element, nxml-down-element)
      (nxml-backward-down-element, nxml-forward-element)
      (nxml-backward-element, nxml-forward-paragraph)
      (nxml-backward-paragraph): Use "^p" as the interactive spec, to
      support shift-selection.
      Copyright-paperwork-exempt: yes
    • Mark Oteiza's avatar
      Simplify some loops and cons · 73d4c86e
      Mark Oteiza authored
      * lisp/net/mailcap.el: Replace cl with cl-lib.
      (mailcap--get-user-mime-data, mailcap--set-user-mime-data):
      (mailcap-parse-mailcaps, mailcap-parse-mailcap-extras):
      (mailcap-possible-viewers): Use push and dolist where possible.
      (mailcap-viewer-passes-test): Remove unused binding.
      (mailcap-add-mailcap-entry): Use push.
      (mailcap-mime-info): Remove unused binding.  Use push.
      (mailcap-parse-mimetypes): Use dolist.
  5. 17 Oct, 2016 6 commits
    • Mark Oteiza's avatar
      Turn on lexical-binding in auth-source · e697ccab
      Mark Oteiza authored
      * lisp/auth-source.el: Turn on lexical-binding.
      (auth-source-netrc-parse, auth-source-netrc-normalize):
      (auth-source-netrc-create, auth-source-secrets-search):
      (auth-source-plstore-search): Use let instead of lexical-let.
    • Martin Rudalics's avatar
      Fix frame focus redirection with shared minibuffer windows (Bug#24500) · 421c0512
      Martin Rudalics authored
      * src/frame.c (do_switch_frame): Redirect frame focus also when
      the frame switched to has its minibuffer window on the selected
      * src/window.c (candidate_window_p): To qualify as candidate
      it's not sufficient for the window's frame to just share the
      minibuffer window - it must be active as well.
    • Martin Rudalics's avatar
    • Eli Zaretskii's avatar
      Fix time-related data types in 2 editfns.c functions · be0c3814
      Eli Zaretskii authored
      * src/editfns.c (format_time_string, Fcurrent_time_zone): Pass a
      pointer to 'time_t' value to 'emacs_localtime_rz' and 'gmtime_r',
      instead of relying on struct timespec's 'tv_sec' member to be of
      compatible type.
    • Martin Rudalics's avatar
      Document atomic windows in Elisp manual (Bug#18170) · 665ee0a5
      Martin Rudalics authored
      * lisp/window.el (display-buffer-in-atom-window): If no `side'
      alist entry was specified, use `below' as the doc tells.
      * doc/lispref/elisp.texi (Atomic Windows): Add menu entry.
      * doc/lispref/windows.texi (Atomic Windows): New section.
      (Window Parameters): Update reference.
    • Paul Eggert's avatar
      New face homoglyph · c06a518b
      Paul Eggert authored
      Suggested by Eli Zaretskii, from a feature request by
      Alan Mackenzie (Bug#24468).
      * doc/emacs/display.texi (Standard Faces, Text Display):
      * etc/NEWS: Document this.
      * etc/themes/dichromacy-theme.el, etc/themes/leuven-theme.el:
      * etc/themes/light-blue-theme.el, etc/themes/manoj-dark-theme.el:
      * etc/themes/tango-dark-theme.el, etc/themes/tango-theme.el:
      * etc/themes/wombat-theme.el:
      Customize homoglyph to be the same as escape-glyph.
      * lisp/cus-theme.el (custom-theme--listed-faces):
      Add homoglyph.
      * lisp/faces.el (homoglyph): New face.
      * lisp/startup.el (startup--setup-quote-display): Use it.
  6. 16 Oct, 2016 4 commits
  7. 15 Oct, 2016 4 commits
    • Philipp Stephani's avatar
      Disable bracketed paste in a terminal in char mode · cf566b46
      Philipp Stephani authored
      In char mode, a terminal doesn't accept bracketed paste events,
      therefore we should disable them; see Bug#24639.  To decouple the XTerm
      management from term.el, introduce a per-buffer setting to disable
      bracketed paste for that buffer.  If bracketed paste is inhiited for at
      least one buffer in a terminal, it is disabled for the whole terminal.
      * term/xterm.el (xterm-inhibit-bracketed-paste-mode): New mode to
      inhibit XTerm bracketed paste per buffer.
      (xterm--buffer-terminals, xterm--update-bracketed-paste)
      (xterm--bracketed-paste-possible, xterm--is-xterm): New helper
      (xterm--init-bracketed-paste-mode): Remove unused helper
      (terminal-init-xterm): Update bracketed paste status when
      initializing an XTerm and on window configuration change.
      * term.el (term-char-mode, term-line-mode): Inhibit XTerm
      bracketed paste in char mode.
    • Eli Zaretskii's avatar
    • Dima Kogan's avatar
      Undo the effect of CapsLock when other modifiers are present · a38096f8
      Dima Kogan authored
      * src/keyboard.c (make_lispy_event): Effectively undo the effect
      of CapsLock if any modifiers other than Shift are present in a key.
    • Simen Heggestøyl's avatar
      Add tests for foreign completions in CSS mode · 07c0db43
      Simen Heggestøyl authored
      * test/lisp/textmodes/css-mode-tests.el
      (css-test-foreign-completions): New test for
      (css-test-complete-selector-tag): Rename test.
      (css-test-complete-selector-class): New test testing completion of
      class names in selectors.
      (css-test-complete-selector-id): New test testing completion of IDs in
  8. 13 Oct, 2016 6 commits
    • Lars Ingebrigtsen's avatar
      Cosmetic change to last mm-url change · 1a99d5dd
      Lars Ingebrigtsen authored
      * lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
      Tweak last change slightly for more readability.
    • Lars Ingebrigtsen's avatar
      Fix problem with submitting binary data via HTTP forms · a6e0188d
      Lars Ingebrigtsen authored
      * lisp/gnus/mm-url.el (mm-url-encode-multipart-form-data):
      Document the parameters, clean up the code, and make uploading
      binary data really work (which it didn't if the binary bits
      were in the last part of the data).
    • Mark Oteiza's avatar
    • Mark Oteiza's avatar
      Derive Man and WoMan modes from special-mode · 506a97a5
      Mark Oteiza authored
      * lisp/man.el (Man-mode-map): Set parent to map composed from both
      button-buffer-map and special-mode-map.  Remove redundant bindings.
      Fix menu to refer to the quit-window command.
      (Man-mode): Derive from special-mode.  Fix docstring.  Remove redundant
      buffer-read-only binding.
      (Man-quit): Remove.
      * lisp/woman.el (woman-really-find-file): Use setq-local.
      (woman-mode-map): Refer to woman-mode in docstring.
      (woman-mode): Derive from special-mode.  Document woman-mode-map in
      docstring.  Use setq-local where possible; imenu-generic-expression is
      already buffer-local.
      (woman-negative-vertical-space): Replace unused binding with _.
    • Philipp Stephani's avatar
      Fix crash in evaluating functions · 8ee95221
      Philipp Stephani authored
      See Bug#24673
      * src/eval.c (funcall_lambda): Fix crash for bogus functions such
      as (closure).
      * test/src/eval-tests.el (eval-tests--bug24673): Add test.
    • Tino Calancha's avatar
      Add test for Bug#24627 · b0f1d23e
      Tino Calancha authored
      * /test/lisp/thingatpt-tests.el (thing-at-point-bug24627): New test.
  9. 12 Oct, 2016 1 commit