1. 10 Sep, 2013 2 commits
  2. 08 Sep, 2013 1 commit
  3. 07 Sep, 2013 1 commit
  4. 06 Sep, 2013 2 commits
    • Stefan Monnier's avatar
      * lisp/minibuffer.el: Make minibuffer-complete call completion-in-region · 67982e2b
      Stefan Monnier authored
      rather than other way around.
      (completion--some, completion-pcm--find-all-completions):
      Don't delay signals when debugging.
      (minibuffer-completion-contents): Beware fields within the
      minibuffer contents.
      (completion-all-sorted-completions): Use defvar-local.
      (completion--do-completion, completion--cache-all-sorted-completions)
      (completion-all-sorted-completions, minibuffer-force-complete):
      Add args `beg' and `end'.
      (completion--in-region-1): New fun, extracted from minibuffer-complete.
      (minibuffer-complete): Use completion-in-region.
      (completion-complete-and-exit): New fun, extracted from
      minibuffer-complete-and-exit.
      (minibuffer-complete-and-exit): Use it.
      (completion--complete-and-exit): Rename from
      minibuffer--complete-and-exit.
      (completion-in-region--single-word): New function, extracted from
      minibuffer-complete-word.
      (minibuffer-complete-word): Use it.
      (display-completion-list): Make `common-substring' argument obsolete.
      (completion--in-region): Call completion--in-region-1 instead of
      minibuffer-complete.
      (completion-help-at-point): Pass boundaries to
      minibuffer-completion-help as args rather than via an overlay.
      (completion-pcm--string->pattern): Use `any-delim'.
      (completion-pcm--optimize-pattern): New function.
      (completion-pcm--pattern->regex): Handle `any-delim'.
      * lisp/icomplete.el (icomplete-forward-completions)
      (icomplete-backward-completions, icomplete-completions):
      Adjust calls to completion-all-sorted-completions and
      completion--cache-all-sorted-completions.
      (icomplete-with-completion-tables): Default to t.
      * lisp/emacs-lisp/crm.el (crm--current-element): Rename from
      crm--select-current-element.  Don't put an overlay but return the
      boundaries instead.
      (crm--completion-command): Take two new args to bind to the boundaries.
      (crm-completion-help): Adjust accordingly.
      (crm-complete): Use completion-in-region.
      (crm-complete-word): Use completion-in-region--single-word.
      (crm-complete-and-exit): Use completion-complete-and-exit.
      67982e2b
    • Michael Albinus's avatar
  5. 04 Sep, 2013 1 commit
    • Xue Fuqiao's avatar
      Some fixes for vc-ignore. · 63191d9f
      Xue Fuqiao authored
      * lisp/vc/vc.el (vc-ignore): Rewrite.
      (vc-default-ignore): New function.
      (vc-default-ignore-completion-table): Use find-ignore-file.
      
      * lisp/vc/vc-bzr.el (vc-bzr-ignore, vc-bzr-ignore-completion-table):
      * lisp/vc/vc-git.el (vc-git-ignore, vc-git-ignore-completion-table):
      * lisp/vc/vc-hg.el (vc-hg-ignore, vc-hg-ignore-completion-table):
      Remove.  Most code moved to vc.el.
      
      * doc/emacs/maintaining.texi (VC Ignore): Mention `vc-ignore' with prefix argument.
      63191d9f
  6. 31 Aug, 2013 1 commit
  7. 16 Aug, 2013 1 commit
    • Glenn Morris's avatar
      Add functions to change the speed of animated images · 3a2ddc2d
      Glenn Morris authored
      * lisp/image-mode.el (image-mode-map): Add menu items to reverse,
      increase, decrease, reset animation speed.
      (image--set-speed, image-increase-speed, image-decrease-speed)
      (image-reverse-speed, image-reset-speed): New functions.
      (image-mode-map): Add bindings for speed commands.
      
      * lisp/image.el (image-animate-get-speed, image-animate-set-speed):
      New functions.
      (image-animate-timeout): Respect image :speed property.
      
      * etc/NEWS: Mention this.
      3a2ddc2d
  8. 13 Aug, 2013 2 commits
  9. 12 Aug, 2013 2 commits
  10. 11 Aug, 2013 1 commit
  11. 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-err...
      54bd972f
  12. 08 Aug, 2013 1 commit
  13. 06 Aug, 2013 3 commits
    • Glenn Morris's avatar
      calendar.el: Add new faces, and day-header-array · 3b5c03d3
      Glenn Morris authored
      * lisp/calendar/calendar.el (calendar-weekday-header)
      (calendar-weekend-header, calendar-month-header): New faces.
      (calendar-day-header-construct): New function.
      (calendar-day-header-width): Also :set calendar-day-header-array.
      (calendar-american-month-header, calendar-european-month-header)
      (calendar-iso-month-header): Use calendar- faces.
      (calendar-generate-month):
      Use calendar-day-header-array for day headers; apply faces to them.
      (calendar-mode): Check calendar-font-lock-keywords non-nil.
      (calendar-abbrev-construct): Add optional maxlen argument.
      (calendar-day-name-array): Doc fix.
      (calendar-day-name-array, calendar-abbrev-length)
      (calendar-day-abbrev-array):
      Also :set calendar-day-header-array, and maybe redraw.
      (calendar-day-header-array): New option. 
      (calendar-font-lock-keywords): Use calendar-day-header-array,
      and calendar- faces.  Make obsolete.
      (calendar-day-name): Add option to use header array.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:15007
      3b5c03d3
    • Stephen Berman's avatar
      * NEWS: Mention Todo mode user manual. · 8bcced1f
      Stephen Berman authored
      8bcced1f
    • Dmitry Antipov's avatar
      * lisp/files.el (cache-long-line-scans): Make · ed4fd9c5
      Dmitry Antipov authored
      obsolete alias to `cache-long-scans'.
      * etc/NEWS: Mention `cache-long-scans'.
      ed4fd9c5
  14. 04 Aug, 2013 2 commits
    • 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 `s...
      671d5c16
    • Juanma Barranquero's avatar
  15. 03 Aug, 2013 1 commit
  16. 02 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Make defvar affect the default binding outside of any let. · a104f656
      Stefan Monnier authored
      * src/eval.c (default_toplevel_binding): New function.
      (Fdefvar): Use it.
      (unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
      (Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
      (syms_of_eval): Export them.
      * src/data.c (Fdefault_value): Micro cleanup.
      * src/term.c (init_tty): Use "false".
      * lisp/custom.el (custom-initialize-default, custom-initialize-set)
      (custom-initialize-reset, custom-initialize-changed): Affect the
      toplevel-default-value (bug#6275, bug#14586).
      * lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
      for bug#6275.
      * test/automated/core-elisp-tests.el: New file.
      a104f656
  17. 31 Jul, 2013 1 commit
  18. 30 Jul, 2013 2 commits
    • Xue Fuqiao's avatar
      Fix for vc-ignore. · 207d1d04
      Xue Fuqiao authored
      * vc/vc-hooks.el (vc-prefix-map): Add key binding for vc-ignore.
      
      * vc/vc-dir.el (vc-dir-mode-map): Change key binding for vc-dir-ignore.
      207d1d04
    • Xue Fuqiao's avatar
      Add vc-ignore. · 7aa7fff0
      Xue Fuqiao authored
      * lisp/vc/vc.el (vc-ignore): New function.
      
      * lisp/vc/vc-svn.el (vc-svn-ignore): New function.
      
      * lisp/vc/vc-hg.el (vc-hg-ignore): New function.
      
      * lisp/vc/vc-git.el (vc-git-ignore): New function.
      
      * lisp/vc/vc-dir.el (vc-dir-mode-map): Add key binding for vc-dir-ignore
      (vc-dir-ignore): New function.
      
      * lisp/vc/vc-cvs.el (vc-cvs-ignore): New function.
      (cvs-append-to-ignore): Moved from pcvs.el.
      
      * lisp/vc/vc-bzr.el (vc-bzr-ignore): New function.
      
      * lisp/vc/pcvs.el (vc-cvs): Require 'vc-cvs.
      7aa7fff0
  19. 27 Jul, 2013 1 commit
    • Xue Fuqiao's avatar
      Keybinding fix for vc-dir. · e4c467f9
      Xue Fuqiao authored
      * lisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-root-diff.
      * doc/emacs/maintaining.texi (VC Directory Commands): Mention `D' and `L' in vc-dir.
      e4c467f9
  20. 26 Jul, 2013 2 commits
    • Richard M. Stallman's avatar
      *** empty log message *** · ed02dcfa
      Richard M. Stallman authored
      ed02dcfa
    • 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
  21. 24 Jul, 2013 3 commits
  22. 23 Jul, 2013 1 commit
  23. 22 Jul, 2013 1 commit
  24. 19 Jul, 2013 1 commit
  25. 16 Jul, 2013 1 commit
    • Jan Djärv's avatar
      Stop cursor blink after blink-cursor-blinks (10), stop timers when not blinking. · 18c26d81
      Jan Djärv authored
      * etc/NEWS: Document blink-cursor-blinks and blink timers stopped.
      
      * lisp/frame.el (blink-cursor-blinks): New defcustom.
      (blink-cursor-blinks-done): New defvar.
      (blink-cursor-start): Set blink-cursor-blinks-done to 1.
      (blink-cursor-timer-function): Check if number of blinks has been
      done on X and NS.
      (blink-cursor-suspend, blink-cursor-check): New defuns.
      
      * src/frame.c (Fhandle_focus_in, Fhandle_focus_out): New functions.
      (Fhandle_switch_frame): Call Fhandle_focus_in.
      (syms_of_frame): defsubr handle-focus-in/out.
      
      * src/keyboard.c (Qfocus_in, Qfocus_out): New static objects.
      (make_lispy_focus_in, make_lispy_focus_out): Declare and define.
      (kbd_buffer_get_event): For FOCUS_IN, make a focus_in event if no
      switch frame event is made.  Check ! NILP (event->arg) if X11 (moved
      from xterm.c). Make focus_out event for FOCUS_OUT_EVENT if NS or X11
      and there is a focused frame.
      (head_table): Add focus-in and focus-out.
      (keys_of_keyboard): Add focus-in and focus-out to Vspecial_event_map,
      bind to handle-focus-in/out.
      
      * src/nsterm.m (windowDidResignKey): If this is the focused frame, generate
      FOCUS_OUT_EVENT.
      
      * src/termhooks.h (enum event_kind): Add FOCUS_OUT_EVENT.
      
      * src/xterm.c (x_focus_changed): Always generate FOCUS_IN_EVENT.
      Set event->arg to Qt if switch-event shall be generated.
      Generate FOCUS_OUT_EVENT for FocusOut if this is the focused frame.
      18c26d81
  26. 15 Jul, 2013 2 commits
    • Paul Eggert's avatar
      * shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x. · 0463c1ef
      Paul Eggert authored
      The hack didn't work outside English locales anyway.
      0463c1ef
    • Juanma Barranquero's avatar
      lisp/desktop.el (desktop-restore-frames): Change default to t. · b958c0ad
      Juanma Barranquero authored
      (desktop-restore-in-current-display): Now offer more options.
      (desktop-restoring-reuses-frames): New customization option.
      (desktop--saved-states): Doc fix.
      (desktop-filter-parameters-alist): New variable, renamed and expanded from
      desktop--excluded-frame-parameters.
      (desktop--target-display): New variable.
      (desktop-switch-to-gui-p, desktop-switch-to-tty-p, desktop--filter-tty*)
      (desktop--filter-*-color, desktop--filter-minibuffer)
      (desktop--filter-restore-desktop-parm, desktop--filter-save-desktop-parm)
      (desktop-restore-in-original-display-p): New functions.
      (desktop--filter-frame-parms): Use new desktop-filter-parameters-alist.
      (desktop--save-minibuffer-frames): New function, inspired by a similar
      function from Martin Rudalics.
      (desktop--save-frames): Call it; play nice with desktop-globals-to-save.
      (desktop--restore-in-this-display-p): Remove.
      (desktop--find-frame): Rename from desktop--find-frame-in-display and add
      predicate argument.
      (desktop--make-full-frame): Remove, integrated into desktop--make-frame.
      (desktop--reuse-list): New variable.
      (desktop--select-frame, desktop--make-frame, desktop--sort-states):
      New functions.
      (desktop--restore-frames): Add support for "minibuffer-special" frames.
      b958c0ad
  27. 13 Jul, 2013 2 commits