1. 20 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New · b520f210
      Dmitry Gutov authored
      option. 
      (ruby-smie--indent-to-stmt-p): Use it.
      (ruby-smie-rules): Revert the logic in the handling of `when'.
      Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
      (ruby-deep-arglist, ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style): Update docstrings to note that the
      vars don't have any effect with SMIE.
      
      * test/automated/ruby-mode-tests.el: Add tests for
      `ruby-align-to-stmt-keywords'.
      
      * test/indent/ruby.rb: Update examples to reflect the lack of change in
      default indentation of `begin' blocks.
      
      Fixes: debbugs:16182
      b520f210
  2. 19 Dec, 2013 2 commits
    • Juri Linkov's avatar
      * lisp/simple.el (eval-expression-print-format): Don't check for · b41594fd
      Juri Linkov authored
      command names and the last command.  Always display additional
      formats of the integer result in the echo area, and insert them
      to the current buffer only with a zero prefix arg.
      Display character when char-displayable-p is non-nil.
      (eval-expression): With a zero prefix arg, set `print-length' and
      `print-level' to nil, and insert the integer values from
      `eval-expression-print-format' at the end.  Doc fix. 
      
      * lisp/emacs-lisp/lisp-mode.el (eval-print-last-sexp): Add arg
      `eval-last-sexp-arg-internal'.  Doc fix.
      (eval-last-sexp-1): Pass arg `eval-last-sexp-arg-internal' to
      `eval-last-sexp-print-value'.  Doc fix.
      (eval-last-sexp-print-value): Add arg `eval-last-sexp-arg-internal'.
      Set `print-length' and `print-level' to nil when arg is zero.
      (eval-last-sexp): Doc fix.
      (eval-defun-2): Print the integer values from
      `eval-expression-print-format' at the end.
      
      * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print the integer
      values from `eval-expression-print-format' at the end.
      
      * lisp/ielm.el (ielm-eval-input): Print the integer
      values from `eval-expression-print-format' at the end.
      
      Fixes: debbugs:12985
      b41594fd
    • 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
  3. 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
  4. 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
  5. 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
  6. 12 Dec, 2013 1 commit
  7. 11 Dec, 2013 2 commits
  8. 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
  9. 07 Dec, 2013 1 commit
  10. 06 Dec, 2013 1 commit
  11. 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
  12. 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
  13. 29 Nov, 2013 3 commits
  14. 26 Nov, 2013 2 commits
  15. 25 Nov, 2013 2 commits
  16. 24 Nov, 2013 4 commits
  17. 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
  18. 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
  19. 20 Nov, 2013 1 commit
  20. 19 Nov, 2013 1 commit
  21. 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
  22. 11 Nov, 2013 2 commits
  23. 05 Nov, 2013 1 commit
  24. 04 Nov, 2013 3 commits