1. 06 Jan, 2014 1 commit
  2. 01 Jan, 2014 1 commit
  3. 31 Dec, 2013 1 commit
  4. 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
  5. 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
  6. 09 Dec, 2013 1 commit
  7. 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
  8. 24 Nov, 2013 1 commit
  9. 15 Nov, 2013 1 commit
  10. 14 Nov, 2013 1 commit
  11. 11 Nov, 2013 1 commit
  12. 04 Nov, 2013 1 commit
  13. 02 Nov, 2013 1 commit
  14. 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
  15. 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
  16. 25 Oct, 2013 1 commit
  17. 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
  18. 04 Oct, 2013 1 commit
  19. 03 Oct, 2013 1 commit
  20. 29 Sep, 2013 1 commit
  21. 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
  22. 18 Sep, 2013 2 commits
  23. 16 Sep, 2013 1 commit
  24. 12 Sep, 2013 1 commit
  25. 10 Sep, 2013 1 commit
  26. 05 Sep, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (pop): Use `car-safe'. · c0458e0b
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove hack
      to detect unused `pop' return value.
      
      * lisp/emacs-lisp/advice.el (defadvice): Add indent rule.
      
      * lisp/international/mule-cmds.el: Require CL.
      (find-coding-systems-for-charsets): Avoid add-to-list.
      (sanitize-coding-system-list): New function, extracted from
      select-safe-coding-system-interactively.
      (select-safe-coding-system-interactively): Use it.
      (read-input-method-name): Accept symbols for `default'.
      
      * lisp/progmodes/python.el (python-nav-beginning-of-block): Remove unused
      var `block-regexp'.
      (python-nav--forward-sexp): Remove unused var `re-search-fn'.
      (python-fill-string): Remove unused var `marker'.
      (python-skeleton-add-menu-items): Remove unused var `items'.
      c0458e0b
  27. 09 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (define-error): New function. · 54bd972f
      Stefan Monnier authored
      * doc/lispref/control.texi (Signaling Errors): Refer to define-error.
      (Error Symbols): Add `define-error'.
      * doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
      * lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
      error-file-not-found and define with define-error.
      * lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
      and define with define-error.
      * lisp/userlock.el (file-locked, file-supersession):
      * lisp/simple.el (mark-inactive):
      * lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
      * lisp/progmodes/ada-mode.el (ada-mode-errors):
      * lisp/play/life.el (life-extinct):
      * lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
      * lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
      * lisp/nxml/rng-util.el (rng-error):
      * lisp/nxml/rng-uri.el (rng-uri-error):
      * lisp/nxml/rng-match.el (rng-compile-error):
      * lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
      * lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
      * lisp/nxml/nxml-rap.el (nxml-scan-error):
      * lisp/nxml/nxml-outln.el (nxml-outline-error):
      * lisp/net/soap-client.el (soap-error):
      * lisp/net/gnutls.el (gnutls-error):
      * lisp/net/ange-ftp.el (ftp-error):
      * lisp/mpc.el (mpc-proc-error):
      * lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
      (json-number-format, json-string-escape, json-string-format)
      (json-key-format, json-object-format):
      * lisp/jka-compr.el (compression-error):
      * lisp/international/quail.el (quail-error):
      * lisp/international/kkc.el (kkc-error):
      * lisp/emacs-lisp/ert.el (ert-test-failed):
      * lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
      (math-underflow):
      * lisp/bookmark.el (bookmark-error-no-filename):
      * lisp/epg.el (epg-error): Define with define-error.
      54bd972f
  28. 07 Aug, 2013 1 commit
  29. 04 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/subr.el (macrop): New function. · 671d5c16
      Stefan Monnier authored
      (text-clone--maintaining): New var.
      (text-clone--maintain): Rename from text-clone-maintain.  Use it
      instead of inhibit-modification-hooks.
      
      * lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
      a proxy, so as handle autoloads and redefinitions of the target.
      (advice--defalias-fset, advice-remove): Use advice--symbol-function.
      
      * lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
      Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
      (pcase--mutually-exclusive-p): New function.
      (pcase--split-consp): Use it.
      (pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
      mutually exclusive with the current predicate.
      
      * test/automated/advice-tests.el (advice-tests-nadvice): Test removal
      before definition.
      (advice-tests-macroaliases): New test.
      
      * lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
      (edebug-macrop): Remove.  Use `macrop' instead.
      * lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
      (ad-macro-p):
      * lisp/eshell/esh-cmd.el (eshell-macrop):
      * lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.
      671d5c16
  30. 26 Jul, 2013 1 commit
    • Stefan Monnier's avatar
      Add support for lexical variables to the debugger's `e' command. · 56ea7291
      Stefan Monnier authored
      * lisp/emacs-lisp/debug.el (debug): Don't let-bind the debugger-outer-*
      vars, except for debugger-outer-match-data.
      (debugger-frame-number): Move check for "on a function call" from
      callers into it.  Add `skip-base' argument.
      (debugger-frame, debugger-frame-clear): Simplify accordingly.
      (debugger-env-macro): Only reset the state stored in non-variables,
      i.e. current-buffer and match-data.
      (debugger-eval-expression): Rewrite using backtrace-eval.
      * lisp/subr.el (internal--called-interactively-p--get-frame): Remove.
      (called-interactively-p):
      * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): Use the new
      `base' arg of backtrace-frame instead.
      * src/eval.c (set_specpdl_old_value): New function.
      (unbind_to): Minor simplification.
      (get_backtrace_frame): New function.
      (Fbacktrace_frame): Use it.  Add `base' argument.
      (backtrace_eval_unrewind, Fbacktrace_eval): New functions.
      (syms_of_eval): Export backtrace-eval.
      * src/xterm.c (x_focus_changed): Simplify.
      56ea7291
  31. 22 Jul, 2013 1 commit
  32. 19 Jul, 2013 1 commit
  33. 11 Jul, 2013 1 commit
  34. 07 Jul, 2013 1 commit
  35. 06 Jul, 2013 1 commit
  36. 04 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el: New package. · 864c58ca
      Michael Albinus authored
      * autorevert.el (top): Require filenotify.el.
      (auto-revert-notify-enabled): Remove.  Use `file-notify-support'
      instead.
      (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
      (auto-revert-notify-handler): Use `file-notify-*' functions.
      
      * subr.el (file-notify-handle-event): Move function to filenotify.el.
      
      * net/tramp.el (tramp-file-name-for-operation): Handle
      `file-notify-add-watch' and `file-notify-rm-watch'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
      for `file-notify-add-watch' and `file-notify-rm-watch'.
      (tramp-process-sentinel): Improve trace.
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-sh-file-notify-process-filter)
      (tramp-sh-handle-file-notify-rm-watch)
      (tramp-get-remote-inotifywait): New defuns.
      864c58ca
  37. 03 Jul, 2013 1 commit
  38. 20 Jun, 2013 1 commit
    • Paul Eggert's avatar
      Add log2 support and make log10 obsolete for consistency. · 89561f72
      Paul Eggert authored
      * configure.ac (log2): Check for this function.
      * doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
      * lisp/subr.el (log10): Move here from C code, and declare as obsolete.
      All uses of (log10 X) replaced with (log X 10).
      * src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
      base is 2; this is more accurate.
      (Flog10): Move to Lisp (marked obsolete there).
      89561f72