1. 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
  2. 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
  3. 01 Mar, 2014 1 commit
  4. 27 Feb, 2014 1 commit
  5. 12 Feb, 2014 1 commit
  6. 10 Feb, 2014 2 commits
  7. 09 Feb, 2014 1 commit
  8. 08 Feb, 2014 1 commit
  9. 01 Feb, 2014 1 commit
  10. 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
  11. 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
  12. 06 Jan, 2014 2 commits
  13. 01 Jan, 2014 1 commit
  14. 31 Dec, 2013 1 commit
  15. 23 Dec, 2013 1 commit
    • Chong Yidong's avatar
      Rename set-temporary-overlay-map -> set-transient-map · 8cd22a08
      Chong Yidong authored
      * lisp/subr.el (set-transient-map): Rename from
      set-temporary-overlay-map.  Doc fix.
      
      * lisp/face-remap.el (text-scale-adjust):
      * lisp/indent.el (indent-rigidly):
      * lisp/kmacro.el (kmacro-call-macro):
      * lisp/minibuffer.el (minibuffer-force-complete):
      * lisp/repeat.el (repeat):
      * lisp/simple.el (universal-argument--mode):
      * lisp/calendar/todo-mode.el (todo-insert-item--next-param):
      * lisp/progmodes/f90.el (f90-abbrev-start): Callers changed.
      
      * lisp/org/org.el (orgstruct-make-binding): Call set-transient-map
      instead of old name set-temporary-overlay-map.
      
      * doc/lispref/keymaps.texi (Controlling Active Maps): Renamed
      set-temporary-overlay-map to set-transient map.  Doc fixes.
      (Searching Keymaps): The transient keymap takes precedence.
      8cd22a08
  16. 20 Dec, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/replace.el (read-regexp-defaults-function): New defcustom. · 24da7273
      Juri Linkov authored
      (read-regexp-suggestions): New function.
      (read-regexp): Use `read-regexp-defaults-function' to get default values.
      Use `read-regexp-suggestions'.  Add non-empty default to history
      for empty input.
      (occur-read-regexp-defaults-function): Remove function.
      (occur-read-primary-args): Use `regexp-history-last' instead of
      `occur-read-regexp-defaults-function'.
      
      * lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
      (hi-lock-line-face-buffer, hi-lock-face-buffer)
      (hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
      `hi-lock-read-regexp-defaults-function'.  Doc fix.
      (hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
      with `find-tag-default-as-symbol-regexp'.  Doc fix.
      (hi-lock-read-regexp-defaults): Remove function.
      (hi-lock-regexp-okay): Add check for null.
      
      * lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
      the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.
      
      * lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
      (find-tag-default-as-regexp): Move symbol regexp formatting to
      `find-tag-default-as-symbol-regexp'.
      
      Fixes: debbugs:14405
      24da7273
  17. 09 Dec, 2013 1 commit
  18. 02 Dec, 2013 1 commit
    • Leo Liu's avatar
      * subr.el (process-live-p): Return nil for non-process. · 0518b057
      Leo Liu authored
      * progmodes/sh-script.el (sh-shell-process):
      * progmodes/octave.el (inferior-octave-process-live-p):
      * progmodes/gdb-mi.el (gdb-delchar-or-quit)
      (gdb-inferior-io-sentinel):
      * emacs-lock.el (emacs-lock-live-process-p): All uses changed.
      
      Fixes: debbugs:16023
      0518b057
  19. 24 Nov, 2013 1 commit
  20. 15 Nov, 2013 1 commit
  21. 14 Nov, 2013 1 commit
  22. 11 Nov, 2013 1 commit
  23. 04 Nov, 2013 1 commit
  24. 02 Nov, 2013 1 commit
  25. 30 Oct, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (custom-declare-variable-early): Remove function. · 53b39e89
      Stefan Monnier authored
      (custom-declare-variable-list): Remove var.
      (error, user-error): Remove `while' loop.
      (read-quoted-char-radix, read-quoted-char): Move to simple.el.
      (user-emacs-directory-warning, locate-user-emacs-file):
      Move to files.el.
      * lisp/simple.el (read-quoted-char-radix, read-quoted-char):
      * lisp/files.el (user-emacs-directory-warning, locate-user-emacs-file):
      Move from subr.el.
      * lisp/custom.el (custom-declare-variable-list): Don't process
      custom-declare-variable-list.
      53b39e89
  26. 29 Oct, 2013 2 commits
    • Stefan Monnier's avatar
      * src/keyboard.c (command_loop_1): If command is nil, call `undefined'. · 4c9797cb
      Stefan Monnier authored
      * lisp/subr.el (undefined): Add missing behavior from the C code for
      unbound keys.
      4c9797cb
    • Stefan Monnier's avatar
      Add pre-redisplay-function and rectangular region · 3472b6c6
      Stefan Monnier authored
      * lisp/rect.el: Use lexical-binding.  Add new rectangular region support.
      (rectangle-mark): New command.
      (rectangle--region): New var.
      (deactivate-mark-hook): Reset rectangle--region.
      (rectangle--extract-region, rectangle--insert-for-yank)
      (rectangle--highlight-for-redisplay)
      (rectangle--unhighlight-for-redisplay): New functions.
      (region-extract-function, redisplay-unhighlight-region-function)
      (redisplay-highlight-region-function): Use them to handle
      rectangular region.
      * lisp/simple.el (region-extract-function): New var.
      (delete-backward-char, delete-forward-char, deactivate-mark): Use it.
      (kill-new, kill-append): Remove obsolete `yank-handler' argument.
      (kill-region): Replace obsolete `yank-handler' arg with `region'.
      (copy-region-as-kill, kill-ring-save): Add `region' argument.
      (redisplay-unhighlight-region-function)
      (redisplay-highlight-region-function): New vars.
      (redisplay--update-region-highlight): New function.
      (pre-redisplay-function): Use it.
      (exchange-point-and-mark): Don't deactivate the mark before
      reactivate-it anyway.
      * lisp/comint.el (comint-kill-region): Remove yank-handler argument.
      * lisp/delsel.el (delete-backward-char, backward-delete-char-untabify)
      (delete-char): Remove property, since it's now part of their
      default behavior.
      (self-insert-iso): Remove property since this command doesn't exist.
      
      * src/xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function.
      (syms_of_xdisp): Declare pre-redisplay-function.
      (markpos_of_region): Remove function.
      (init_iterator, compute_stop_pos, handle_face_prop)
      (face_before_or_after_it_pos, reseat_to_string)
      (get_next_display_element, window_buffer_changed)
      (redisplay_internal, try_cursor_movement, redisplay_window)
      (try_window_reusing_current_matrix, try_window_id, display_line)
      (note_mode_line_or_margin_highlight, note_mouse_highlight)
      (display_string, mouse_face_from_buffer_pos): Remove region handling.
      * src/window.h (struct window): Remove field `region_showing'.
      * src/dispextern.h (struct it): Remove region_beg/end_charpos.
      (face_at_buffer_position, face_for_overlay_string)
      (face_at_string_position): Update prototypes.
      * src/xfaces.c (face_at_buffer_position, face_for_overlay_string)
      (face_at_string_position): Remove `region_beg' and `region_end' args.
      * src/fontset.c (Finternal_char_font):
      * src/font.c (font_at, font_range): Adjust calls accordingly.
      * src/insdel.c (Qregion_extract_function): New var.
      (syms_of_insdel): Initialize it.
      (prepare_to_modify_buffer_1): Use it.
      3472b6c6
  27. 25 Oct, 2013 1 commit
  28. 18 Oct, 2013 1 commit
    • Barry O'Reilly's avatar
      Don't run timers in input-pending-p. Its new check-timers param · ef566920
      Barry O'Reilly authored
      provides the prior behavior..
      * src/keyboard.c (Finput_pending_p): Accept optional check-timers
      param.
      * lisp/subr.el (sit-for): Call (input-pending-p t) so as to behave
      as before.
      * test/automated/timer-tests.el: New file.  Tests that (sit-for 0)
      allows another timer to run.
      
      Fixes: debbugs:15045
      ef566920
  29. 04 Oct, 2013 1 commit
  30. 03 Oct, 2013 1 commit
  31. 29 Sep, 2013 1 commit
  32. 20 Sep, 2013 1 commit
    • Ryan's avatar
      * lisp/subr.el (internal--call-interactively): New const. · 31dca772
      Ryan authored
      (called-interactively-p): Use it.
      * test/automated/advice-tests.el (advice-test-called-interactively-p-around)
      (advice-test-called-interactively-p-filter-args)
      (advice-test-called-interactively-p-around): New tests.
      
      Fixes: debbugs:3984
      31dca772
  33. 18 Sep, 2013 2 commits
  34. 16 Sep, 2013 1 commit
  35. 12 Sep, 2013 1 commit
  36. 10 Sep, 2013 1 commit