1. 25 Nov, 2013 2 commits
  2. 24 Nov, 2013 4 commits
  3. 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
  4. 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
  5. 20 Nov, 2013 1 commit
  6. 19 Nov, 2013 1 commit
  7. 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
  8. 11 Nov, 2013 2 commits
  9. 05 Nov, 2013 1 commit
  10. 04 Nov, 2013 3 commits
  11. 02 Nov, 2013 1 commit
  12. 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
  13. 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--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
  14. 27 Oct, 2013 1 commit
  15. 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-find-indent-of-matching-paren)
      (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.
      eb89dc14
  16. 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).
      71e3276b
    • Michael Albinus's avatar
      990b9f68
  17. 19 Oct, 2013 1 commit
  18. 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
  19. 16 Oct, 2013 2 commits
  20. 13 Oct, 2013 1 commit
  21. 08 Oct, 2013 1 commit
    • Teemu Likonen's avatar
      * indent.el: Provide interactive indent-rigidly mode. Use lexical-binding. · b7d5bd82
      Teemu Likonen authored
      (indent-rigidly--current-indentation): New function.
      (indent-rigidly-map): New var.
      (indent-rigidly): Use it to provide interactive mode.
      (indent-region): Add progress reporter.
      (tab-stop-list): Make it implicitly extend to infinity by repeating the
      last step.
      (indent--next-tab-stop): New function to implement this behavior.
      (tab-to-tab-stop, move-to-tab-stop): Use it.
      
      Fixes: debbugs:8196
      b7d5bd82
  22. 07 Oct, 2013 1 commit
  23. 05 Oct, 2013 1 commit
  24. 03 Oct, 2013 1 commit
  25. 02 Oct, 2013 3 commits
  26. 28 Sep, 2013 1 commit
  27. 26 Sep, 2013 1 commit