1. 06 Oct, 2014 1 commit
  2. 01 Oct, 2014 2 commits
    • Stefan Monnier's avatar
      Consolidate x-select-text. · a8b36b95
      Stefan Monnier authored
      * lisp/frame.el (gui-method, gui-method-define, gui-method-declare)
      (gui-call): New macros.
      (gui-method--name): New function.
      (frame-creation-function-alist): Use gui-method-declare.
      (make-frame): Use gui-method.
      * lisp/select.el (gui-select-enable-clipboard): Rename from
      x-select-enable-clipboard and move here.
      (x-select-enable-clipboard): Define as obsolete alias.
      (gui-last-selected-text): New var, to replace x-last-selected-text.
      (gui-select-text): New GUI method.
      (gui-select-text): New function.
      (x-select-text): Define as obsolete alias.
      * lisp/term/common-win.el (x-select-enable-clipboard, x-select-text):
      Move to select.el.
      * lisp/simple.el (interprogram-cut-function): Change default to
      x-select-text.
      (interprogram-paste-function): Change default to `ignore'.
      * lisp/w32-common-fns.el (interprogram-cut-function): Don't modify.
      * lisp/term/x-win.el (interprogram-cut-function): Don't modify.
      (gui-select-text): Add method for x.
      * lisp/term/w32-win.el (gui-select-text): Add method for w32.
      * lisp/term/pc-win.el (x-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (msdos-initialize-window-system): Don't set interprogram-cut-function.
      (gui-select-text): Add method for pc.
      * lisp/term/ns-win.el (ns-last-selected-text): Remove, use
      gui-last-selected-text instead.
      (gui-select-text): Add method for ns.
      (x-setup-function-keys): Don't change interprogram-cut-function.
      * lisp/loadup.el ("startup"): Load after "frame".
      * lisp/subr.el (package--builtin-versions, package--description-file):
      Move from startup.el.
      * lisp/startup.el (package--builtin-versions, package--description-file):
      Move to subr.el.
      (handle-args-function-alist, window-system-initialization-alist):
      Use gui-method-declare.
      (command-line): Use gui-method.
      * src/xselect.c (selection-converter-alist): Fix docstring.
      a8b36b95
    • Stefan Monnier's avatar
      * lisp/subr.el (alist-get): New accessor. · a57fa964
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el (alist-get): Provide expander.
      * lisp/winner.el (winner-remember):
      * lisp/tempo.el (tempo-use-tag-list):
      * lisp/progmodes/gud.el (minor-mode-map-alist):
      * lisp/international/mule-cmds.el (define-char-code-property):
      * lisp/frameset.el (frameset-filter-params):
      * lisp/files.el (dir-locals-set-class-variables):
      * lisp/register.el (get-register, set-register):
      * lisp/calc/calc-yank.el (calc-set-register): Use it.
      * lisp/ps-print.el (ps-get, ps-put, ps-del): Mark as obsolete.
      * lisp/tooltip.el (tooltip-set-param): Mark as obsolete.
      (tooltip-show): Use alist-get instead.
      * lisp/ses.el (ses--alist-get): Remove.  Use alist-get instead.
      * admin/unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
      and cl-incf.
      a57fa964
  3. 27 Sep, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (track-mouse): New macro. · 19e0f0af
      Stefan Monnier authored
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
      Remove track-mouse case.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-track-mouse): Remove.
      * src/keyboard.c (track-mouse): Rename to internal--track-mouse.
      Make it into a function and change arg to be a function.
      19e0f0af
  4. 05 Sep, 2014 1 commit
  5. 04 Sep, 2014 1 commit
  6. 02 Sep, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix bug #18384 with incorrect reporting of row number by posn-col-row. · 5735a30d
      Eli Zaretskii authored
       lisp/subr.el (posn-col-row): Revert the change from commit
       2010-11-13T21:07:58Z!eliz@gnu.org, which
       was inadvertently merged from emacs-23 release branch in 
      2010-11-18T03:54:14Z!monnier@iro.umontreal.ca, and
       introduced an off-by-one error in the reported row when there is a
       header line.
      
       src/dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
       the reported row in the case of a window with a header line, by
       improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
       eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.
      5735a30d
  7. 28 Aug, 2014 1 commit
  8. 25 Aug, 2014 1 commit
  9. 11 Aug, 2014 1 commit
  10. 11 Jul, 2014 1 commit
    • Michael Albinus's avatar
      Hide password in batch mode · c0ada759
      Michael Albinus authored
      * doc/lispref/minibuf.texi (Intro to Minibuffers, Reading a Password):
      Password hiding is available in batch mode, do not mention it in
      the exclusion list.  Mention `read-hide-char'. 
      
      * lisp/subr.el (read-passwd): Use `read-hide-char' if non-nil.  Bind it
      when calling `read-string'.
      
      * src/minibuf.c (top): Include systty.h.  Declare external
      emacs_get_tty and emacs_set_tty.
      (Vread_hide_char): New lisp variable.
      (read_minibuf_noninteractive): Hide characters with
      Vread_hide_char if it is a character.
      
      * src/sysdep.c (emacs_get_tty, emacs_set_tty): Make them externally visible.
      
      Fixes: debbugs:17839
      c0ada759
  11. 26 Jun, 2014 1 commit
    • Glenn Morris's avatar
      Warn about read-passwd in batch mode · 64c35331
      Glenn Morris authored
      * doc/lispref/minibuf.texi (Intro to Minibuffers): Batch mode is basic.
      (Reading a Password): Mention batch mode. 
      
      * lisp/subr.el (read-passwd): Warn about batch mode.
      
      Fixes: debbugs:17839
      64c35331
  12. 25 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      Do not allow out-of-range character position in Fcompare_strings. · 5697ca55
      Dmitry Antipov authored
      * src/fns.c (validate_subarray): Add prototype.
      (Fcompare_substring): Use validate_subarray to check ranges.
      Adjust comment to mention that the semantics was changed.  Also see
      http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
      * lisp/files.el (dir-locals-find-file, file-relative-name):
      * lisp/info.el (Info-complete-menu-item):
      * lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p
      to compare-strings to avoid out-of-range errors.
      * lisp/subr.el (string-prefix-p): Adjust to match strict range
      checking in compare-strings.
      * test/automated/fns-tests.el (fns-tests-compare-string): New test.
      5697ca55
  13. 14 Jun, 2014 1 commit
  14. 31 May, 2014 2 commits
  15. 29 May, 2014 2 commits
  16. 28 May, 2014 3 commits
    • Glenn Morris's avatar
      6c203822
    • Stefan Monnier's avatar
      * lisp/subr.el (zerop): Move from C. Add compiler-macro. · 4c539a7b
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-zerop): Remove.
      * src/data.c (Fzerop): Move to Elisp.
      (syms_of_data): Don't defsubr it.
      * src/keyboard.c (echo_keystrokes_p): New function.
      (read_char, record_menu_key, read_key_sequence): Use it.
      
      Fixes: debbugs:17475
      4c539a7b
    • Stefan Monnier's avatar
      * src/callint.c (Ffuncall_interactively): New function. · 0e4857b7
      Stefan Monnier authored
      (Qfuncall_interactively): New var.
      (Qcall_interactively): Remove.
      (Fcall_interactively): Use it.
      (syms_of_callint): Defsubr it.
      * lisp/subr.el (internal--funcall-interactively): New.
      (internal--call-interactively): Remove.
      (called-interactively-p): Detect funcall-interactively instead of
      call-interactively.
      * lisp/simple.el (repeat-complex-command): Use funcall-interactively.
      (repeat-complex-command--called-interactively-skip): Remove.
      0e4857b7
  17. 14 May, 2014 1 commit
    • Glenn Morris's avatar
      Add with-file-modes macro, and use it · d63d883a
      Glenn Morris authored
      * lisp/subr.el (with-file-modes): New macro.
      
      * lisp/printing.el (pr-save-file-modes):
      * lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
      Add with-file-modes.
      
      * lisp/doc-view.el (doc-view-make-safe-dir):
      * lisp/epg.el (epg--start):
      * lisp/files.el (locate-user-emacs-file, make-temp-file)
      (backup-buffer-copy, move-file-to-trash):
      * printing.el (pr-despool-print, pr-call-process, pr-text2ps):
      * eshell/esh-util.el (eshell-with-private-file-modes)
      (eshell-make-private-directory):
      * lisp/net/browse-url.el (browse-url-mosaic):
      * lisp/obsolete/mailpost.el (post-mail-send-it):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
      * lisp/url/url-util.el (url-make-private-file):
      Use with-file-modes.
      
      * doc/lispref/files.texi (Changing Files): Mention with-file-modes.
      
      * etc/NEWS: Mention this.
      d63d883a
  18. 09 May, 2014 1 commit
  19. 09 Apr, 2014 1 commit
  20. 03 Apr, 2014 1 commit
  21. 02 Apr, 2014 1 commit
  22. 22 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Allow `declare' to set the interactive-only property · 5076d275
      Glenn Morris authored
      * lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
      Add interactive-only.  Doc tweak.
      (macro-declarations-alist): Doc tweak.
      
      * lisp/subr.el (declare): Doc tweak (add xref to manual).
      
      * lisp/comint.el (comint-run):
      * lisp/files.el (insert-file-literally, insert-file):
      * lisp/replace.el (replace-string, replace-regexp):
      * lisp/simple.el (beginning-of-buffer, end-of-buffer, delete-backward-char)
      (delete-forward-char, goto-line, insert-buffer, next-line)
      (previous-line): Set interactive-only via declare.
      
      * doc/lispref/functions.texi (Declare Form): Add interactive-only.
      
      * doc/lispref/commands.texi (Defining Commands) Mention declare.
      
      * etc/NEWS: Mention this.
      5076d275
  23. 21 Mar, 2014 1 commit
    • Richard M. Stallman's avatar
      Avoid GC crashes. · 16ec0742
      Richard M. Stallman authored
      * lisp/subr.el (set-transient-map): Clear out function and value
      of the temporary symbol when we're done with it.
      16ec0742
  24. 01 Mar, 2014 1 commit
  25. 27 Feb, 2014 1 commit
  26. 12 Feb, 2014 1 commit
  27. 10 Feb, 2014 2 commits
  28. 09 Feb, 2014 1 commit
  29. 08 Feb, 2014 1 commit
  30. 01 Feb, 2014 1 commit
  31. 24 Jan, 2014 1 commit
    • Glenn Morris's avatar
      Doc updates for with-demoted-errors · 1e548e40
      Glenn Morris authored
      * doc/lispref/control.texi (Handling Errors): Update with-demoted-errors.
      
      * lisp/subr.el (with-demoted-errors): Doc fix.
      
      * etc/NEWS: Related edit.
      1e548e40
  32. 22 Jan, 2014 1 commit
    • Glenn Morris's avatar
      Fix some function declarations · cc0f2ece
      Glenn Morris authored
      * lisp/calc/calc-embed.el (thing-at-point-looking-at):
      * lisp/emacs-lisp/map-ynp.el (x-popup-dialog):
      * lisp/obsolete/lmenu.el (x-popup-dialog):
      * lisp/emacs-lisp/package.el (url-recreate-url):
      * lisp/mail/mailclient.el (clipboard-kill-ring-save):
      * lisp/subr.el (x-popup-dialog): Update declaration.
      
      * lisp/mail/rmail.el (rmail-mime-message-p):
      * lisp/window.el (tool-bar-lines-needed): Remove unnecessary declaration.
      cc0f2ece
  33. 06 Jan, 2014 2 commits