1. 19 Aug, 2012 1 commit
  2. 18 Aug, 2012 1 commit
    • Chong Yidong's avatar
      Add yank-handled-properties; use it for `font-lock-face' and `category' · 2170b1bd
      Chong Yidong authored
      properties, instead of hard-coding these properties' special handling.
      * lisp/simple.el (yank-handled-properties): New defcustom.
      (yank-excluded-properties): Add font-lock-face and category.
      (yank): Doc fix.
      * lisp/subr.el (remove-yank-excluded-properties): Obey
      yank-handled-properties.  The special handling of font-lock-face
      and category is now done this way, instead of being hard-coded.
      (insert-for-yank-1): Remove font-lock-face handling.
      (yank-handle-category-property): New function.
  3. 17 Aug, 2012 4 commits
  4. 16 Aug, 2012 3 commits
    • Martin Rudalics's avatar
      In window.el tell whether functions operate on valid, live or any windows. · 85c2386b
      Martin Rudalics authored
      * window.el (window-child, window-child-count, window-last-child)
      (window-normalize-window, window-combined-p)
      (window-combinations, window-atom-root, window-min-size)
      (window-sizable, window-sizable-p, window-size-fixed-p)
      (window-min-delta, window-max-delta, window--resizable)
      (window--resizable-p, window-resizable, window-total-size)
      (window-full-height-p, window-full-width-p, window-body-size)
      (window-at-side-p, adjust-window-trailing-edge, maximize-window)
      (minimize-window, window-deletable-p, delete-window)
      (delete-other-windows, set-window-buffer-start-and-point)
      (next-buffer, previous-buffer, split-window, balance-windows-2)
      (set-window-text-height, window-buffer-height)
      (fit-window-to-buffer, shrink-window-if-larger-than-buffer)
      (truncated-partial-width-window-p): Minor code adjustments.  In
      doc-strings state whether the argument window has to denote a
      live, valid or any window.
    • Martin Rudalics's avatar
      Consistently check windows for validity/liveness (Bug#11984, Bug#12025, Bug#12026). · 52162052
      Martin Rudalics authored
      * lisp.h (CHECK_VALID_WINDOW): New macro.
      * window.c (decode_window): Rename to decode_live_window.
      (decode_valid_window, Fwindow_valid_p): New functions.
      (Fwindow_frame, Fframe_root_window, Fwindow_minibuffer_p)
      (Fframe_first_window, Fframe_selected_window, Fwindow_parent)
      (Fwindow_top_child, Fwindow_left_child, Fwindow_next_sibling)
      (Fwindow_prev_sibling, Fwindow_combination_limit)
      (Fset_window_combination_limit, Fwindow_use_time)
      (Fwindow_total_height, Fwindow_total_width, Fwindow_new_total)
      (Fwindow_normal_size, Fwindow_new_normal, Fwindow_left_column)
      (Fwindow_top_line, Fwindow_body_height, Fwindow_body_width)
      (Fwindow_hscroll, Fset_window_hscroll)
      (Fset_window_redisplay_end_trigger, Fwindow_edges)
      (Fwindow_pixel_edges, Fwindow_absolute_pixel_edges)
      (Fwindow_inside_edges, Fwindow_inside_pixel_edges)
      (Fcoordinates_in_window_p, Fwindow_point, Fwindow_start)
      (Fwindow_end, Fset_window_point, Fset_window_start)
      (Fpos_visible_in_window_p, Fwindow_line_height)
      (Fwindow_dedicated_p, Fset_window_dedicated_p)
      (Fwindow_prev_buffers, Fset_window_prev_buffers)
      (Fwindow_next_buffers, Fwindow_parameters, Fwindow_parameter)
      (Fset_window_parameter, Fwindow_display_table)
      (Fset_window_display_table, Fdelete_other_windows_internal)
      (Fset_window_buffer, Fset_window_new_total)
      (Fset_window_new_normal, Fdelete_window_internal)
      (Fwindow_text_height, Fset_window_margins, Fwindow_margins)
      (Fset_window_fringes, Fwindow_fringes, Fset_window_scroll_bars)
      (Fwindow_scroll_bars): Check whether argument window is a valid or
      live window.  Update doc-strings.
      (syms_of_window): New symbol Qwindow_valid_p.
      * keyboard.c (Fposn_at_x_y): Check whether argument
      frame_or_window denotes a valid window.
      * window.el (window-valid-p): Move to window.c.
    • Phil Sainty's avatar
      Make subword.el easier to customize (tiny change) · 1c308380
      Phil Sainty authored
      * lisp/progmodes/subword.el (subword-forward-function)
      (subword-backward-function, subword-forward-regexp, subword-backward-regexp):
      New variables.
      (subword-forward, subword-forward-internal, subword-backward-internal):
      Use new variables, eg so that different "word" definitions can be easily used.
      Fixes: debbugs:11411
  5. 15 Aug, 2012 5 commits
    • Stefan Monnier's avatar
      * lisp/vc/vc-mtn.el (vc-mtn-revision-completion-table): Handle completion · 94c9ece1
      Stefan Monnier authored
      for composite selectors.
      * lisp/vc/vc.el (vc-diff-build-argument-list-internal): Don't prevent
      operation just because we can't find a previous revision.
    • Chong Yidong's avatar
      Extract better font information from the GTK >= 3.2 font chooser. · f2045622
      Chong Yidong authored
      * gtkutil.c (xg_get_font): Rename from xg_get_font_name.  When
      using the new font chooser, use gtk_font_chooser_get_font_desc to
      extract the font descriptor instead of just the font name.  In
      that case, return a font spec instead of a string.
      (x_last_font_name): Move to this file from xfns.c.
      * xfns.c (Fx_select_font): The return value can also be a font
      spec.  Move x_last_font_name management to gtkutil.c.
      * xfaces.c: Make font weight and style symbols non-static.
      * lisp/frame.el (set-frame-font): Accept font objects.
    • Stefan Monnier's avatar
      * lisp/textmodes/tex-mode.el (tex-insert-quote): ~ is a space. · 582db660
      Stefan Monnier authored
      Fixes: debbugs:12137
    • Wolfgang Jenkner's avatar
      * lisp/man.el (Man-overstrike-face, Man-underline-face) · 456e62c2
      Wolfgang Jenkner authored
      (Man-reverse-face): Remove variables.
      (Man-overstrike, Man-underline, Man-reverse): New faces.
      (Man-fontify-manpage): Use them instead of the variables.
      (Man-cleanup-manpage): Comment change.
      (Man-ansi-color-map): New variable.
      (Man-fontify-manpage): Use it.
      Call ansi-color-apply-on-region to replace ad hoc code.
      Fixes: debbugs:12147
    • Wolfgang Jenkner's avatar
      Implement ANSI SGR parameters 22-27. · 2f29c200
      Wolfgang Jenkner authored
      * lisp/ansi-color.el (ansi-colors): Doc fix.
      (ansi-color-context, ansi-color-context-region): Doc fix.
      (ansi-color--find-face): New function.
      (ansi-color-apply, ansi-color-apply-on-region): Use it.
      Rename the local variable `face' to `codes' since it is now a list of
      ansi codes.  Doc fix.
      (ansi-color-get-face): Remove.
      (ansi-color-parse-sequence): New function, derived from
      (ansi-color-apply-sequence): Use it.  Rewrite, and support ansi
      codes 22-27.
      Fixes: debbugs:12146
  6. 14 Aug, 2012 14 commits
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      Fix and improve GUD Tooltip mode. · ba025fbd
      Eli Zaretskii authored
       lisp/tooltip.el (tooltip-identifier-from-point): Don't treat tokens
       inside comments and strings as identifiers.
       lisp/progmodes/gud.el (gud-tooltip-print-command): Quote the
       expression to evaluate.  This allows to evaluate expressions with
       embedded whitespace.
       (gud-tooltip-tips): Add a blank before the newline in the
       message-box text, for the benefit of message-box emulation on
       lisp/progmodes/gdb-mi.el (gdb-tooltip-print): Don't ignore error
       messages from GDB, pop them up in a tooltip to give feedback to
       (gdb-tooltip-print-1): Quote the expression to evaluate.  This
       allows to evaluate expressions with embedded whitespace.
       (gdb-inferior-io--init-proc): Don't send "-inferior-tty" command
       if the TTY name is nil or empty (which happens when communicating
       with the inferior via pipes, e.g. on MS-Windows).
       (gdb-internals): If GDB sends a "&\n" empty debugging message,
       don't send that to the GUD buffer.
       doc/emacs/building.texi (Debugger Operation): Correct and improve
       documentation of the GUD Tooltip mode.
    • Glenn Morris's avatar
      byte-compile-setq-default fix for bug#12195 · c548f821
      Glenn Morris authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-setq-default):
      Optimize away setq-default with no args, as is done for setq.
    • Chong Yidong's avatar
      More doc fixes. · 4abcdac8
      Chong Yidong authored
      * lisp/minibuffer.el (read-file-name): Doc fix.
      * character.c (Fcharacterp): Doc fix (Bug#12076).
      * data.c (Findirect_variable): Doc fix (Bug#11040).
      * editfns.c (Fsave_current_buffer): Doc fix (Bug#11542).
      Fixes: debbugs:11542 debbugs:11040 debbugs:12076 debbugs:10881
    • Chong Yidong's avatar
      Doc fixes. · 55802e4a
      Chong Yidong authored
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Doc fix.
      * src/chartab.c (Fmap_char_table): Doc fix.
      * src/editfns.c (Fformat): Doc fix.
      Fixes: debbugs:12059 debbugs:12085 debbugs:12061
    • Glenn Morris's avatar
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-open-shell): Cache the shell name. · e1873bd0
      Michael Albinus authored
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      Use cached shell name.
    • Fabián Ezequiel Gallina's avatar
      * progmodes/python.el (python-shell-send-string): · 925411b4
      Fabián Ezequiel Gallina authored
      (python-shell-send-setup-code): Do not use `format' with
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-methods-before-regexp): New const. · f063063a
      Dmitry Gutov authored
      (ruby-syntax-propertize-function): Use it to recognize regexps.
      Don't look at the text after regexp, just use the whitelist.
      * test/indent/ruby.rb: Rearrange examples, add new ones.
      Fixes: debbugs:6286
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el: Improve percent literals. · e636fafe
      Dmitry Gutov authored
      (ruby-percent-literal-beg-re): New constant.
      (ruby-syntax-general-delimiters-goto-beg): Rename to
      `ruby-syntax-enclosing-percent-literal', improve literal type check.
      (ruby-syntax-propertize-general-delimiters): Rename to
      `ruby-syntax-propertize-percent-literal', it's a shorter and more
      popular term.  Adjust comments everywhere.
      (ruby-syntax-propertize-percent-literal): Only propertize when not
      inside a simple string or comment.  When the literal is unclosed,
      leave the text after it unpropertized.
      Fixes: debbugs:6286
    • Andreas Schwab's avatar
      Fixes: debbugs:12197 · e5b19827
      Andreas Schwab authored
      * emacs-lisp/bytecomp.el (byte-recompile-file): When LOAD is
      non-nil always load the compiled file if it exists.
    • Chong Yidong's avatar
      Fix highlight-regexp's use of Font Lock mode. · a9f6f311
      Chong Yidong authored
      * hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock.
      (hi-lock-set-pattern): When deciding whether to use font lock or
      overlays, look at font-lock-mode instead of font-lock-fontified.
      (hi-lock-mode, hi-lock-line-face-buffer, hi-lock-unface-buffer)
      (hi-lock-face-buffer, hi-lock-face-phrase-buffer): Doc fix.
      Fixes: debbugs:12168
    • Daiki Ueno's avatar
      * subr.el (internal--after-with-selected-window): Fix typo. · 7d806b1e
      Daiki Ueno authored
      Fixes: debbugs:12193
    • Fabián Ezequiel Gallina's avatar
      Use `completion-table-dynamic' for completion functions. · 5beed586
      Fabián Ezequiel Gallina authored
      * progmodes/python.el
      (python-shell-completion--get-completions): Remove
      (python-shell-completion-complete-at-point): New function.
      (python-completion-complete-at-point): Use it.
  7. 13 Aug, 2012 8 commits
  8. 12 Aug, 2012 4 commits
    • Stefan Monnier's avatar
      * lisp/subr.el (internal--before-with-seleted-window) · 1439443b
      Stefan Monnier authored
      (internal--after-with-seleted-window): New functions.
      (with-selected-window): Use them, to replace dependency on tty-top-frame.
    • Nobuyoshi Nakada's avatar
      Merge from upstream ruby-mode.el · 0d9e2599
      Nobuyoshi Nakada authored
      * lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary
      binding for `newline'.
      (ruby-move-to-block): When moving backward, stop at block opening,
      not indentation.
      * progmodes/ruby-mode.el (ruby-brace-to-do-end)
      (ruby-do-end-to-brace, ruby-toggle-block): New functions.
      * progmodes/ruby-mode.el (ruby-mode-map): Add binding for
      * test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening)
      (ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.
    • Stefan Monnier's avatar
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): · ba10c48c
      Stefan Monnier authored
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only):
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.
    • Andreas Schwab's avatar
      * descr-text.el (describe-char): Put the overlays over the · 9229c658
      Andreas Schwab authored
      "displayed as" character.