1. 07 Sep, 2015 3 commits
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: Reduce autoloading before compiling · add49b65
      Artur Malabarba authored
      (package--autoloads-file-name)
      (package--activate-autoloads-and-load-path): New function.
      (package-activate-1): Delegate autoloading and load-path
      configuration to `package--activate-autoloads-and-load-path'.
      (package--compile): Before compilation, call
      `package--activate-autoloads-and-load-path' instead of
      `package-activate-1'.
      add49b65
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el (package-initialize): Set enable-at-startup · 066b26d6
      Artur Malabarba authored
      When `package-initialize' is called as part of loading the init file,
      the user probably doesn't want it to be called again afterwards. In this
      situation, `package-initialize' now sets `package-enable-at-startup' to
      nil to prevent that. The user can have the old behaviour by setting this
      variable to t after the call to `package-initialize'.  (Bug#21423)
      
      * doc/emacs/package.texi (Package Installation): Document it
      
      * doc/lispref/package.texi (Packaging Basics): Document it
      
      * etc/NEWS: Document it
      066b26d6
    • Thomas Fitzsimmons's avatar
      Bump version of ntlm.el to 2.00 · 1a0b4791
      Thomas Fitzsimmons authored
      * lisp/net/ntlm.el: Bump version to 2.00.  New maintainer.  Add comm
      keyword.
      1a0b4791
  2. 06 Sep, 2015 6 commits
    • Dmitry Gutov's avatar
      Allow even one non-regular character before the implicit tag name · 770db45d
      Dmitry Gutov authored
      * lisp/progmodes/etags.el (etags-tags-completion-table):
      Allow even one non-regular character before the implicit tag name.
      Reported at http://emacs.stackexchange.com/questions/15269/.
      770db45d
    • Thomas Fitzsimmons's avatar
      Add support for NTLMv2 authentication · a6dcaea8
      Thomas Fitzsimmons authored
      * net/ntlm.el (ntlm): New customization group.
      (ntlm-compatibility-level): New defcustom.
      (ntlm-compute-timestamp): New function.
      (ntlm-generate-nonce): Likewise.
      (ntlm-build-auth-response): Add support for NTLMv2 authentication.
      a6dcaea8
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: Rename custom faces · 158e1d9e
      Artur Malabarba authored
      All of the recently introduced faces, like `package-name-face', have
      been renamed to no end in `-face' to comply with the convention
      described in (info "(elisp) Defining Faces").
      
      (package-name, package-description)
      (package-status-built-in, package-status-external)
      (package-status-available, package-status-new)
      (package-status-held, package-status-disabled)
      (package-status-installed, package-status-dependency)
      (package-status-unsigned, package-status-incompat)
      (package-status-avail-obso): New faces.
      (package-menu--print-info-simple): Use them.
      158e1d9e
    • Adam Sjøgren's avatar
      mail-source.el: Make the imap mail-source's :mailbox handle a list · 1770b2b1
      Adam Sjøgren authored
      * lisp/gnus/mail-source.el (mail-source-fetch-imap):
      Allow :mailbox to be  a list.
      1770b2b1
    • Eric Abrahamsen's avatar
      nnimap.el: Handle nil arg to nnimap-request-group · 3fb7881a
      Eric Abrahamsen authored
      * lisp/gnus/nnimap.el (nnimap-request-group):  Handle nil "info" arg.
      This arg isn't always passed in, check it's not nil before making it
      into a list.  The active arg will also be nil if the group is new,
      check for that.
      3fb7881a
    • Michael Albinus's avatar
      File notifications: Support renaming over directory boundaries · dbdc459a
      Michael Albinus authored
      * lisp/filenotify.el (file-notify-handle-event):
      (file-notify--pending-event): Adapt docstring.
      (file-notify--descriptor, file-notify-callback): Reimplement in
      order to support renaming over directory boundaries.
      (file-notify-add-watch): Adapt `file-notify--descriptor' call.
      
      * doc/lispref/os.texi (File Notifications): Remove limitation of
      file renaming to the same directory.
      dbdc459a
  3. 05 Sep, 2015 10 commits
    • Paul Eggert's avatar
      Spelling fix (Bug#21420) · 88b9a800
      Paul Eggert authored
      88b9a800
    • NicolasPetton's avatar
      Improve the semantic of map-some · 1b5fda5c
      NicolasPetton authored
      Update map-some to return the returned by the predicate, similar to
      seq-some.
      
      * lisp/emacs-lisp/map.el (map-some): Update the function to return the
        return value of the predicate.
      * test/automated/map-tests.el (test-map-some): Update the test to check
        for non-nil values only.
      1b5fda5c
    • NicolasPetton's avatar
      Rename map-contains-key-p and map-some-p · a1535f93
      NicolasPetton authored
      Remove the "-p" suffix from both function names.
      
      * lisp/emacs-lisp/map.el (map-contains-key, map-some): Rename the functions.
      * test/automated/map-tests.el (test-map-contains-key, test-map-some):
        Update both test functions.
      a1535f93
    • NicolasPetton's avatar
      Improve the semantic of seq-some · aeb1d6bd
      NicolasPetton authored
      Update seq-some to return non-nil if the predicate returns non-nil for
      any element of the seq, in which case the returned value is the one
      returned by the predicate.
      
      * lisp/emacs-lisp/seq.el (seq-some): Update the function and its
        docstring.
      * test/automated/seq-tests.el (test-seq-some): Add a regression test.
      * doc/lispref/sequences.texi (Sequence Functions): Update the
        documentation for seq-some.
      aeb1d6bd
    • NicolasPetton's avatar
      Rename seq-some-p to seq-some and seq-contains-p to seq-contains · c36663d8
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-some, seq-contains): Rename the functions
        without the "-p" prefix.
      * test/automated/seq-tests.el (test-seq-some, test-seq-contains): Update
        the tests accordingly.
      * doc/lispref/sequences.texi (Sequence Functions): Update the
        documentation for seq.el.
      c36663d8
    • Paul Eggert's avatar
      text-quoting-style for usage of fn names with ‘’ · b8147621
      Paul Eggert authored
      * lisp/help.el (help--docstring-quote): Don’t assume
      text-quoting-style is ‘curve’ when generating usage strings for
      functions whose names contain curved quotes.
      b8147621
    • Paul Eggert's avatar
      Fix fix for describe-function keybinding confusion · b6b2554f
      Paul Eggert authored
      This fixes a bug introduced by the previous patch.
      * lisp/help-fns.el (help-fns--signature):
      Last arg of help-fns--signature is now a buffer, or nil if a
      raw signature is wanted.  All callers changed.
      (describe-function-1): Use this to do the right thing with signatures.
      b6b2554f
    • Johan Bockgård's avatar
      Use PAT rather than UPAT in pcase macros · 96d6689d
      Johan Bockgård authored
      * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
      * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: Use PAT rather
        than UPAT.
      96d6689d
    • Paul Eggert's avatar
      Fix describe-function keybinding confusion · 6d2a3ca2
      Paul Eggert authored
      * lisp/help-fns.el (describe-function-1): Compute signature
      in the original buffer, not in standard-output, so that
      substitute-command-keys uses the proper keybindings.
      This fixes Bug#21412, introduced in commit
      2015-06-11T10:23:46-0700!eggert@cs.ucla.edu.
      6d2a3ca2
    • Eli Zaretskii's avatar
      Avoid errors in thing-at-point with 2nd argument non-nil · ec14f087
      Eli Zaretskii authored
      * lisp/thingatpt.el (thing-at-point): Only call 'length' on
      sequences.  (Bug#21391)
      ec14f087
  4. 04 Sep, 2015 1 commit
  5. 03 Sep, 2015 6 commits
  6. 02 Sep, 2015 6 commits
    • Paul Eggert's avatar
      Treat initial-scratch-message as a doc string · 3d08d06a
      Paul Eggert authored
      * doc/emacs/building.texi (Lisp Interaction):
      * doc/lispref/os.texi (Startup Summary):
      * etc/NEWS: Document this.
      * lisp/startup.el (initial-scratch-message):
      Look up find-file’s key rather than hardcoding it.
      (command-line-1): Substitute the doc string.
      This also substitutes the quotes, which will help test display
      quoting at startup.
      3d08d06a
    • Paul Eggert's avatar
      Fix describe-char bug with glyphs on terminals · b28ad0e9
      Paul Eggert authored
      * lisp/descr-text.el (describe-char): Terminals can have glyphs in
      buffers too, so don’t treat them differently from graphic displays.
      Without this fix, describe-char would throw an error on a terminal
      if given a glyph with a non-default face.
      b28ad0e9
    • Paul Eggert's avatar
      Follow text-quoting-style in display table init · a9706c6c
      Paul Eggert authored
      This attempts to fix a problem reported by Alan Mackenzie in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00112.html
      * doc/lispref/display.texi (Active Display Table):
      Mention how text-quoting-style affects it.
      * doc/lispref/help.texi (Keys in Documentation):
      Say how to set text-quoting-style in ~/.emacs.
      * etc/NEWS: Document the change.
      * lisp/startup.el (startup--setup-quote-display):
      Follow user preference if text-quoting-style is set.
      (command-line): Setup quote display again if user expresses
      a preference in .emacs.
      a9706c6c
    • David Caldwell's avatar
      * lisp/vc/vc-hooks.el (vc-refresh-state): New command · 30866274
      David Caldwell authored
      (vc-refresh-state): Rename from vc-find-file-hook and make interactive.
      (vc-find-file-hook): Redefine as obsolete alias.
      
      Copyright-paperwork-exempt: yes
      30866274
    • Paul Eggert's avatar
      Escape ` and ' in doc · 19532d14
      Paul Eggert authored
      Escape apostrophes and grave accents in docstrings if they are
      are supposed to stand for themselves and are not quotes.  Remove
      apostrophes from docstring examples like ‘'(calendar-nth-named-day
      -1 0 10 year)’ that confuse source code with data.  Do some other
      minor docstring fixups as well, e.g., insert a missing close
      quote.
      19532d14
    • Stefan Monnier's avatar
      Generalize the prefix-command machinery of C-u · 5dc644a6
      Stefan Monnier authored
      * lisp/simple.el (prefix-command-echo-keystrokes-functions)
      (prefix-command-preserve-state-hook): New hooks.
      (internal-echo-keystrokes-prefix): New function.
      (prefix-command--needs-update, prefix-command--last-echo): New vars.
      (prefix-command-update, prefix-command-preserve): New functions.
      (reset-this-command-lengths): New compatibility definition.
      (universal-argument--mode): Call prefix-command-update.
      (universal-argument, universal-argument-more, negative-argument)
      (digit-argument): Call prefix-command-preserve-state.
      
      * src/keyboard.c: Call internal-echo-keystrokes-prefix to build
      the "prefix argument" to echo.
      (this_command_key_count_reset, before_command_key_count)
      (before_command_echo_length): Delete variables.
      (echo_add_key): Always add a space.
      (echo_char): Remove.
      (echo_dash): Don't give up when this_command_key_count is 0, since that
      is now the case after a prefix command.
      (echo_update): New function, extracted from echo_now.
      (echo_now): Use it.
      (add_command_key, read_char, record_menu_key): Remove old disabled code.
      (command_loop_1): Don't refrain from pushing an undo boundary when
      prefix-arg is set.  Remove other prefix-arg special case, now handled
      directly in the prefix commands instead.  But call echo_now if there's
      a prefix state to echo.
      (read_char, record_menu_key): Use echo_update instead of echo_char.
      (read_key_sequence): Use echo_now rather than echo_dash/echo_char.
      (Freset_this_command_lengths): Delete function.
      (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
      (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.
      
      * lisp/simple.el: Use those new hooks for C-u.
      (universal-argument--description): New function.
      (prefix-command-echo-keystrokes-functions): Use it.
      (universal-argument--preserve): New function.
      (prefix-command-preserve-state-hook): Use it.
      (command-execute): Call prefix-command-update if needed.
      
      * lisp/kmacro.el (kmacro-step-edit-prefix-commands)
      (kmacro-step-edit-prefix-index): Delete variables.
      (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
      support for prefix arg commands.
      (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.
      
      * lisp/emulation/cua-base.el (cua--prefix-override-replay)
      (cua--shift-control-prefix): Use prefix-command-preserve-state.
      Remove now unused arg `arg'.
      (cua--prefix-override-handler, cua--prefix-repeat-handler)
      (cua--shift-control-c-prefix, cua--shift-control-x-prefix):
      Update accordingly.
      (cua--prefix-override-timeout): Don't call reset-this-command-lengths
      any more.
      (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
      if the mark is not set.
      5dc644a6
  7. 01 Sep, 2015 8 commits