1. 22 Jul, 2014 2 commits
  2. 21 Jul, 2014 12 commits
  3. 20 Jul, 2014 5 commits
  4. 19 Jul, 2014 5 commits
    • Fabián Ezequiel Gallina's avatar
      Fix Python shell prompts detection for remote hosts. · eb8cb39e
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-prompt-detect): Replace
      call-process with process-file and make it more robust.
      eb8cb39e
    • Stefan Monnier's avatar
      a54493b0
    • Kenichi Handa's avatar
      2014-07-19 Kenichi Handa <handa@gnu.org> · bf0d3f76
      Kenichi Handa authored
      	* xfaces.c (realize_x_face): Call font_load_for_lface with no
      	mandatory font spec (Bug#17973).
      
      2014-07-19  Stefan Monnier  <monnier@iro.umontreal.ca>
      
      	* font.c (font_score): Return the worst score if the size of
      	ENTITY is wrong by more than a factor 2 (Bug#17973).
      bf0d3f76
    • Fabián Ezequiel Gallina's avatar
      Autodetect Python shell prompts. · d949ade3
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el:
      (python-shell-interpreter-interactive-arg)
      (python-shell-prompt-detect-enabled)
      (python-shell-prompt-detect-failure-warning)
      (python-shell-prompt-input-regexps)
      (python-shell-prompt-output-regexps): New vars.
      (python-shell-prompt-calculated-input-regexp)
      (python-shell-prompt-calculated-output-regexp): New vars.
      (python-shell-get-process-name)
      (python-shell-internal-get-process-name)
      (python-shell-output-filter)
      (python-shell-completion-get-completions): Use them.
      (python-shell-prompt-detect)
      (python-shell-prompt-validate-regexps): New functions.
      (python-shell-prompt-set-calculated-regexps): New function.
      (inferior-python-mode): Use it.  Also honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-make-comint): Honor overriden
      python-shell-interpreter and python-shell-interpreter-args.
      (python-shell-get-or-create-process): Make it testable by allowing
      to call run-python non-interactively.
      (python-util-valid-regexp-p): New function.
      (python-shell-prompt-regexp, python-shell-prompt-block-regexp)
      (python-shell-prompt-output-regexp)
      (python-shell-prompt-pdb-regexp): Use it as defcustom :safe.
      
      * test/automated/python-tests.el (python-shell-make-comint-1):
      (python-shell-make-comint-2): Fix indentation.
      (python-shell-make-comint-3)
      (python-shell-make-comint-4): New tests.
      (python-shell-get-or-create-process-1): Fix test.
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): New tests.
      (python-shell-internal-get-or-create-process-1): Fix test.
      (python-shell-prompt-detect-1): New test.
      (python-shell-prompt-detect-2): New test.  (Bug#17370)
      (python-shell-prompt-detect-3)
      (python-shell-prompt-detect-4)
      (python-shell-prompt-detect-5)
      (python-shell-prompt-detect-6)
      (python-shell-prompt-validate-regexps-1)
      (python-shell-prompt-validate-regexps-2)
      (python-shell-prompt-validate-regexps-3)
      (python-shell-prompt-validate-regexps-4)
      (python-shell-prompt-validate-regexps-5)
      (python-shell-prompt-validate-regexps-6)
      (python-shell-prompt-validate-regexps-7)
      (python-shell-prompt-set-calculated-regexps-1)
      (python-shell-prompt-set-calculated-regexps-2)
      (python-shell-prompt-set-calculated-regexps-3)
      (python-shell-prompt-set-calculated-regexps-4)
      (python-shell-prompt-set-calculated-regexps-5)
      (python-shell-prompt-set-calculated-regexps-6)
      (python-util-valid-regexp-p-1): New tests.
      d949ade3
    • Stefan Monnier's avatar
      * lisp/rect.el (rectangle--string-preview): Don't assume there · 31ca1841
      Stefan Monnier authored
      a non-nil default.
      
      Fixes: debbugs:17984
      31ca1841
  5. 18 Jul, 2014 3 commits
    • Dmitry Antipov's avatar
      Prefer 'x_display_info *' to 'Display *' in X selection code. · 1a5db9eb
      Dmitry Antipov authored
      This helps to avoid unneeded calls to x_display_info_for_display.
      * xterm.h (struct selection_input_event): Record 'x_display_info *'
      instead of 'Display *'.
      (SELECTION_EVENT_DPYINFO): New macro.
      (SELECTION_EVENT_DISPLAY): Now inline function to prohibit using
      it as an lvalue.  Mention this in comment.
      * xterm.c (handle_one_xevent): Use SELECTION_EVENT_DPYINFO.
      * xselect.c (x_get_window_property_as_lisp_data, x_atom_to_symbol)
      (selection_data_to_lisp_data, receive_incremental_selection):
      Convert to use 'x_display_info *'.  Adjust users where appropriate.
      (lisp_data_to_selection_data): Likewise.  Also pass 'struct
      selection data *' as last arg to not return values in args.
      (unexpect_property_change): Use common removal technique.
      1a5db9eb
    • Albert Krewinkel's avatar
      * lisp/gnus/gnus-msg.el (gnus-configure-posting-style): · 32a60830
      Albert Krewinkel authored
      Allow string replacements in values when matching against a header.
      
      * doc/misc/gnus.texi (Posting Styles): Document the possibility to
      perform string replacements when matching against headers.
      32a60830
    • Dmitry Antipov's avatar
      * frame.c (frame_unspecified_color): New function · 0e604077
      Dmitry Antipov authored
      refactored out from ...
      (Fframe_parameters, Fframe_parameter): ... adjusted users.
      (x_fullscreen_adjust, set_frame_param): Move Windows-specific
      function to ...
      * w32term.c (x_fullscreen_adjust, set_frame_param): ... static here.
      * frame.h (x_fullscreen_adjust) [HAVE_NTGUI]:
      * lisp.h (set_frame_param): Remove prototype.
      * xterm.c (x_display_pixel_width, x_display_pixel_height): Now ...
      * xterm.h (x_display_pixel_width, x_display_pixel_height): ...
      inlined from here.
      0e604077
  6. 17 Jul, 2014 7 commits
  7. 16 Jul, 2014 6 commits
    • Eli Zaretskii's avatar
      Fix bug #18036 with infloop in redisplay with huge fringes. · 56968aa6
      Eli Zaretskii authored
       src/xdisp.c (move_it_vertically_backward, move_it_by_lines): Prevent
       infinite looping in redisplay when display lines don't have enough
       space to display even a single character.
      56968aa6
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      * frame.h (enum fullscreen_type) [HAVE_WINDOW_SYSTEM]: Use more natural · 70f8097e
      Dmitry Antipov authored
      values.  Add comment.
      (struct frame): Re-arrange layout to avoid extra padding and use bit
      fields for output_method, want_fullscreen and vertical_scroll_bar_type.
      (FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS)
      (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT)
      (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT) [!HAVE_WINDOW_SYSTEM]:
      Define as no-ops because there are no scroll bars anyway.
      * frame.c (make_frame, make_terminal_frame, make_initial_frame):
      Adjust users.
      
      * font.c (fset_font_data) [HAVE_XFT || HAVE_FREETYPE]:
      Add convenient setter.
      (font_put_frame_data, font_get_frame_data): Use it.
      70f8097e
    • Dmitry Antipov's avatar
      More precise control over values of some buffer-local variables. · e0b07ec3
      Dmitry Antipov authored
      * keyboard.c (Qvertical_scroll_bar):
      * frame.c (Qleft, Qright): Move to ...
      * buffer.c (Qleft, Qright, Qvertical_scroll_bar): ... here.
      * buffer.c (Qchoice, Qrange, Qoverwrite_mode, Qfraction): New symbols.
      (syms_of_buffer): DEFSYM all of the above, attach special properties.
      Use special symbols to DEFVAR_PER_BUFFER overwrite-mode,
      vertical-scroll-bar, scroll-up-aggressively
      and scroll-down-aggressively.
      * buffer.h (Qchoice, Qrange, Qleft, Qright, Qvertical_scroll_bar):
      Add declarations.
      * nsfns.m, frame.h (Qleft, Qright):
      * nsterm.m (Qleft): Remove declarations.
      * gtkutil.c (toplevel): Include buffer.h.
      * data.c (wrong_choice, wrong_range): New functions.
      (store_symval_forwarding): Handle special properties of buffer-local
      variables and use functions from the above to signal error, if any.
      e0b07ec3
    • Daiki Ueno's avatar
      Revert 2014-07-16T04:11:08Z!ueno@gnu.org and fix XCHAR2B_BYTE[12] in nsgui.h only · 74660d84
      Daiki Ueno authored
      * nsgui.h (XCHAR2B_BYTE1): Add missing parentheses around
      pointer argument, before dereferencing.
      (XCHAR2B_BYTE2): Likewise.
      74660d84
    • Daiki Ueno's avatar