1. 04 Aug, 2016 1 commit
    • Stefan Monnier's avatar
      Fix Bug#24149 · 84714016
      Stefan Monnier authored
      * lisp/subr.el (set-transient-map): Don't wait if MAP not present in
      overriding-terminal-local-map.  (Bug#24149)
      84714016
  2. 26 Jul, 2016 1 commit
  3. 22 Jul, 2016 1 commit
    • Lars Ingebrigtsen's avatar
      Move read-multiple-choice to subr-x.el · ad90397c
      Lars Ingebrigtsen authored
      * lisp/faces.el (read-multiple-choice-face): Fix doc string.
      
      * lisp/emacs-lisp/subr-x.el (read-multiple-choice): Move here
      from subr.el.
      
      * lisp/gnus/message.el (subr-x): Ditto.
      
      * lisp/net/nsm.el: Require subr-x for read-multiple-choice.
      
      read-multiple-choice doesn't need to be in the dumped Emacs, so move
      it to a less central file.
      ad90397c
  4. 30 Jun, 2016 1 commit
    • Dmitry Antipov's avatar
      Cleanup around mature character manipulation functions · 4bd35039
      Dmitry Antipov authored
      * lisp/international/mule-diag.el (decode-codepage-char): Remove.
      
      * lisp/ldefs-boot.el (toplevel): Adjust accordingly.
      
      * lisp/subr.el (toplevel): Do not advertise calling conventions
      for 'decode-char' and 'encode-char'.
      
      * src/charset.c (Fdecode_char, Fencode_char): Remove unused 3rd arg.
      4bd35039
  5. 26 Jun, 2016 1 commit
    • Leo Liu's avatar
      Deprecations (bug#23850) · 0214011c
      Leo Liu authored
      * lisp/subr.el (string-to-unibyte, string-as-unibyte,
      string-to-multibyte, string-as-multibyte): Make obsolete.
      0214011c
  6. 07 Jun, 2016 1 commit
  7. 06 Jun, 2016 1 commit
    • Stephen Berman's avatar
      Fix doc string quoting · 9d5ccebe
      Stephen Berman authored
      * lisp/files.el (shell-quote-wildcard-pattern):
      * lisp/progmodes/vhdl-mode.el (vhdl-mode):
      * lisp/subr.el (replace-regexp-in-string):
      * lisp/view.el (view-mode):
      * src/nsfns.m (syms_of_nsfns):
      * src/syntax.c (Fbackward_prefix_chars):
      Fix quoting problems in doc strings (Bug#23696).
      9d5ccebe
  8. 28 May, 2016 1 commit
  9. 27 May, 2016 5 commits
  10. 26 May, 2016 1 commit
    • Stefan Monnier's avatar
      Make autoloads populate a new definition-prefixes table · e971ce6d
      Stefan Monnier authored
      * lisp/subr.el (definition-prefixes): New hash table.
      (register-definition-prefixes): New function.
      
      * lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): New var.
      (autoload--split-prefixes-1, autoload--split-prefixes)
      (autoload--make-defs-autoload): New functions.
      (autoload-defs-autoload-max-size, autoload-popular-prefixes): New vars.
      (autoload-generate-file-autoloads): Obey autoload-compute-prefixes.
      (update-directory-autoloads): Don't touch loaddefs.el if the set of
      autoloads hasn't changed (i.e. if only the timestamp would change).
      
      * lisp/loadup.el: Purify definition-prefixes.
      
      * lisp/w32-fns.el: Keep name space clean.
      (w32-set-default-process-coding-system): Rename from
      set-default-process-coding-system.
      (w32-set-system-coding-system): Rename from set-w32-system-coding-system.
      e971ce6d
  11. 18 May, 2016 1 commit
    • Paul Eggert's avatar
      Pacify byte-compiler for with-wrapper-hook · 639fd22e
      Paul Eggert authored
      * lisp/subr.el (subr--with-wrapper-hook-no-warnings):
      New macro, split out from with-wrapper-hook.
      * lisp/abbrev.el (abbrev--default-expand):
      * lisp/minibuffer.el (completion--in-region):
      * lisp/simple.el (buffer-substring--filter):
      * lisp/subr.el (with-wrapper-hook):
      Use it.
      639fd22e
  12. 08 May, 2016 1 commit
    • Alan Mackenzie's avatar
      Add :after-hook facility to define-derived-mode. · 2eb6817b
      Alan Mackenzie authored
      This allow a form to be evaluated _after_ a major mode's hooks have been run.
      It is needed to solve some problems in CC Mode, including bug #16759 and
      bug #23476.
      
      * lisp/emacs-lisp/derived.el (define-derived-mode): introduce the new argument
      `:after-hook', and generate the requisite code for it.
      (derived-mode-make-docstring): Take account of the possibility of :after-hook.
      
      * lisp/subr.el (delayed-after-hook-forms): New variable.
      (run-mode-hooks): As the last thing evaluate the forms in
      delayed-after-hook-forms.
      
      * doc/lispref/modes.texi (Derived Modes): Document :after-hook.
      (Mode Hooks): Document the new feature in run-mode-hooks.
      
      * etc/NEWS: Note the new feature.
      2eb6817b
  13. 05 May, 2016 1 commit
    • Alan Mackenzie's avatar
      Call hack-local-variables from major modes rather than from file visiting · 25f45581
      Alan Mackenzie authored
      This prevents file/directory local variables from being lost when the major
      mode is set or changed.
      
      This fixes bug #15577 and bug #23407.
      
      * lisp/files.el (normal-mode): Call `hack-local-variables' when the major mode
      function hasn't already done so.
      (hack-local-variables): Rename parameter `mode-only' to `handle-mode', make
      its previous non-nil setting be t, and introduce the following action for a
      non-nil non-t value: apply all settings apart from `mode'.
      
      * lisp/subr.el (run-mode-hooks): call `hack-local-variables' for buffers
      which are visiting files.
      
      * doc/emacs/custom.texi (File Variables): Note that setting a major mode also
      sets file variables.
      (Directory Variables): Note that `mode', `eval', and `unibyte' can be set as
      dir local variables, but `coding' can't.
      
      * doc/lispref/modes.texi (Major Mode Conventions): Say that `run-mode-hooks'
      also calls `hack-local-variables'.
      (Auto Major Mode): Say that `find-file' no longer runs `hack-local-variables',
      as from 25.2.  Remove vagueness from `normal-mode' and `set-auto-mode' by
      saying that the mode IS SET, not merely "selected" or "chosen".
      (Mode Hooks): Document change to `run-mode-hooks'.
      
      * doc/lispref/variables.texi (File Local Variables): Document change to
      `hack-local-variables'.
      25f45581
  14. 03 May, 2016 1 commit
    • Paul Eggert's avatar
      Doc fixes for quoting · 2ea2a2f1
      Paul Eggert authored
      * doc/emacs/text.texi, doc/lispintro/emacs-lisp-intro.texi:
      * doc/lispref/control.texi, doc/lispref/display.texi:
      * doc/lispref/help.texi, doc/lispref/strings.texi, lisp/subr.el:
      * src/callint.c, src/doprnt.c, src/editfns.c:
      Document quoting a bit more systematically.
      Problem reported by Alan Mackenzie (Bug#23425).
      2ea2a2f1
  15. 02 May, 2016 1 commit
  16. 01 May, 2016 5 commits
  17. 30 Apr, 2016 2 commits
  18. 29 Apr, 2016 2 commits
  19. 11 Apr, 2016 1 commit
  20. 10 Apr, 2016 1 commit
  21. 08 Apr, 2016 2 commits
  22. 22 Mar, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix problems caused by new implementation of sub-word mode · 7dba1767
      Eli Zaretskii authored
      * lisp/subr.el (forward-word-strictly, backward-word-strictly):
      New functions.
      (word-move-empty-char-table): New variable.
      
      * etc/NEWS: Mention 'forward-word-strictly' and
      'backward-word-strictly'.
      
      * doc/lispref/positions.texi (Word Motion): Document
      'find-word-boundary-function-table', 'forward-word-strictly', and
      'backward-word-strictly'.  (Bug#22560)
      
      * src/syntax.c (syms_of_syntax)
      <find-word-boundary-function-table>: Doc fix.
      
      * lisp/wdired.el (wdired-xcase-word):
      * lisp/textmodes/texnfo-upd.el (texinfo-copy-node-name)
      (texinfo-copy-section-title, texinfo-start-menu-description)
      (texinfo-copy-menu-title, texinfo-specific-section-type)
      (texinfo-insert-node-lines, texinfo-copy-next-section-title):
      * lisp/textmodes/texinfo.el (texinfo-clone-environment)
      (texinfo-insert-@end):
      * lisp/textmodes/texinfmt.el (texinfo-format-scan)
      (texinfo-anchor, texinfo-multitable-widths)
      (texinfo-multitable-item):
      * lisp/textmodes/tex-mode.el (latex-env-before-change):
      * lisp/textmodes/flyspell.el (texinfo-mode-flyspell-verify):
      * lisp/skeleton.el (skeleton-insert):
      * lisp/simple.el (count-words):
      * lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-libunit)
      (vhdl-beginning-of-defun, vhdl-beginning-of-statement-1)
      (vhdl-update-sensitivity-list, vhdl-template-block)
      (vhdl-template-break, vhdl-template-case, vhdl-template-default)
      (vhdl-template-default-indent, vhdl-template-for-loop)
      (vhdl-template-if-then-use, vhdl-template-bare-loop)
      (vhdl-template-nature, vhdl-template-procedural)
      (vhdl-template-process, vhdl-template-selected-signal-asst)
      (vhdl-template-type, vhdl-template-variable)
      (vhdl-template-while-loop, vhdl-beginning-of-block)
      (vhdl-hooked-abbrev, vhdl-port-copy, vhdl-hs-forward-sexp-func):
      * lisp/progmodes/verilog-mode.el (verilog-backward-sexp)
      (verilog-forward-sexp, verilog-beg-of-statement)
      (verilog-set-auto-endcomments, verilog-backward-token)
      (verilog-do-indent):
      * lisp/progmodes/vera-mode.el (vera-guess-basic-syntax)
      (vera-indent-block-closing):
      * lisp/progmodes/simula.el (simula-context)
      (simula-backward-up-level, simula-forward-down-level)
      (simula-previous-statement, simula-next-statement)
      (simula-skip-comment-backward, simula-calculate-indent)
      (simula-find-if, simula-electric-keyword):
      * lisp/progmodes/sh-script.el (sh-smie--rc-newline-semi-p):
      * lisp/progmodes/ruby-mode.el (ruby-smie--redundant-do-p)
      (ruby-smie--forward-token, ruby-smie--backward-token)
      (ruby-singleton-class-p, ruby-calculate-indent)
      (ruby-forward-sexp, ruby-backward-sexp):
      * lisp/progmodes/ps-mode.el (ps-run-goto-error):
      * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function)
      (perl-syntax-propertize-special-constructs)
      (perl-backward-to-start-of-continued-exp):
      * lisp/progmodes/pascal.el (pascal-indent-declaration):
      * lisp/progmodes/octave.el (octave-function-file-p):
      * lisp/progmodes/mantemp.el (mantemp-insert-cxx-syntax):
      * lisp/progmodes/js.el (js--forward-function-decl):
      * lisp/progmodes/idlwave.el (idlwave-show-begin-check)
      (idlwave-beginning-of-block, idlwave-end-of-block)
      (idlwave-block-jump-out, idlwave-determine-class):
      * lisp/progmodes/icon.el (icon-is-continuation-line)
      (icon-backward-to-start-of-continued-exp, end-of-icon-defun):
      * lisp/progmodes/hideif.el (hide-ifdef-define):
      * lisp/progmodes/f90.el (f90-change-keywords):
      * lisp/progmodes/cperl-mode.el (cperl-electric-pod)
      (cperl-linefeed, cperl-electric-terminator)
      (cperl-find-pods-heres, cperl-fix-line-spacing)
      (cperl-invert-if-unless):
      * lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur):
      * lisp/progmodes/cc-align.el (c-lineup-java-inher):
      * lisp/progmodes/ada-mode.el (ada-compile-goto-error)
      (ada-adjust-case-skeleton, ada-create-case-exception)
      (ada-create-case-exception-substring)
      (ada-case-read-exceptions-from-file, ada-after-keyword-p)
      (ada-scan-paramlist, ada-get-current-indent, ada-get-indent-end)
      (ada-get-indent-if, ada-get-indent-block-start)
      (ada-get-indent-loop, ada-get-indent-type)
      (ada-search-prev-end-stmt, ada-check-defun-name)
      (ada-goto-decl-start, ada-goto-matching-start)
      (ada-goto-matching-end, ada-looking-at-semi-or)
      (ada-looking-at-semi-private, ada-in-paramlist-p)
      (ada-search-ignore-complex-boolean, ada-move-to-start)
      (ada-move-to-end, ada-which-function, ada-gen-treat-proc):
      * lisp/net/quickurl.el (quickurl-grab-url):
      * lisp/mail/sendmail.el (mail-do-fcc):
      * lisp/mail/rmail.el (rmail-resend):
      * lisp/mail/mailabbrev.el (mail-abbrev-complete-alias):
      * lisp/mail/mail-extr.el (mail-extract-address-components):
      * lisp/json.el (json-read-keyword):
      * lisp/files.el (insert-directory):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/completion.el (symbol-under-point, symbol-before-point)
      (symbol-before-point-for-complete, next-cdabbrev)
      (add-completions-from-c-buffer):
      * lisp/cedet/semantic/texi.el (semantic-up-context)
      (semantic-beginning-of-context):
      * lisp/cedet/semantic/bovine/el.el (semantic-get-local-variables):
      use 'forward-word-strictly' and 'backward-word-strictly' instead
      of 'forward-word' and 'backward-word'.
      
      [This reapplies commit c1d32a65,
      which was inadvertently lost by merge commit
      c71e7cc1.]
      7dba1767
  23. 04 Mar, 2016 2 commits
  24. 23 Feb, 2016 1 commit
  25. 10 Feb, 2016 2 commits
  26. 06 Feb, 2016 1 commit
  27. 05 Feb, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix problems caused by new implementation of sub-word mode · c1d32a65
      Eli Zaretskii authored
      * lisp/subr.el (forward-word-strictly, backward-word-strictly):
      New functions.
      (word-move-empty-char-table): New variable.
      
      * etc/NEWS: Mention 'forward-word-strictly' and
      'backward-word-strictly'.
      
      * doc/lispref/positions.texi (Word Motion): Document
      'find-word-boundary-function-table', 'forward-word-strictly', and
      'backward-word-strictly'.  (Bug#22560)
      
      * src/syntax.c (syms_of_syntax)
      <find-word-boundary-function-table>: Doc fix.
      
      * lisp/wdired.el (wdired-xcase-word):
      * lisp/textmodes/texnfo-upd.el (texinfo-copy-node-name)
      (texinfo-copy-section-title, texinfo-start-menu-description)
      (texinfo-copy-menu-title, texinfo-specific-section-type)
      (texinfo-insert-node-lines, texinfo-copy-next-section-title):
      * lisp/textmodes/texinfo.el (texinfo-clone-environment)
      (texinfo-insert-@end):
      * lisp/textmodes/texinfmt.el (texinfo-format-scan)
      (texinfo-anchor, texinfo-multitable-widths)
      (texinfo-multitable-item):
      * lisp/textmodes/tex-mode.el (latex-env-before-change):
      * lisp/textmodes/flyspell.el (texinfo-mode-flyspell-verify):
      * lisp/skeleton.el (skeleton-insert):
      * lisp/simple.el (count-words):
      * lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-libunit)
      (vhdl-beginning-of-defun, vhdl-beginning-of-statement-1)
      (vhdl-update-sensitivity-list, vhdl-template-block)
      (vhdl-template-break, vhdl-template-case, vhdl-template-default)
      (vhdl-template-default-indent, vhdl-template-for-loop)
      (vhdl-template-if-then-use, vhdl-template-bare-loop)
      (vhdl-template-nature, vhdl-template-procedural)
      (vhdl-template-process, vhdl-template-selected-signal-asst)
      (vhdl-template-type, vhdl-template-variable)
      (vhdl-template-while-loop, vhdl-beginning-of-block)
      (vhdl-hooked-abbrev, vhdl-port-copy, vhdl-hs-forward-sexp-func):
      * lisp/progmodes/verilog-mode.el (verilog-backward-sexp)
      (verilog-forward-sexp, verilog-beg-of-statement)
      (verilog-set-auto-endcomments, verilog-backward-token)
      (verilog-do-indent):
      * lisp/progmodes/vera-mode.el (vera-guess-basic-syntax)
      (vera-indent-block-closing):
      * lisp/progmodes/simula.el (simula-context)
      (simula-backward-up-level, simula-forward-down-level)
      (simula-previous-statement, simula-next-statement)
      (simula-skip-comment-backward, simula-calculate-indent)
      (simula-find-if, simula-electric-keyword):
      * lisp/progmodes/sh-script.el (sh-smie--rc-newline-semi-p):
      * lisp/progmodes/ruby-mode.el (ruby-smie--redundant-do-p)
      (ruby-smie--forward-token, ruby-smie--backward-token)
      (ruby-singleton-class-p, ruby-calculate-indent)
      (ruby-forward-sexp, ruby-backward-sexp):
      * lisp/progmodes/ps-mode.el (ps-run-goto-error):
      * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function)
      (perl-syntax-propertize-special-constructs)
      (perl-backward-to-start-of-continued-exp):
      * lisp/progmodes/pascal.el (pascal-indent-declaration):
      * lisp/progmodes/octave.el (octave-function-file-p):
      * lisp/progmodes/mantemp.el (mantemp-insert-cxx-syntax):
      * lisp/progmodes/js.el (js--forward-function-decl):
      * lisp/progmodes/idlwave.el (idlwave-show-begin-check)
      (idlwave-beginning-of-block, idlwave-end-of-block)
      (idlwave-block-jump-out, idlwave-determine-class):
      * lisp/progmodes/icon.el (icon-is-continuation-line)
      (icon-backward-to-start-of-continued-exp, end-of-icon-defun):
      * lisp/progmodes/hideif.el (hide-ifdef-define):
      * lisp/progmodes/f90.el (f90-change-keywords):
      * lisp/progmodes/cperl-mode.el (cperl-electric-pod)
      (cperl-linefeed, cperl-electric-terminator)
      (cperl-find-pods-heres, cperl-fix-line-spacing)
      (cperl-invert-if-unless):
      * lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur):
      * lisp/progmodes/cc-align.el (c-lineup-java-inher):
      * lisp/progmodes/ada-mode.el (ada-compile-goto-error)
      (ada-adjust-case-skeleton, ada-create-case-exception)
      (ada-create-case-exception-substring)
      (ada-case-read-exceptions-from-file, ada-after-keyword-p)
      (ada-scan-paramlist, ada-get-current-indent, ada-get-indent-end)
      (ada-get-indent-if, ada-get-indent-block-start)
      (ada-get-indent-loop, ada-get-indent-type)
      (ada-search-prev-end-stmt, ada-check-defun-name)
      (ada-goto-decl-start, ada-goto-matching-start)
      (ada-goto-matching-end, ada-looking-at-semi-or)
      (ada-looking-at-semi-private, ada-in-paramlist-p)
      (ada-search-ignore-complex-boolean, ada-move-to-start)
      (ada-move-to-end, ada-which-function, ada-gen-treat-proc):
      * lisp/net/quickurl.el (quickurl-grab-url):
      * lisp/mail/sendmail.el (mail-do-fcc):
      * lisp/mail/rmail.el (rmail-resend):
      * lisp/mail/mailabbrev.el (mail-abbrev-complete-alias):
      * lisp/mail/mail-extr.el (mail-extract-address-components):
      * lisp/json.el (json-read-keyword):
      * lisp/files.el (insert-directory):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/completion.el (symbol-under-point, symbol-before-point)
      (symbol-before-point-for-complete, next-cdabbrev)
      (add-completions-from-c-buffer):
      * lisp/cedet/semantic/texi.el (semantic-up-context)
      (semantic-beginning-of-context):
      * lisp/cedet/semantic/bovine/el.el (semantic-get-local-variables):
      use 'forward-word-strictly' and 'backward-word-strictly' instead
      of 'forward-word' and 'backward-word'.
      c1d32a65