1. 13 Nov, 2015 4 commits
  2. 12 Nov, 2015 5 commits
    • Phillip Lord's avatar
      The heuristic that Emacs uses to add an `undo-boundary' has been · 44dfa86b
      Phillip Lord authored
      reworked, as it interacts poorly with functions on `post-command-hook'
      or `after-change-functions'.
      * lisp/simple.el: New section added.
      * src/cmds.c (remove_excessive_undo_boundaries): Now in lisp.
      (self_insert_command): Calls simple.el to amalgamate.
      (delete_char): Calls simple.el to amalgamate.
      * src/keyboard.c (last_undo_boundary): Removed.
      * src/undo.c (run_undoable_change): New function.
    • Juri Linkov's avatar
      Bind [?\S-\ ] to previous line command in Dired-like modes. · d2f73db5
      Juri Linkov authored
      * lisp/arc-mode.el (archive-mode-map):
      * lisp/dired.el (dired-mode-map):
      * lisp/proced.el (proced-mode-map):
      * lisp/vc/vc-dir.el (vc-dir-mode-map):
      Bind [?\S-\ ] to previous line command.
    • Simen Heggestøyl's avatar
      Enable sorting of JSON object keys when encoding · 1e363a8e
      Simen Heggestøyl authored
      * lisp/json.el (json-encoding-object-sort-predicate): New variable for
      specifying a sorting predicate for JSON objects during encoding.
      (json--plist-to-alist): New utility function.
      (json-encode-hash-table): Re-use `json-encode-alist' when object keys
      are to be sorted.
      (json-encode-alist): Sort output by
      `json-encoding-object-sort-predicate, when set.
      (json-encode-plist): Re-use `json-encode-alist' when object keys are
      to be sorted.
      (json-pretty-print-buffer-ordered): New command to pretty print the
      buffer with object keys sorted alphabetically.
      (json-pretty-print-ordered): New command to pretty print the region with
      object keys sorted alphabetically.
      * test/automated/json-tests.el (test-json-plist-to-alist)
      (test-json-encode-plist, test-json-encode-hash-table)
      (test-json-encode-plist-with-sort-predicate): New tests.
      * etc/NEWS: Add an entry for the new commands.
    • Eli Barzilay's avatar
      Add "^" to the interactive specs of `dired-next/previous-line' · 851be0f6
      Eli Barzilay authored
      * lisp/dired.el (dired-next-line, dired-previous-line): It makes sense
      to bind these commands to the arrow keys, and that means that they work
      better with a "^" in the `interactive' declaration so selection works
      as expected.
    • Thomas Fitzsimmons's avatar
      Sync with soap-client repository, version 3.0.2 · 055ca3a5
      Thomas Fitzsimmons authored
      * soap-client.el: Bump version to 3.0.2.
      * soap-client.el (soap-warning): Use format, not format-message.
      * soap-client.el: Add cl-lib to Package-Requires.  Require cl-lib.
      (soap-validate-xs-simple-type): Use cl-labels instead of cl-flet.
      * soap-client.el: Support Emacs versions that do not have
      * soap-inspect.el: Remove version header.
      * soap-client.el, soap-inspect.el, jira2.el: Fix first line header
  3. 11 Nov, 2015 8 commits
    • Alan Mackenzie's avatar
      CC Mode: Respect users' settings of open-paren-in-column-0-is-defun-start. · e0f64e7b
      Alan Mackenzie authored
      lisp/progmodes/cc-engine.el (c-backward-single-comment, c-backward-comments)
      (c-invalidate-state-cache-1, c-parse-state-1, c-guess-basic-syntax):
      remove bindings of open-paren-in-column-0-is-defun-start to nil.
      (c-get-fallback-scan-pos): "New" function (existed several years ago).
      (c-parse-state-get-strategy): Reintroduce the 'BOD strategy, using
      (c-parse-state-1): Handle 'BOD strategy.
      lisp/progmodes/cc-mode.el (c-before-change, c-after-change)
      c-font-lock-fontify-region): remove bindings of
      open-paren-in-column-0-is-defun-start to nil.
      cc-mode.texi (Performance Issues, Limitations and Known Bugs): Fix mix up
      between @chapter and @appendix.
    • Artur Malabarba's avatar
      * lisp/obarray.el: Fix shadowed variables · 952395d3
      Artur Malabarba authored
      (obarray-map, obarray-remove, obarray-put, obarray-get):
      Change OBARRAY arg to OB to avoid shadowing ‘obarray’.
    • Eli Zaretskii's avatar
      Avoid error in submitting a form with EWW · 436d3307
      Eli Zaretskii authored
      * lisp/gnus/mm-url.el (mm-url-form-encode-xwfu): Allow argument
      CHUNK to be nil.  (Bug#21881)
    • NicolasPetton's avatar
      Rename seq-p and map-p to seqp and mapp · 51d840a8
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seqp): New name.
      * lisp/emacs-lisp/map.el (mapp): New name.
      * doc/lispref/sequences.texi: Update the documentation for seqp.
      * test/automated/map-tests.el: Update the tests for mapp.
    • NicolasPetton's avatar
      Rename obarray-p to obarrayp · 23036bac
      NicolasPetton authored
      * lisp/obarray.el (obarrayp): New name.
      * test/automated/obarray-tests.el: Update the tests.
    • NicolasPetton's avatar
      Rename obarray-foreach to obarray-map · 20aea429
      NicolasPetton authored
      * lisp/obarray.el (obarray-map): New name.
      * test/automated/obarray-tests.el: Update the corresponding tests.
    • Przemysław Wojnowski's avatar
      New file with obarray functions. · a3b21012
      Przemysław Wojnowski authored
      * lisp/obarray.el: basic obarray functions extracted from abbrev.el
      * test/automated/obarray-tests.el: new file
    • Michael Albinus's avatar
      Optimize `file-equal-p' and `file-in-directory-p' in Tramp · ef75c3b5
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-file-equal-p)
      (tramp-handle-file-in-directory-p): New defuns.  Suggested by
      Harvey Chapman <hchapman@3gfp.com>
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use them.
  4. 10 Nov, 2015 12 commits
  5. 09 Nov, 2015 3 commits
    • Karl Fogel's avatar
      When VC detects a conflict, specify which file · 3c3aad73
      Karl Fogel authored
      * lisp/vc/vc.el (vc-message-unresolved-conflicts): New function.
      * lisp/vc/vc-svn.el (vc-svn-find-file-hook):
      * lisp/vc/vc-hg.el (vc-hg-find-file-hook):
      * lisp/vc/vc-bzr.el (vc-bzr-find-file-hook):
      * lisp/vc/vc-git.el (vc-git-find-file-hook): Use above new function
        to display a standard message that specifies the conflicted file.
      Before this change, the message VC used for indicating a conflicted
      file was just "There are unresolved conflicts in this file" without
      naming the file (and this language was duplicated in several places).
      After this change, it's "There are unresolved conflicts in file FOO"
      (and this language is now centralized in one function in vc.el).
      Justification: It's important for the message to name the conflicted
      file because the moment when VC realizes a file is conflicted does not
      always come interactively.  For example, some people automatically
      find a set of Org Mode files on startup, and may keep those .org files
      under version control.  If any of the files are conflicted, the user
      just sees some messages fly by, and might later check the "*Messages*"
      buffer to find out what files were conflicted.  I'm not saying this
      happened to me or anything; it's a purely hypothetical example.
    • Dmitry Gutov's avatar
      Make sure that the ignore file exists · e4c190b2
      Dmitry Gutov authored
      * lisp/vc/vc.el (vc-default-ignore-completion-table):
      Make sure that the ignore file exists.
    • Michael Sperber's avatar
      * gnus-sum.el (gnus-summary-backend-map): Bind B-backspace to · bcca6a2a
      Michael Sperber authored
      `gnus-summary-delete-article` in a way that also works on XEmacs.
  6. 08 Nov, 2015 6 commits
    • Simen Heggestøyl's avatar
      Add support for retrieving paths to JSON elements · 29d740aa
      Simen Heggestøyl authored
      Add support for retrieving the path to a JSON element. This can for
      instance be useful to retrieve paths in deeply nested JSON
      * lisp/json.el (json-pre-element-read-function)
      (json-post-element-read-function): New variables to hold pre- and post
      read callback functions for `json-read-array' and `json-read-object'.
      (json--path): New variable used internally by `json-path-to-position'.
      (json--record-path, json--check-position): New functions used
      internally by `json-path-to-position'.
      (json-path-to-position): New function for retrieving the path to a
      JSON element at a given position.
      (json-read-object, json-read-array): Call
      `json-pre-element-read-function' and `json-post-element-read-function'
      when set.
      * test/automated/json-tests.el (test-json-path-to-position-with-objects)
      (test-json-path-to-position-no-match): New tests for
    • Karl Fogel's avatar
      Offer non-overwrite bookmark setter (Bug#15746) · 3812e179
      Karl Fogel authored
      * lisp/bookmark.el (bookmark-set-internal): New helper function to do
        what `bookmark-set' used to do, but with more choices for overwrite
        vs push, and with minor changes to the interactive prompt format.
        (bookmark-set): Rewrite as wrapper around above.
        If overwriting, inform the user of that in the prompt.
        (bookmark-set-no-overwrite): New function, also done as wrapper.
        Bind to "M" in `ctl-x-r-map' autoloads.
        (bookmark-map): Similarly bind "M" here.
    • Michael Albinus's avatar
      Fix Bug#21841 · 82c1b368
      Michael Albinus authored
      * lisp/filenotify.el (file-notify--rm-descriptor):
      Use `descriptor' instead of computing its value.
      (file-notify--descriptor): Additional argument FILE.  Adapt all callees.
      (file-notify-rm-watch): Use `descriptor' when calling file name handler.
    • Dmitry Gutov's avatar
      Remove dirs in vc project roots from the the vc project library roots · cad0490b
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-library-roots): Remove
      directories inside the project roots from the result.
    • Dmitry Gutov's avatar
      ; project-library-roots: Update docstring · aeae5875
      Dmitry Gutov authored
    • Dmitry Gutov's avatar
      Move and rename xref-find-regexp to the project package · 3a37d99e
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-find-regexp)
      (project--find-regexp-in): New functions.
      * lisp/progmodes/xref.el (xref--find-xrefs): Extract from
      xref--show-xrefs.  Use in existing callers in place of that
      (xref--show-xrefs): Only do the "show" part.
      (xref-find-regexp): Rename, more or less, to
  7. 07 Nov, 2015 2 commits