1. 11 Dec, 2013 1 commit
  2. 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
      (js--proper-indentation): Use them, to handle array comprehension
  3. 06 Dec, 2013 1 commit
  4. 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
  5. 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.
  6. 29 Nov, 2013 3 commits
  7. 26 Nov, 2013 2 commits
  8. 25 Nov, 2013 2 commits
  9. 24 Nov, 2013 4 commits
  10. 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.
    • 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
  11. 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.
      * doc/emacs/cmdargs.texi (Action Arguments): Use path-separator with -L.
      * etc/NEWS: Related edit.
  12. 20 Nov, 2013 1 commit
  13. 19 Nov, 2013 1 commit
  14. 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
      * test/automated/data-tests.el: Adjust to API changes.
      Fixes: debbugs:15912
    • Leo Liu's avatar
      * NEWS: Mention new features for Octave mode. · f2cbfd44
      Leo Liu authored
  15. 11 Nov, 2013 2 commits
  16. 05 Nov, 2013 1 commit
  17. 04 Nov, 2013 3 commits
  18. 02 Nov, 2013 1 commit
  19. 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
      * 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.
      (merge_face_ref, Finternal_set_lisp_face_attribute)
      (x_supports_face_attributes_p): Handle distant-foreground similar to
      (syms_of_xfaces): DEFSYM QCdistant_foreground.
  20. 29 Oct, 2013 1 commit
    • 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--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-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.
  21. 27 Oct, 2013 1 commit
  22. 25 Oct, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/prolog.el: Remove old indent; use post-self-insert-hook. · eb89dc14
      Stefan Monnier authored
      (prolog-align-comments-flag, prolog-indent-mline-comments-flag)
      (prolog-object-end-to-0-flag, prolog-electric-newline-flag)
      (prolog-electric-tab-flag, prolog-use-prolog-tokenizer-flag):
      Remove vars, they do not apply any more.
      (prolog-mode-abbrev-table): Remove redundant declaration.
      (prolog-upper-case-string, prolog-lower-case-string): Remove.
      (prolog-use-smie): Remove.
      (prolog-smie-rules): Add indentation rule for the if-then-else layout
      supported by prolog-electric-if-then-else-flag.
      (prolog-mode-variables, prolog-menu): Use setq-local.
      (prolog-mode-keybindings-edit): Don't rebind M-C-p and M-C-n.
      Remove binding to `Backspace' since this key doesn't exist anyway.
      Remove bindings for electric self-inserting keys.
      (prog-mode): Assume it's defined.
      (prolog-post-self-insert): New function.
      (prolog-mode): Use it.
      (prolog-indent-line, prolog-indent-level)
      (prolog-indentation-level-of-line, prolog-goto-comment-column)
      (prolog-paren-is-the-first-on-line-p, prolog-region-paren-balance)
      (prolog-goto-next-paren, prolog-in-string-or-comment)
      (prolog-tokenize, prolog-inside-mline-comment)
      (prolog-find-start-of-mline-comment): Remove functions.
      (prolog-find-unmatched-paren, prolog-clause-end)
      (prolog-guess-fill-prefix, prolog-get-predspec): Use syntax-ppss.
      (prolog-electric--if-then-else): Rename from
      prolog-insert-spaces-after-paren; use prolog-electric-if-then-else-flag.
      (prolog-tokenize-searchkey): Remove const.
      (prolog-clause-info): Use forward-sexp.
      (prolog-forward-list, prolog-backward-list, prolog-electric-delete)
      (prolog-electric-if-then-else): Remove commands.
      (prolog-electric--colon): Rename from prolog-electric-colon; adapt it
      for use in post-self-insert-hook.
      (prolog-electric--dash): Rename from prolog-electric-dash; adapt it
      for use in post-self-insert-hook.
      (prolog-electric--dot): Rename from prolog-electric-dot; adapt it
      for use in post-self-insert-hook.
      (prolog-electric--underscore): Rename from prolog-electric--underscore;
      adapt it for use in post-self-insert-hook.
  23. 24 Oct, 2013 2 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/smie.el: New smie-config system. · 71e3276b
      Stefan Monnier authored
      (smie-config): New defcustom.
      (smie-edebug, smie-config-show-indent, smie-config-set-indent)
      (smie-config-guess, smie-config-save): New commands.
      (smie-config--mode-local, smie-config--buffer-local)
      (smie-config--trace, smie-config--modefuns): New vars.
      (smie-config--advice, smie-config--mode-hook)
      (smie-config--setter, smie-config-local, smie-config--get-trace)
      (smie-config--guess-value, smie-config--guess): New functions.
      (smie-indent-forward-token, smie-indent-backward-token): Don't copy
      text properties.  Treat "string fence" syntax like string syntax.
      * lisp/progmodes/sh-script.el (sh-use-smie): Change default.
      (sh-smie-sh-rules, sh-smie-rc-rules): Obey legacy sh-indent-* vars.
      (sh-var-value): Simplify by CSE.
      (sh-show-indent, sh-set-indent, sh-learn-line-indent)
      (sh-learn-buffer-indent): Redirect to their SMIE equivalent when SMIE
      is used.
      (sh-guess-basic-offset): Use cl-incf.
      (sh-guess-basic-offset): Use push+nreverse to avoid O(n^2).
    • Michael Albinus's avatar
  24. 19 Oct, 2013 1 commit
  25. 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
      * 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
  26. 16 Oct, 2013 2 commits