1. 22 Jun, 2015 1 commit
  2. 17 Jun, 2015 1 commit
    • Glenn Morris's avatar
      Address some check-declare warnings. · fb77502f
      Glenn Morris authored
      * lisp/simple.el (tabulated-list-print):
      * lisp/progmodes/elisp-mode.el (xref-collect-matches):
      * lisp/term/ns-win.el (ns-selection-owner-p, ns-selection-exists-p)
      (ns-get-selection): Update declarations.
      fb77502f
  3. 11 Jun, 2015 1 commit
  4. 10 Jun, 2015 2 commits
  5. 23 May, 2015 1 commit
    • Stefan Monnier's avatar
      Replace gui-method macros with cl-generic with &context · 919281dd
      Stefan Monnier authored
      * lisp/frame.el (gui-method--name, gui-method, gui-method-define)
      (gui-method-declare, gui-call): Remove.
      (frame-creation-function): Use cl-defgeneric.
      (make-frame): Adjust callers.
      
      * lisp/menu-bar.el (menu-bar-edit-menu):
      Use gui-backend-selection-exists-p.
      
      * lisp/select.el (x-get-clipboard): Use gui-backend-get-selection.
      (gui-backend-get-selection): New cl-generic to replace
      gui-get-selection method.
      (gui-backend-set-selection): New cl-generic to replace
      gui-set-selection method.
      (gui-selection-owner-p): New cl-generic to replace
      gui-selection-owner-p method.
      (gui-backend-selection-exists-p): New cl-generic to replace
      gui-selection-exists-p method.  Adjust all callers.
      
      * lisp/server.el (server-create-window-system-frame): Don't ignore
      window-system spec even when unsupported.
      
      * lisp/simple.el (deactivate-mark): Use new gui-backend-* functions.
      
      * lisp/startup.el (handle-args-function, window-system-initialization):
      Use cl-defgeneric.
      (command-line): Adjust calls accordingly.
      
      * lisp/term/ns-win.el (ns-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/pc-win.el (w16-get-selection-value): Turn into
      a gui-backend-get-selection method.
      (gui-selection-exists-p, gui-selection-owner-p, gui-set-selection):
      Use cl-defmethod on the new functions instead.
      (msdos-window-system-initialization): Turn into
      a window-system-initialization method.
      (frame-creation-function, handle-args-function): Use cl-defmethod.
      
      * lisp/term/w32-win.el (w32-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/x-win.el (x-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/xterm.el (xterm--set-selection): Turn into
      a gui-backend-set-selection method.
      
      * src/nsselect.m (Fns_selection_exists_p): Remove unused arg `terminal'.
      (Fns_selection_owner_p): Remove unused arg `terminal'.
      (Fns_get_selection): Remove unused args `time_stamp' and `terminal'.
      919281dd
  6. 21 May, 2015 1 commit
  7. 09 May, 2015 1 commit
    • Eli Zaretskii's avatar
      Avoid infloop in ERC · d2c7e14a
      Eli Zaretskii authored
      * lisp/simple.el (line-move-to-column): Ignore field boundaries
      while computing line beginning position.  (Bug#20498)
      d2c7e14a
  8. 04 May, 2015 2 commits
    • Daniel Colascione's avatar
      Fix previous commit · 1ddb81a6
      Daniel Colascione authored
      1ddb81a6
    • Daniel Colascione's avatar
      Add `save-mark-and-excursion', which has the old `save-excursion' behavior · 255a011f
      Daniel Colascione authored
      * doc/lispref/positions.texi (Excursions): Document
      `save-mark-and-excursion'.
      
      * lisp/font-lock.el (font-lock-fontify-block): Use
      `save-mark-and-excursion' instead of `save-excursion', restoring
      Emacs 24 behavior.
      
      * lisp/simple.el (save-mark-and-excursion--save)
      (save-mark-and-excursion--restore): New functions.
      (save-mark-and-excursion): New user macro.
      
      * src/editfns.c (Fsave_excursion): Mention
      `save-mark-and-excursion' in `save-excursion' documentation.
      255a011f
  9. 01 May, 2015 1 commit
  10. 13 Apr, 2015 1 commit
    • 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
      pre-redisplay-functions.
      
      * 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.
      (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
      cursor-sensor-functions.
      (erc-insert-timestamp-right): Remove unused vars `current-window' and
      `indent'.
      
      * 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.
      (table--put-cell-point-entered/left-property)
      (table--remove-cell-properties):
      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.
      84e0b7da
  11. 22 Mar, 2015 1 commit
    • Jan D's avatar
      Fixes: debbugs:18939 · c3c4b758
      Jan D authored
      * simple.el (deactivate-mark): Only modify PRIMARY if we own PRIMARY.
      c3c4b758
  12. 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'.
      4a50af93
  13. 12 Mar, 2015 1 commit
    • Juri Linkov's avatar
      Support goal column in multi-line minibuffer · b91eafe3
      Juri Linkov authored
      * lisp/simple.el (next-line-or-history-element)
      (previous-line-or-history-element): Remember the goal column of
      possibly multi-line input, and restore it afterwards.
      
      Fixes: debbugs:19824
      b91eafe3
  14. 11 Mar, 2015 1 commit
  15. 25 Feb, 2015 1 commit
  16. 18 Feb, 2015 1 commit
    • Kelly Dean's avatar
      Use user-error where error is inappropriate · 72f7eded
      Kelly Dean authored
      * help-mode.el (help-go-back, help-go-forward, help-follow):
      * simple.el (yank-pop, pop-to-mark-command, exchange-point-and-mark):
      * winner.el (winner-redo):
      * windmove.el (windmove-do-window-select):
      * register.el (jump-to-register, increment-register, insert-register)
      (append-to-register, prepend-to-register):
      * files.el (find-alternate-file, abort-if-file-too-large, write-file)
      (set-visited-file-name):
      * emacs-lisp/lisp.el (kill-backward-up-list):
      Use user-error instead of error. (Bug#14480)
      72f7eded
  17. 13 Feb, 2015 1 commit
  18. 20 Jan, 2015 1 commit
    • Michal Nazarewicz's avatar
      eldoc: modify `eldoc-documentation-function' using `add-function' · fd020a29
      Michal Nazarewicz authored
      * lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Describe how
      major modes should use `add-function' to alter value of the variable.
      
      * lisp/hexl.el (hexl-mode): Set `eldoc-documentation-function' using
      `add-function' so the default value is always used.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/cfengine.el (cfengine3-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/elisp-mode (emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/octave.el (octave-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/python.el (python-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/simple.el (read--expression): Set `eldoc-documentation-function'
      using `add-function' so the default value is always used.
      fd020a29
  19. 09 Jan, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix line-move-visual's following of column in R2L lines (backport from trunk). · 7c0bfa1d
      Eli Zaretskii authored
       src/simple.el (line-move-visual): When converting X pixel coordinate
       to temporary-goal-column, adjust the value for right-to-left
       screen lines.  This fixes vertical-motion, next/prev-line, etc.
      
       src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
       returned for right-to-left screen lines.  (Before the change on
       2014-12-30, the incorrectly-computed X pixel coordinate concealed
       this bug.)
      
      (cherry picked from commit 5fbd17e3)
      
      Conflicts:
      	lisp/simple.el
      7c0bfa1d
  20. 08 Jan, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix line-move-visual's following of column in R2L lines. · 5fbd17e3
      Eli Zaretskii authored
       src/simple.el (line-move-visual): When converting X pixel coordinate
       to temporary-goal-column, adjust the value for right-to-left
       screen lines.  This fixes vertical-motion, next/prev-line, etc.
      
       src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
       returned for right-to-left screen lines.  (Before the change on
       2014-12-30, the incorrectly-computed X pixel coordinate concealed
       this bug.)
      5fbd17e3
  21. 01 Jan, 2015 2 commits
  22. 27 Dec, 2014 1 commit
  23. 13 Dec, 2014 1 commit
    • Ted Zlatanov's avatar
      Merge from origin/emacs-24 · 28e0d0c9
      Ted Zlatanov authored
      bd6c4418 * simple.el (password-word-equivalents): Add "passcode", used for numeric secrets like PINs or RSA tokens.
      16d4c1cd A better fix for bug#19346
      82ec808f * .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files.
      3cf7629f Git ignore lib/std*.h
      301a4014 Always define `gnutls-available-p' even if GnuTLS is not available.
      d76b9b2a Don't break example string between 2 lines (bug#19257)
      75b4857e Port commit-msg to mawk
      9ac03320 Improve commit-msg messages and autosquash
      0c2f254b Support overflow-newline-into-fringe together with word-wrap (bug#19300)
      935ee05f * net/tramp-sh.el (tramp-get-remote-path): Use a login shell in order to determine `tramp-own-remote-path'.
      c2db9393 python.el: Support interpreter paths with spaces
      d83f3299 ChangeLog fix
      0f9fbb92 Port commit-message checking to FreeBSD 9.
      3db1adac admin/MAINTAINERS: Update my interests and responsibilities.
      6382f241 * .gitignore: Ignore autosave files.
      
      Conflicts:
      	ChangeLog
      	lisp/progmodes/python.el
      	src/gnutls.c
      28e0d0c9
  24. 12 Dec, 2014 1 commit
  25. 04 Dec, 2014 1 commit
  26. 01 Dec, 2014 1 commit
  27. 30 Nov, 2014 1 commit
  28. 28 Nov, 2014 1 commit
  29. 18 Nov, 2014 2 commits
  30. 16 Nov, 2014 2 commits
  31. 08 Nov, 2014 1 commit
  32. 03 Nov, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/simple.el (execute-extended-command--last-typed): New var. · d94bc77e
      Stefan Monnier authored
      (read-extended-command): Set it.
      Don't complete obsolete commands.
      (execute-extended-command--shorter-1)
      (execute-extended-command--shorter): New functions.
      (execute-extended-command): Use them to suggest shorter names.
      (indicate-copied-region, deactivate-mark): Use region-active-p.
      d94bc77e
  33. 31 Oct, 2014 1 commit
  34. 21 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      Get rid of backend-dependent selection-handling functions for kill/yank · a046b8dd
      Stefan Monnier authored
      and make it generic instead by relying on the lower-level selection
      management functions.
      
      * select.el (select-enable-clipboard): Rename from
      gui-select-enable-clipboard.
      (select-enable-primary): Move from x-win.el and rename from
      x-select-enable-primary.
      (gui-last-selected-text): Remove.
      (gui--last-selected-text-clipboard, gui--last-selected-text-primary):
      New vars.
      (gui-select-text): Rewrite, based on x-win.el's old x-select-text.
      (gui-select-text-alist, gui-selection-value-alist): Remove.
      (x-select-request-type): Move from x-win.el.
      (gui--selection-value-internal): New function, taken from x-win's
      x-selection-value-internal.
      (gui-selection-value): Rewrite, based on x-win.el's old x-selection-value.
      (gui-set-selection-alist): Rename from gui-own-selection-alist and
      extend it to handle a nil value as a "disown" request.
      (gui-disown-selection-alist): Remove.
      (xselect-convert-to-delete): Adjust accordingly.
      (gui-set-selection): Simplify accordingly as well.  Use dotimes.
      
      * lisp/frame.el (gui-method): Use window-system rather than framep.
      (gui-method-declare): The tty case is now nil rather than t.
      (make-frame): Adjust accordingly.
      
      * lisp/term/x-win.el (x-last-selected-text-primary)
      (x-select-enable-primary): Remove (moved to select.el).
      (x-select-request-type): Move to select.el.
      (x-selection-value-internal, x--selection-value): Remove functions.
      (gui-selection-value, gui-select-text): Remove moethods.
      (gui-set-selection): Merge own and disown methods.
      
      * lisp/startup.el (command-line): Adjust now that `gui-method' expects nil
      for ttys.
      
      * lisp/term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard)
      (ns-selection-value): Remove functions.
      (gui-select-text, gui-selection-value): Don't define method any more.
      (gui-set-selection): Merge the old own and disown methods.
      (gui-selection-exists-p, gui-get-selection): Adjust to new name of
      underlying C primitive.
      
      * lisp/term/pc-win.el (w16-get-selection-value): Add dummy argument and drop
      test of gui-select-enable-clipboard, to make it usable as
      a gui-get-selection method.
      (gui-selection-exists-p): Adjust to new name of C primitive.
      (gui-set-selection): Merge own and disown methods.
      (gui-select-text, gui-selection-value): Delete methods.
      (w16--select-text): Delete function.
      
      * lisp/term/w32-win.el (w32--select-text, w32--get-selection-value):
      Delete function (move functionality into w32--set-selection and
      w32--get-selection).
      (gui-select-text, gui-selection-value): Don't define methods.
      (w32--set-selection, w32--get-selection, w32--selection-owner-p):
      New functions.
      (gui-get-selection, gui-selection-owner-p, gui-selection-exists-p):
      Use them.
      (gui-selection-exists-p): Adjust to new name of C primitive.
      
      * src/nsselect.m (ns_get_local_selection): Signal error rather than `quit'.
      (Fns_own_selection_internal): Tighten scoping.
      (Fns_selection_exists_p): Rename from Fx_selection_exists_p.
      (Fns_get_selection): Rename from Fx_get_selection_internal.
      (Fns_get_selection_internal, Fns_store_selection_internal):
      Remove functions.
      (syms_of_nsselect): Adjust accordingly.
      
      * src/w16select.c (Fw16_selection_exists_p): Rename from
      Fx_selection_exists_p.
      (syms_of_win16select): Adjust accordingly.
      
      * src/w32select.c (Fw32_selection_exists_p): Rename from
      Fx_selection_exists_p.
      (syms_of_w32select): Adjust accordingly.
      a046b8dd
  35. 13 Oct, 2014 1 commit