1. 09 Sep, 2013 4 commits
    • Dmitry Antipov's avatar
      Cleanup frame flushing. · fd462129
      Dmitry Antipov authored
      * dispextern.h (struct redisplay_interface): Drop
      flush_display_optional because flush_display is enough
      for X and flushing via RIF is just a no-op for others.
      * frame.h (flush_frame): New function.
      * dispnew.c (update_frame):
      * minibuf.c (read_minibuf):
      * xdisp.c (echo_area_display, redisplay_preserve_echo_area):
      Use it.
      * keyboard.c (detect_input_pending_run_timers): Do not flush
      all frames but selected one in redisplay_preserve_echo_area.
      * nsterm.m (ns_flush): Remove no-op.
      (ns_redisplay_interface): Adjust user.
      * w32term.h (x_flush): Remove no-op.
      (w32_redisplay_interface): Adjust user.
      * xterm.c (x_flush): Simplify because we do not flush all
      frames at once any more.  Adjust comment.
      (x_redisplay_interface): Adjust user.
      fd462129
    • Glenn Morris's avatar
      Auto-commit of generated files. · 992ec28a
      Glenn Morris authored
      992ec28a
    • Glenn Morris's avatar
      Fix treatment of ld's nocombreloc option · 8d17ef8d
      Glenn Morris authored
      * configure.ac (LDFLAGS_NOCOMBRELOC): New variable.
      (LDFLAGS): Move nocombreloc option from here...
      (LD_SWITCH_SYSTEM_TEMACS): ... to here.
      This is an essential option that should not be in LDFLAGS,
      because the user may override that at build time; eg
      http://bugs.debian.org/684788.  temacs is the only thing
      that actually needs this option; this is where it was orginally:
      http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-03/msg00170.html
      8d17ef8d
    • Glenn Morris's avatar
      * configure.ac: Tweak previous change. · 66f3731f
      Glenn Morris authored
      Only disable GZIP_PROG if there is something to disable.
      66f3731f
  2. 08 Sep, 2013 7 commits
    • Glenn Morris's avatar
      Rename configure's --without-compress-info to --without-compress-install · 335142f9
      Glenn Morris authored
      * configure.ac (--without-compress-install):
      Rename from --without-compress-info. 
      
      (GZIP_INFO): Remove.
      (GZIP_PROG): Allow --without-compress-install to disable it.
      * Makefile.in (GZIP_INFO): Remove all references.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:9789
      335142f9
    • Glenn Morris's avatar
      * doc/misc/emacs-gnutls.texi: Tweak direntry. · 7dc61a66
      Glenn Morris authored
      * info/dir: Tweak emacs-gnutls entry.
      7dc61a66
    • Glenn Morris's avatar
      * lisp/saveplace.el (load-save-place-alist-from-file): Demote errors. · 144e38fe
      Glenn Morris authored
      Fixes: debbugs:15305
      144e38fe
    • Stefan Monnier's avatar
      * doc/lispref/macros.texi (Defining Macros): Prefer "function" to "lambda · eb31a86c
      Stefan Monnier authored
      expression".
      
      Fixes: debbugs:15296
      eb31a86c
    • Michael Albinus's avatar
      Improve compatibility with older Emacsen, and XEmacs. · af9ff9e8
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
      only if it is bound.  It isn't for XEmacs.
      (with-tramp-progress-reporter): Do not let-bind `result'.  This
      yields to scoping errors in XEmacs.
      (tramp-handle-make-auto-save-file-name): New function, moved from
      tramp-sh.el.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-adb--gnu-switches-to-ash): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-cache.el (tramp-cache-print): Call
      `substring-no-properties' only if it is bound.  It isn't for XEmacs.
      
      * net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is
      bound.  It isn't for XEmacs.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Catch
      `wrong-number-of-arguments' error.
      (tramp-compat-replace-regexp-in-string): New defun.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
      `copy-file'.
      (tramp-gvfs-file-gvfs-monitor-file-process-filter)
      (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
      (tramp-synce-list-devices): Use `push' instead of `pushnew'.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Call
      `tramp-handle-make-auto-save-file-name'.
      (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter): Use
      `tramp-compat-replace-regexp-in-string'.
      (tramp-compute-multi-hops): Use `push' instead of `pushnew'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-smb-handle-copy-directory): Call
      `tramp-compat-replace-regexp-in-string'.
      (tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
      (tramp-smb-handle-copy-file): Improve error message.
      (tramp-smb-handle-rename-file): Rename directly only in case
      `newname' does not exist yet.  This is a restriction of smbclient.
      (tramp-smb-maybe-open-connection): Rerun the function only when
      `auth-sources' is non-nil.
      af9ff9e8
    • Kenichi Handa's avatar
      merge trunk · 3aff2f57
      Kenichi Handa authored
      3aff2f57
    • Kenichi Handa's avatar
  3. 07 Sep, 2013 6 commits
  4. 06 Sep, 2013 15 commits
    • Stefan Monnier's avatar
      * lisp/minibuffer.el: Make minibuffer-complete call completion-in-region · 67982e2b
      Stefan Monnier authored
      rather than other way around.
      (completion--some, completion-pcm--find-all-completions):
      Don't delay signals when debugging.
      (minibuffer-completion-contents): Beware fields within the
      minibuffer contents.
      (completion-all-sorted-completions): Use defvar-local.
      (completion--do-completion, completion--cache-all-sorted-completions)
      (completion-all-sorted-completions, minibuffer-force-complete):
      Add args `beg' and `end'.
      (completion--in-region-1): New fun, extracted from minibuffer-complete.
      (minibuffer-complete): Use completion-in-region.
      (completion-complete-and-exit): New fun, extracted from
      minibuffer-complete-and-exit.
      (minibuffer-complete-and-exit): Use it.
      (completion--complete-and-exit): Rename from
      minibuffer--complete-and-exit.
      (completion-in-region--single-word): New function, extracted from
      minibuffer-complete-word.
      (minibuffer-complete-word): Use it.
      (display-completion-list): Make `common-substring' argument obsolete.
      (completion--in-region): Call completion--in-region-1 instead of
      minibuffer-complete.
      (completion-help-at-point): Pass boundaries to
      minibuffer-completion-help as args rather than via an overlay.
      (completion-pcm--string->pattern): Use `any-delim'.
      (completion-pcm--optimize-pattern): New function.
      (completion-pcm--pattern->regex): Handle `any-delim'.
      * lisp/icomplete.el (icomplete-forward-completions)
      (icomplete-backward-completions, icomplete-completions):
      Adjust calls to completion-all-sorted-completions and
      completion--cache-all-sorted-completions.
      (icomplete-with-completion-tables): Default to t.
      * lisp/emacs-lisp/crm.el (crm--current-element): Rename from
      crm--select-current-element.  Don't put an overlay but return the
      boundaries instead.
      (crm--completion-command): Take two new args to bind to the boundaries.
      (crm-completion-help): Adjust accordingly.
      (crm-complete): Use completion-in-region.
      (crm-complete-word): Use completion-in-region--single-word.
      (crm-complete-and-exit): Use completion-complete-and-exit.
      67982e2b
    • Stefan Monnier's avatar
      * lisp/dired-x.el (dired-mark-sexp): Bind the vars lexically rather · e17d94a5
      Stefan Monnier authored
      than dynamically.
      e17d94a5
    • Juri Linkov's avatar
      * lisp/info.el (Info-display-images-node): When image file doesn't exist · 96727100
      Juri Linkov authored
      display text version of the image if it's provided in the Info file.
      Otherwise, display the location of missing image from SRC attribute.
      Add help-echo text property from ALT attribute.
      
      Fixes: debbugs:15279
      96727100
    • Dmitry Antipov's avatar
      * lisp.h (last_glyphless_glyph_frame, last_glyphless_glyph_face_id) · 77394d40
      Dmitry Antipov authored
      (last_glyphless_glyph_merged_face_id): Remove declarations.
      * dispextern.h (merge_glyphless_glyph_face): Add prototype.
      * xdisp.c (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
      (last_glyphless_glyph_merged_face_id): Now static.
      (merge_escape_glyph_face): New function, refactored from...
      (get_next_display_element): ...here.
      (merge_glyphless_glyph_face): New function, refactored from...
      (produce_glyphless_glyph): ...here...
      * term.c (produce_glyphless_glyph): ...and here.
      77394d40
    • Stefan Monnier's avatar
      * lisp/abbrev.el (edit-abbrevs-mode): Use define-derived-mode. · 86cf7329
      Stefan Monnier authored
      (edit-abbrevs-mode-map): Rename from edit-abbrevs-map.
      
      * lisp/epa.el (epa--encode-coding-string, epa--decode-coding-string)
      (epa--select-safe-coding-system, epa--derived-mode-p): Make it obvious
      that it's defined.
      (epa-key-list-mode, epa-key-mode, epa-info-mode):
      Use define-derived-mode.
      
      * lisp/epg.el (epg-start-encrypt): Minor CSE simplification.
      86cf7329
    • William Xu's avatar
      * lisp/arc-mode.el: Add support for 7za. · 816244a2
      William Xu authored
      (archive-7z-program): New var.
      (archive-zip-extract, archive-zip-expunge, archive-zip-update)
      (archive-zip-update-case, archive-7z-extract, archive-7z-expunge)
      (archive-7z-update, archive-zip-extract, archive-7z-summarize): Use it.
      
      Fixes: debbugs:15264
      816244a2
    • Stefan Monnier's avatar
    • Dmitry Antipov's avatar
      Attempt to make redisplay more selective when changing cursor type. · 7f6c6450
      Dmitry Antipov authored
      * frame.h (struct frame): New bitfield cursor_type_changed.
      * xdisp.c (cursor_type_changed): Remove.
      (try_cursor_movement, redisplay_window, try_window_id)
      (set_frame_cursor_types, try_window_reusing_current_matrix):
      Adjust to use per-frame bitfield.
      (redisplay_internal): Look for cursor type change on each visible
      frame and consider all frames if cursor type has been changed on
      the frame other than selected.  If cursor type has been changed on
      selected frame only, do not use fast update.
      7f6c6450
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      97e99cc3
    • Michael Albinus's avatar
      Format long lines. · 352d3bea
      Michael Albinus authored
      352d3bea
    • Michael Albinus's avatar
      Remove URL syntax. · 1486fa31
      Michael Albinus authored
      * net/tramp.el (tramp-syntax, tramp-prefix-format)
      (tramp-postfix-method-format, tramp-prefix-ipv6-format)
      (tramp-postfix-ipv6-format, tramp-prefix-port-format)
      (tramp-postfix-host-format, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp)
      (tramp-completion-dissect-file-name)
      (tramp-handle-substitute-in-file-name): Remove 'url case.
      (tramp-file-name-regexp-url)
      (tramp-completion-file-name-regexp-url): Remove constants.
      1486fa31
    • Dmitry Antipov's avatar
      Fix ChangeLog typo. · 8bda01d3
      Dmitry Antipov authored
      8bda01d3
    • Dmitry Antipov's avatar
      Attempt to make redisplay more selective when changing fonts. · bd0443bb
      Dmitry Antipov authored
      * frame.h (struct frame): New bitfield fonts_changed.
      * dispextern.h (fonts_changed_p, adjust_glyphs): Remove declaration.
      (adjust_frame_glyphs): Add prototype.
      * dispnew.c (fonts_changed_p): Remove.
      (adjust_glyphs): Remove becase we do not
      adjust matrices on all frames at once any more.
      (adjust_frame_glyphs): Block and unblock input here.
      (adjust_glyph_matrix): Use fonts_changed.
      (change_frame_size_1): Use adjust_frame_glyphs.
      * font.c (font_open_entity): Use fonts_changed.
      * frame.c (set_menu_bar_lines, Fmake_terminal_frame):
      * w32fns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_show_tip):
      * window.c (Fdelete_other_windows_internal, Fwindow_resize_apply)
      (Fsplit_window_internal, Fdelete_window_internal, grow_mini_window)
      (shrink_mini_window, Fresize_mini_window_internal)
      (window_scroll_pixel_based, Fset_window_configuration)
      (apply_window_adjustment, Fset_window_vscroll):
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_show_tip):
      Use adjust_frame_glyphs.
      * xdisp.c (redisplay_tool_bar, redisplay_window, try_window)
      (try_window_reusing_current_matrix, try_window_id, display_line)
      (IT_EXPAND_MATRIX_WIDTH): Use fonts_changed.
      (redisplay_internal): Consider fonts_changed and adjust frame
      matrices for each frame only if the frame is visible.  If font
      has been changed on some frame during full redisplay, retry
      only visible frames where the font has been actually changed.
      bd0443bb
    • Glenn Morris's avatar
      * lisp/replace.el (replace-string): Doc fix re start/end. · 39785324
      Glenn Morris authored
      Fixes: debbugs:15275
      39785324
  5. 05 Sep, 2013 8 commits
    • Dmitry Antipov's avatar
      Cache current header and mode line height for each window. · b9695828
      Dmitry Antipov authored
      * window.h (struct window): New fields mode_line_height
      and header_line_height.
      * window.c (make_window): Initialize them.
      * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
      (CURRENT_HEADER_LINE_HEIGHT): Use them.  Adjust comment.
      (current_mode_line_height, current_header_line_height):
      Remove declaration.
      * xdisp.c (current_mode_line_height, current_header_line_height):
      Remove.
      (pos_visible_p, init_xdisp): Adjust user.
      (redisplay_window): Invalidate mode_line_height and
      header_line_height if current and desired matrices do not agree.
      b9695828
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move "Perl-ish · 1f896cb7
      Dmitry Gutov authored
      keywords" below "here-doc beginnings".
      
      Fixes: debbugs:15270
      1f896cb7
    • Stefan Monnier's avatar
      Add missing ChangeLog entry. · c828af56
      Stefan Monnier authored
      c828af56
    • Dmitry Antipov's avatar
      * fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER. · 66738305
      Dmitry Antipov authored
      * xfaces.c (toplevel) [HAVE_X_WINDOWS]: Do not include xterm.h twice.
      66738305
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 6aed5dcc
      Glenn Morris authored
      6aed5dcc
    • Glenn Morris's avatar
      Auto-commit of generated files. · d04a2836
      Glenn Morris authored
      d04a2836
    • Dmitry Antipov's avatar
      Make --without-x compatible with --enable-gcc-warnings. · 257b3b03
      Dmitry Antipov authored
      * configure.ac: If both --without-x and --enable-gcc-warnings are
      specified, use -Wno-unused-variable, -Wno-unused-but-set-variable
      and -Wno-unused-but-set-parameter.
      * src/font.c (register_font_driver): Move check under HAVE_WINDOW_SYSTEM.
      * src/font.h (struct font_driver): Move draw, get_bitmap and free_bitmap
      members under HAVE_WINDOW_SYSTEM.
      * src/keyboard.c (make_lispy_focus_out): Likewise.
      (record_menu_key): Move under HAVE_MENUS.
      * src/xdisp.c (toplevel): Move hourglass_shown_p, hourglass_atimer and
      THIN_SPACE_WIDTH under HAVE_WINDOW_SYSTEM.
      (syms_of_xdisp): Adjust user.
      (window_box_edges): Define only if HAVE_WINDOW_SYSTEM.
      (start_hourglass, cancel_hourglass):
      * src/xfaces.c (toplevel): Likewise with PT_PER_INCH,
      clear_font_table_count, CLEAR_FONT_TABLE_COUNT
      and CLEAR_FONT_TABLE_NFONTS.
      (set_font_frame_param, clear_face_gcs, realize_non_ascii_face):
      Declare only if HAVE_WINDOW_SYSTEM.
      (lface_same_font_attributes_p, clear_face_gcs): Define only
      if HAVE_WINDOW_SYSTEM.
      257b3b03
    • Dmitry Antipov's avatar
      * frame.c (check_minibuf_window): Update 'frame' with frame pointer. · 98b7f4bd
      Dmitry Antipov authored
      * xterm.c (x_scroll_bar_handle_click) [!USE_TOOLKIT_SCROLL_BARS]:
      Don't pass C integer to XINT (tiny fix for 2013-09-03 change).
      98b7f4bd