1. 08 May, 2015 1 commit
  2. 07 May, 2015 2 commits
    • Artur Malabarba's avatar
      * etc/NEWS: Fix typo in commit 14bb519f · ead05a1c
      Artur Malabarba authored
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: New "external" package status · 14bb519f
      Artur Malabarba authored
      An external package is any installed package that's not built-in
      and not from `package-user-dir', which usually means it's from an
      entry in `package-directory-list'.  They are treated much like
      built-in packages, in that they cannot be through the Package Menu
      deleted and are not considered for upgrades.
      (package-desc-status): Identify if a package is installed outside
      (package-menu--status-predicate): Add support for it.
      * etc/NEWS: Document it.
  3. 06 May, 2015 1 commit
  4. 04 May, 2015 1 commit
  5. 01 May, 2015 1 commit
  6. 28 Apr, 2015 1 commit
  7. 27 Apr, 2015 2 commits
    • Stefan Monnier's avatar
      * lisp/saveplace.el (save-place-mode): New minor mode. · 9c3e1e4e
      Stefan Monnier authored
      (save-place): Redefine as an obsolete alias.
    • Stefan Monnier's avatar
      * lisp/midnight.el: Make it a minor mode. Allow predicates. · c603274f
      Stefan Monnier authored
      * lisp/midnight.el: Use lexical-binding.
      (midnight-mode): Make it a proper minor mode.
      (midnight-buffer-display-time): Make arg non-optional.
      (midnight-find): Remove.
      (clean-buffer-list-kill-regexps): Tweak type for new function choice.
      (clean-buffer-list-delay): Allow clean-buffer-list-kill-regexps to
      contain functions.
      (clean-buffer-list): Use cl-find.
      Allow clean-buffer-list-kill-never-regexps to contain functions.
  8. 25 Apr, 2015 1 commit
  9. 22 Apr, 2015 1 commit
    • Oleh Krehel's avatar
      Add a new `inhibit-message' variable · df61b078
      Oleh Krehel authored
      * src/xdisp.c (syms_of_xdisp): Define a boolean `inhibit_message'.
      (message3): Don't call `message3_nolog' (i.e. use the Echo Area) when
      `inhibit_message' is non-zero.
      * etc/NEWS: Add an entry.
      * doc/lispref/display.texi: Add an entry for `inhibit-message',
        mention it in `message'.
  10. 21 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Fix byte-compiler warnings about looking-back. · c9a75a40
      Stefan Monnier authored
      * lisp/vc/log-view.el (log-view-end-of-defun-1):
      * lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
      * lisp/textmodes/reftex-ref.el (reftex-goto-label):
      * lisp/textmodes/bibtex.el (bibtex-insert-kill):
      * lisp/progmodes/sh-script.el (sh--maybe-here-document):
      * lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
      * lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
      * lisp/org/org.el (org-insert-heading, org-sort-entries):
      * lisp/org/org-mouse.el (org-mouse-end-headline)
      * lisp/org/org-clock.el (org-clock-cancel):
      * lisp/man.el (Man-default-man-entry):
      * lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
      * lisp/mail/footnote.el (Footnote-delete-footnote):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * lisp/info.el (Info-follow-reference, Info-fontify-node):
      * lisp/info-look.el (info-lookup-guess-custom-symbol):
      * lisp/help-fns.el (help-fns--key-bindings):
      * lisp/files.el (hack-local-variables):
      * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
      (viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
      * lisp/emulation/viper-cmd.el (viper-backward-indent):
      * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/cus-edit.el (custom-face-edit-value-create):
      * lisp/calendar/todo-mode.el (todo-set-item-priority)
      (todo-filter-items-1, todo-convert-legacy-files)
      (todo-prefix-overlays): Add explicit second arg to looking-back.
  11. 20 Apr, 2015 1 commit
  12. 19 Apr, 2015 2 commits
  13. 16 Apr, 2015 1 commit
  14. 15 Apr, 2015 2 commits
    • Glenn Morris's avatar
    • Paul Eggert's avatar
      Make [:graph:] act like [:print:] sans space · a122a027
      Paul Eggert authored
      In POSIX [[:print:]] is equivalent to [ [:graph:]], so change
      [:graph:] so that it matches everything that [:print:] does,
      except for space.
      * doc/lispref/searching.texi (Char Classes):
      * etc/NEWS:
      * lisp/emacs-lisp/rx.el (rx):
      Document [:graph:] to be [:print:] sans ' '.
      * src/character.c, src/character.h (graphicp): New function.
      * src/regex.c (ISGRAPH) [emacs]: Use it.
      (BIT_GRAPH): New macro.
      (BIT_PRINT): Increase to 0x200, to make room for BIT_GRAPH.
      (re_wctype_to_bit) [! WIDE_CHAR_SUPPORT]:
      Return BIT_GRAPH for RECC_GRAPH.
      (re_match_2_internal) [emacs]: Use ISGRAPH if BIT_GRAPH,
      and ISPRINT if BIT_PRINT.
  15. 14 Apr, 2015 2 commits
    • Eli Zaretskii's avatar
      Make [:print:] support non-ASCII characters correctly · 6c284c6b
      Eli Zaretskii authored
      * src/regex.c (ISPRINT): Call 'printablep' for multibyte characters.
      (BIT_PRINT): New bit mask.
      (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT.
      * src/character.c (printablep): New function.
      * src/character.h (printablep): Add prototype.
      * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior
      of 'print', 'alnum', and 'alphabetic'.
      * doc/lispref/searching.texi (Char Classes): Document the new
      behavior of [:print:].
      * etc/NEWS: Mention the new behavior of [:print:].
    • Dmitry Gutov's avatar
      Change diff-switches default to `-u' · a9ccfaef
      Dmitry Gutov authored
      Fixes: debbugs:20290
      * doc/emacs/files.texi (Comparing Files): Document the new default
      value of `diff-switches'.
      * doc/emacs/trouble.texi (Sending Patches): Document the preference
      for unified diff format.  Escape the plus in the suggested `-F' regexp
      * lisp/vc/diff.el (diff-switches): Change the default to `-u'.
  16. 13 Apr, 2015 4 commits
    • Stefan Monnier's avatar
      Deprecate `intangible' and `point-entered' properties · 84e0b7da
      Stefan Monnier authored
      * lisp/emacs-lisp/cursor-sensor.el: New file.
      * lisp/simple.el (pre-redisplay-functions): New hook.
      (redisplay--pre-redisplay-functions): New function.
      (pre-redisplay-function): Use it.
      (minibuffer-avoid-prompt): Mark obsolete.
      (redisplay--update-region-highlight): Adapt it to work as a function on
      * lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
      (minibuffer-prompt-properties): Use it.  Use cursor-intangible rather
      than point-entered to make the prompt intangible.
      * lisp/forms.el: Move `provide' calls to the end.
      (forms-mode): Don't use `run-hooks' on a local var.
      (forms--make-format, forms--make-format-elt-using-text-properties):
      Use cursor-intangible rather than `intangible'.
      (forms-mode): Enable cursor-intangible-mode.
      * lisp/isearch.el (isearch-mode): Use defvar-local.
      (cursor-sensor-inhibit): Declare.
      (isearch-mode): Set cursor-sensor-inhibit.
      (isearch-done): Set it back.
      (isearch-open-overlay-temporary, isearch-open-necessary-overlays)
      (isearch-close-unnecessary-overlays): Don't bother with `intangible'
      any more.
      * lisp/ses.el (ses-localvars): Remove `mode-line-process'.
      (ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
      Add Edebug spec.
      (ses-goto-print, ses-print-cell, ses-adjust-print-width)
      (ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
      inhibit-point-motion-hooks any more.
      (ses--cell-at-pos, ses--curcell): New functions, extracted from
      (ses-set-curcell): Use them.
      (ses-print-cell, ses-setup): Use cursor-intangible instead of
      `intangible'.  Make sure cursor-intangible isn't sticky at BOB.
      (ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
      Use ses--cell-at-pos.
      (ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
      extracted from ses-command-hook.  Make them work with multiple windows
      displaying the same buffer.
      (ses-mode): Use them via mode-line-process and pre-redisplay-functions.
      Enable cursor-intangible-mode.
      (ses-command-hook): Remove cell highlight and mode-line update code.
      (ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
      Update for new name of text-property holding the cell name.
      (ses-rename-cell): Don't mess with mode-line-process.
      * lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
      cursor-sensor-functions property instead of point-entered.
      (erc-insert-timestamp-right, erc-format-timestamp):
      Use cursor-intangible rather than `intangible'.
      (erc-munge-invisibility-spec): Use add-to-invisibility-spec and
      remove-from-invisibility-spec.  Enable cursor-intangible-mode and
      cursor-sensor-mode if needed.
      (erc-echo-timestamp): Adapt to calling convention of
      (erc-insert-timestamp-right): Remove unused vars `current-window' and
      * lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
      (gnus-update-group-mark-positions): Remove unused `topic' var.
      (gnus-group-insert-group-line): Remove unused var `header'.
      (gnus-group--setup-tool-bar-update): New function.
      (gnus-group-insert-group-line): Use it.
      (gnus-group-update-eval-form): Declare local
      dynamically-bound variables.
      (gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
      * lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
      (gnus-group-prepare-topics, gnus-topic-update-topic)
      (gnus-topic-change-level, gnus-topic-catchup-articles)
      (gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
      Use inhibit-read-only.
      (gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
      (gnus-topic-mode): Use define-minor-mode and derived-mode-p.
      * lisp/textmodes/reftex-index.el (reftex-display-index):
      Use cursor-intangible-mode if available.
      (reftex-index-post-command-hook): Check cursor-intangible.
      * lisp/textmodes/reftex-toc.el (reftex-toc):
      Use cursor-intangible-mode if available.
      (reftex-toc-recenter, reftex-toc-post-command-hook):
      Check cursor-intangible.
      * lisp/textmodes/sgml-mode.el: Use lexical-binding.
      (sgml-tag): Use cursor-sensor-functions instead of point-entered.
      (sgml-tags-invisible): Use with-silent-modifications and
      inhibit-read-only.  Enable cursor-sensor-mode.
      (sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
      calling convention of cursor-sensor-functions.
      * lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
      (table-point-entered-cell-hook, table-point-left-cell-hook):
      Don't autoload.
      (table-cell-entered-state): Remove var.
      Use cursor-sensor-functions rather than point-entered/left.
      (table--point-entered/left-cell-function): Merge
      table--point-entered-cell-function and table--point-left-cell-function
      and adjust to calling convention of cursor-sensor-functions.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      Collapse successive char deletions in the undo log · 5729f459
      Stefan Monnier authored
      * src/cmds.c (remove_excessive_undo_boundaries): New function,
      extracted from Fself_insert_command.
      (Fdelete_char, Fself_insert_command): Use it.
      * src/fileio.c (Fmake_symbolic_link): Rename arg to `target'.
      * src/keyboard.c (syms_of_keyboard): `top-level' shouldn't be special.
    • Stefan Monnier's avatar
      xterm and OSC 52: Add NEWS entry, and tweak the code · 5d9432e6
      Stefan Monnier authored
      * lisp/term/xterm.el (gui-set-selection) <nil>: Move method definition to
      (terminal-init-xterm-activate-set-selection): Set a terminal property.
      (xterm--set-selection): Use it instead of checking the value of
      `terminal-initted'.  Don't use string-bytes.
  17. 12 Apr, 2015 1 commit
  18. 10 Apr, 2015 1 commit
    • Daiki Ueno's avatar
      Add facility to collect stderr of async subprocess · f55ea05b
      Daiki Ueno authored
      * src/w32.h (register_aux_fd): New function declaration.
      * src/w32.c (register_aux_fd): New function.
      * src/process.h (struct Lisp_Process): New member stderrproc.
      * src/process.c (PIPECONN_P): New macro.
      (PIPECONN1_P): New macro.
      (Fdelete_process, Fprocess_status, Fset_process_buffer)
      (Fset_process_filter, Fset_process_sentinel, Fstop_process)
      (Fcontinue_process): Handle pipe process specially.
      (create_process): Respect p->stderrproc.
      (Fmake_pipe_process): New function.
      (Fmake_process): Add new keyword argument :stderr.
      (wait_reading_process_output): Specially handle a pipe process when
      it gets an EOF.
      (syms_of_process): Register Qpipe and Smake_pipe_process.
      * doc/lispref/processes.texi (Asynchronous Processes): Document
      `make-pipe-process' and `:stderr' keyword of `make-process'.
      * lisp/subr.el (start-process): Suggest to use `make-process' handle
      standard error separately.
      * test/automated/process-tests.el (process-test-stderr-buffer)
      (process-test-stderr-filter): New tests.
      * etc/NEWS: Mention new process type `pipe' and its usage with the
      `:stderr' keyword of `make-process'.
  19. 09 Apr, 2015 1 commit
  20. 06 Apr, 2015 2 commits
  21. 28 Mar, 2015 1 commit
    • Tom Willemse's avatar
      New `electric-pair-local-mode' · 40b3dcd2
      Tom Willemse authored
      Fixes: big#19528
      * lisp/elec-pair.el (electric-pair-local-mode): New command.
      (electric-pair-mode): Mention `electric-pair-local-mode' in the
  22. 25 Mar, 2015 3 commits
    • Stefan Monnier's avatar
      `save-excursion' does not save&restore the mark any more · 599ca626
      Stefan Monnier authored
      * src/editfns.c (save_excursion_save): Don't save the mark.
      (save_excursion_restore): Don't restore the mark.
      (Fsave_excursion): Fix docstring accordingly.
      * doc/lispintro/emacs-lisp-intro.texi:
      * doc/lispref/positions.texi (Excursions, Narrowing): `save-excursion' does
      not save&restore the mark any more.
    • Glenn Morris's avatar
      browse-url: mark some of the more obsolete stuff as such · f314d481
      Glenn Morris authored
      * lisp/net/browse-url.el (browse-url-browser-function)
      Remove obsolete items from the explicit listing.
      (browse-url-new-window-flag, browse-url-of-file-hook): Doc fixes.
      (browse-url-netscape-program, browse-url-netscape-arguments)
      (browse-url-galeon-program, browse-url-galeon-arguments)
      (browse-url-gnome-moz-program, browse-url-gnome-moz-arguments)
      (browse-url-mosaic-program, browse-url-mosaic-arguments)
      (browse-url-mosaic-pidfile, browse-url-CCI-port)
      (browse-url-CCI-host, browse-url-netscape-version)
      (browse-url-netscape, browse-url-netscape-sentinel)
      (browse-url-netscape-reload, browse-url-netscape-send)
      (browse-url-galeon, browse-url-galeon-sentinel)
      (browse-url-gnome-moz, browse-url-mosaic, browse-url-cci)
      (browse-url-w3-gnudoit): Make obsolete.
      * etc/NEWS: Mention this.
      * doc/misc/idlwave.texi (HTML Help Browser Tips): Remove obsolete info.
      * lisp/ffap.el (ffap-url-fetcher): Simplify default and doc.
      * lisp/x-dnd.el: Comment update.
    • Olaf Rogalsky's avatar
      * lisp/xt-mouse.el: Add mouse-tracking support. · c2385c6f
      Olaf Rogalsky authored
      Fixes: debbugs:19416
      * lisp/xt-mouse.el: Add mouse-tracking support.
      (xterm-mouse-translate-1): Handle mouse-movement events.
      (xterm-mouse--read-event-sequence-1006): Delete functions.
      (xterm-mouse--read-event-sequence): New function that handles both at
      the same time.  Handle mouse-movements.
      (xterm-mouse--read-utf8-char, xterm-mouse--read-number-from-terminal):
      New functions.
      (xterm-mouse-event): Simplify.
      (xterm-mouse-tracking-disable-sequence): Enable mouse tracking.
      * lisp/mouse.el (mouse-drag-line): Also ignore `vertical-line' prefix events.
  23. 24 Mar, 2015 1 commit
  24. 23 Mar, 2015 2 commits
    • Stefan Monnier's avatar
      Add new `cl-struct' and `eieio' pcase patterns. · ae277259
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (cl-struct): New pcase pattern.
      * lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-table)
      (eieio-pcase-slot-index-from-index-table): New functions.
      (eieio): New pcase pattern.
      * lisp/emacs-lisp/pcase.el (pcase--make-docstring): New function.
      (pcase): Use it to build the docstring.
      (pcase-defmacro): Make sure the macro is lazy-loaded.
      (\`): Move its docstring from `pcase'.
    • Daiki Ueno's avatar
      Generalize start-process with keyword args · 47e0e319
      Daiki Ueno authored
      * src/process.c (Fmake_process): New function.
      (create_process, create_pty): Check p->pty_flag instead of
      (syms_of_process): Register QCcommand, QCconnection_type, Qpty,
      Qpipe, and Smake_process.  Unregister Sstart_process.
      * lisp/subr.el (start-process): New function, ported from the C
      * doc/lispref/processes.texi (Asynchronous Processes): Mention
      * etc/NEWS: Mention `make-process'.
  25. 21 Mar, 2015 1 commit
    • Titus von der Malsburg's avatar
      Add new functions for computing default font dimensions · 4a50af93
      Titus von der Malsburg authored
       lisp/window.el (window-font-width, window-font-height)
       (window-max-chars-per-line): New functions.
       lisp/simple.el (default-font-height): Doc fix.
       (default-font-width): New function.
       etc/NEWS: Mention `default-font-width', `window-font-height',
       `window-font-width', and `window-max-chars-per-line'.
  26. 16 Mar, 2015 3 commits
    • Stefan Monnier's avatar
      Add `predicate' arg to `read-buffer' and use it for erc-iswitchb · f925fc93
      Stefan Monnier authored
      Fixes: debbugs:20116
      * src/minibuf.c (Fread_buffer): Add `predicate' argument.
      * src/callint.c (Fcall_interactively): Adjust calls accordingly.
      * lisp/erc/erc.el (erc-switch-to-buffer): Rename from erc-iswitchb and rewrite
      using read-buffer.
      (erc--buffer-p): New function, extracted from erc-buffer-filter.
      (erc-buffer-filter): Use it.
      (erc-with-all-buffers-of-server): Silence compile warning if the return
      value is unused.
      (erc-is-valid-nick-p, erc-common-server-suffixes, erc-get-arglist)
      (erc-command-name, erc-popup-input-buffer): Use \` and \' to match
      beg/end of string.
      * lisp/obsolete/iswitchb.el (iswitchb-read-buffer): Add `predicate' arg.
      * lisp/isearchb.el (isearchb-iswitchb): Adjust accordingly.
      * lisp/ido.el (ido-read-buffer): Add `predicate' argument.
      * lisp/misearch.el (unload-function-defs-list): Declare before use.
    • Vibhav Pant's avatar
      Fixes: debbugs:19335 · 43a847c0
      Vibhav Pant authored
      * net/browse-url.el (browse-url-browser-function): Add "Conkeror".
      (browse-url-conkeror-program, browse-url-conkeror-arguments)
      (browse-url-conkeror-new-window-is-buffer): New defcustoms.
      (browse-url-default-browser): Check for `browse-url-conkeror'
      and call `browse-url-conkeror-program'.
      (browse-url-conkeror): New command.
      * etc/NEWS: Mention added support for Conkeror.
    • Vibhav Pant's avatar
      Add 'clear' functionality to eshell. · ab4e4cc9
      Vibhav Pant authored
      * eshell/esh-mode.el (eshell/clear): New function.
      * etc/NEWS: Mention new built-in command.