1. 19 Dec, 2013 1 commit
    • Juri Linkov's avatar
      query-replace backward · 3ee4cd64
      Juri Linkov authored
      * lisp/replace.el (query-replace-read-args): Split a non-negative arg
      and a negative arg into separate elements.
      (query-replace, query-replace-regexp, replace-string)
      (replace-regexp): Add arg `backward'.  Doc fix.
      (replace-match-maybe-edit): When new arg `backward' is non-nil,
      move point to the beginning of the match.
      (replace-search, replace-highlight): Use new arg `backward'
      to set the value of `isearch-forward'.
      (perform-replace): Add arg `backward' and use it to perform
      replacement backward. 
      
      * lisp/isearch.el (isearch-query-replace): Use a negative prefix arg
      to call `perform-replace' with a non-nil arg `backward'.
      
      Fixes: debbugs:14979
      3ee4cd64
  2. 18 Dec, 2013 1 commit
    • Glenn Morris's avatar
      Add load-prefer-newer option, to load .el if newer than .elc · 1f41ee56
      Glenn Morris authored
      * src/lread.c (Fload): Pass load_prefer_newer to openp.
      Don't bother checking mtime if openp already did it.
      (openp): Add `newer' argument, to check all suffixes
      and find the newest file.
      (syms_of_lread) <load_prefer_newer>: New option. 
      
      * src/callproc.c (call_process):
      * src/charset.c (load_charset_map_from_file):
      * src/emacs.c (init_cmdargs):
      * src/image.c (x_create_bitmap_from_file, x_find_image_file):
      * src/lisp.h (openp):
      * lread.c (Flocate_file_internal):
      * src/process.c (Fformat_network_address):
      * src/sound.c (Fplay_sound_internal):
      * src/w32.c (check_windows_init_file):
      * src/w32proc.c (sys_spawnve): Update for new arg spec of openp.
      
      * lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:2061
      1f41ee56
  3. 16 Dec, 2013 2 commits
    • Juri Linkov's avatar
      * lisp/desktop.el (desktop-auto-save-timeout): Change default to · 6c8e0ae6
      Juri Linkov authored
      `auto-save-timeout'.  Doc fix.
      (desktop-save): Skip the timestamp in desktop-saved-frameset
      when checking for auto-save changes.
      (desktop-auto-save): Don't call desktop-auto-save-set-timer since
      `desktop-auto-save' is called repeatedly by the idle timer.
      (desktop-auto-save-set-timer): Replace `run-with-timer' with
      `run-with-idle-timer' and a non-nil arg REPEAT.  Doc fix.
      
      Fixes: debbugs:15331
      6c8e0ae6
    • Stefan Monnier's avatar
      * lisp/emulation/cua-rect.el (cua-rectangle-mark-mode): New minor mode. · 2013a2f9
      Stefan Monnier authored
      (cua--deactivate-rectangle): Don't deactivate the mark.
      (cua-set-rectangle-mark): Don't set mark-active since
      cua--activate-rectangle already does it for us.
      (cua--rectangle-highlight-for-redisplay): Unhighlight a previous
      non-rectangular region.
      
      * lisp/emulation/cua-base.el (cua-repeat-replace-region):
      Use with-current-buffer.
      
      * lisp/net/gnutls.el: Use cl-lib.
      (gnutls-negotiate): `mapcan' -> cl-mapcan.
      2013a2f9
  4. 13 Dec, 2013 2 commits
    • David Engster's avatar
      fa5265fc
    • Glenn Morris's avatar
      Unconditionally reset load-path after dumping · 06a4f110
      Glenn Morris authored
      * src/lread.c: (dump_path): Remove.
      (load-path-default): Remove `changed' argument.
      Do not set dump_path permanently.  Simplify.
      (init_lread): Simplify.
      (syms_of_lread): Remove dump_path.
      
      * lisp/loadup.el (load-path): Warn if site-load or site-init changes it.
      No more need to reset it when bootstrapping.
      
      * doc/lispref/internals.texi (Building Emacs):
      * doc/lispref/loading.texi (Library Search): Mention that site-load,
      site-init cannot change load-path.
      
      * INSTALL: No longer mention load-path and site-init/site-load.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:16107
      06a4f110
  5. 12 Dec, 2013 1 commit
  6. 11 Dec, 2013 2 commits
  7. 08 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      Port indentation code from js2-mode to js-mode · 47e59c66
      Dmitry Gutov authored
      * lisp/progmodes/js.el (js-auto-indent-flag): Remove, was unused.
      (js-switch-indent-offset): New option.
      (js--proper-indentation): Use it.  And handle the case when
      "default" is actually a key in an object literal.
      (js--same-line): New function.
      (js--multi-line-declaration-indentation): Use it.
      (js--indent-in-array-comp, js--array-comp-indentation): New
      functions.
      (js--proper-indentation): Use them, to handle array comprehension
      continuations.
      47e59c66
  8. 07 Dec, 2013 1 commit
  9. 06 Dec, 2013 1 commit
  10. 03 Dec, 2013 1 commit
    • Juri Linkov's avatar
      * lisp/window.el (display-buffer-no-window): New action function. · 9139632a
      Juri Linkov authored
      (display-buffer-alist, display-buffer): Doc fix.  (Bug#13594)
      
      * lisp/simple.el (shell-command): Add window alist entry `allow-no-window'
      to `display-buffer'.
      (async-shell-command): Doc fix.
      
      * lisp/progmodes/compile.el (compilation-start): Rename window alist
      entry `no-display-ok' to `allow-no-window'.
      
      * doc/lispref/windows.texi (Choosing Window): Rename `no-display-ok' to
      `allow-no-window'.
      9139632a
  11. 02 Dec, 2013 1 commit
    • Helmut Eller's avatar
      * lisp/emacs-lisp/debug.el (debugger-toggle-locals): New command. · f345395c
      Helmut Eller authored
      (debugger-mode-map): Bind it.
      (debugger--backtrace-base): New function.
      (debugger-eval-expression): Use it.
      (debugger-frame-number): Skip local vars when present.
      (debugger--locals-visible-p, debugger--insert-locals)
      (debugger--show-locals, debugger--hide-locals): New functions.
      * src/eval.c (Fbacktrace__locals): New function.
      (syms_of_eval): Defsubr it.
      f345395c
  12. 29 Nov, 2013 3 commits
  13. 26 Nov, 2013 2 commits
  14. 25 Nov, 2013 2 commits
  15. 24 Nov, 2013 4 commits
  16. 23 Nov, 2013 2 commits
    • Brian Jenkins's avatar
      Documentation for focus-in,out hooks (tiny change) · f6083c67
      Brian Jenkins authored
      * doc/lispref/frames.texi (Input Focus):
      * doc/lispref/hooks.texi (Standard Hooks):
      Mention focus-in-hook, focus-out-hook.
      
      * etc/NEWS: Copyedit.
      f6083c67
    • Glenn Morris's avatar
      Empty elements in EMACSLOADPATH now stand for the default · 17e0445b
      Glenn Morris authored
      * src/lread.c (load_path_check): Take path to check as argument.
      (load_path_default): New, split from init_lread.
      (init_lread): Move calc of default load-path to load_path_default.
      Empty elements in EMACSLOADPATH now stand for the default.
      (load-path): Doc fix.
      
      * src/emacs.c (decode_env_path): Add option to treat empty elements
      as nil rather than ".".
      
      * src/callproc.c (init_callproc_1, init_callproc):
      * src/image.c (Vx_bitmap_file_path):
      * src/lisp.h (decode_env_path):
      * lread.c (Vsource_directory):
      Update for new argument spec of decode_env_path.
      
      * leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting.
      
      * lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting.
      
      * test/automated/Makefile.in (emacs):
      Empty EMACSLOADPATH rather than unsetting.
      
      * doc/emacs/cmdargs.texi (General Variables):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      
      * doc/lispref/loading.texi (Library Search):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:12100
      17e0445b
  17. 21 Nov, 2013 1 commit
    • Glenn Morris's avatar
      Use path-separator with -L, rather than just : · 2df10228
      Glenn Morris authored
      * lisp/startup.el (command-line-1): Use path-separator with -L.
      
      * test/automated/Makefile.in (PATH_SEPARATOR): New, set by configure.
      (EMACSOPT): Use PATH_SEPARATOR.
      
      * doc/emacs/cmdargs.texi (Action Arguments): Use path-separator with -L.
      
      * etc/NEWS: Related edit.
      2df10228
  18. 20 Nov, 2013 1 commit
  19. 19 Nov, 2013 1 commit
  20. 18 Nov, 2013 2 commits
    • Paul Eggert's avatar
      Improve API of recently-added bool vector functions. · ec2c4ee6
      Paul Eggert authored
      The old API had (bool-vector-count-matches A B)
      and (bool-vector-count-matches-at A B I), which gave the
      misleading impression that the two functions were variants, one
      with a location I.  The new API has (bool-vector-count-population A)
      and (bool-vector-count-consecutive A B I) to make the distinction
      clearer.  The first function no longer has a B argument, since the
      caller can easily determine the number of nils if the length and
      number of ts is known.
      * src/data.c (Fbool_vector_count_population): Rename from
      bool_vector_count_matches, and accept just 1 argument.
      (Fbool_vector_count_consecutive): Rename from
      Fbool_vector_count_matches_at.
      * test/automated/data-tests.el: Adjust to API changes.
      
      Fixes: debbugs:15912
      ec2c4ee6
    • Leo Liu's avatar
      * NEWS: Mention new features for Octave mode. · f2cbfd44
      Leo Liu authored
      f2cbfd44
  21. 11 Nov, 2013 2 commits
  22. 05 Nov, 2013 1 commit
  23. 04 Nov, 2013 3 commits
  24. 02 Nov, 2013 1 commit
  25. 01 Nov, 2013 1 commit
    • Jan Djärv's avatar
      Add :distant-foreground to faces. · 3c334c14
      Jan Djärv authored
      * doc/lispref/display.texi (Face Attributes): Document :distant-foreground.
      
      * etc/NEWS: Mention :distant-foreground.
      
      * lisp/faces.el (face-x-resources): Add :distant-foreground.
      (region): Use :distant-foreground for gtk and ns.
      
      * src/dispextern.h (lface_attribute_index): Add
      LFACE_DISTANT_FOREGROUND_INDEX.
      
      * src/xfaces.c: Declare color_distance.
      (QCdistant_foreground): New variable.
      (NEAR_SAME_COLOR_THRESHOLD): New define.
      (load_color2): New function.
      (load_color): Call load_color2.
      (load_face_colors): Call load_color2 and if distant-color is specified
      calculate distant and use distant-color if colors are near.
      (LFACE_DISTANT_FOREGROUND): New define.
      (merge_face_ref, Finternal_set_lisp_face_attribute)
      (Finternal_get_lisp_face_attribute)
      (x_supports_face_attributes_p): Handle distant-foreground similar to
      foreground.
      (syms_of_xfaces): DEFSYM QCdistant_foreground.
      3c334c14