1. 05 Dec, 2009 3 commits
  2. 04 Dec, 2009 2 commits
    • Juri Linkov's avatar
      (dired-auto-revert-buffer): New defcustom. · 2b3489a7
      Juri Linkov authored
      (dired-internal-noselect): Use it.
      2b3489a7
    • Juri Linkov's avatar
      Change roles of modes and functions in image-mode.el (Bug#5062). · 9b9debd1
      Juri Linkov authored
      * image-mode.el: Replace `image-mode-maybe' with `image-mode'
      in `auto-mode-alist'.
      (image-mode-previous-major-mode): New variable.
      (image-minor-mode-map): Rename from `image-mode-text-map'.
      (image-mode): Move graceful error-handling code from
      `image-minor-mode' to here.  On errors call `image-mode-as-text'.
      (image-minor-mode): Remove all image-handling code.
      Replace `image-mode-text-map' with `image-minor-mode-map'.
      Check for `image-type' in mode-line format string.
      (image-mode-maybe): Make obsolete with an alias to `image-mode'.
      (image-mode-as-text): New function with most code from
      `image-mode-maybe'.
      (image-toggle-display-text): Move code that removes image
      properties from `image-toggle-display' to here.
      (image-toggle-display-image): New function with code that adds
      image properties copied from `image-toggle-display'.
      (image-toggle-display): Remove most code with leaving only code
      that toggles between `image-mode-as-text' and `image-mode'.
      9b9debd1
  3. 03 Dec, 2009 3 commits
    • Stefan Monnier's avatar
      (Fmake_network_process): Fix up the tests for · 84b31826
      Stefan Monnier authored
      "connectionless socket", so they DTRT for seqpacket sockets as well.
      84b31826
    • Dan Nicolaescu's avatar
      Add support for bzr shelve/unshelve. · 4dfb3b9c
      Dan Nicolaescu authored
      * vc-bzr.el (vc-bzr-shelve-map, vc-bzr-shelve-menu-map)
      (vc-bzr-extra-menu-map): New variables.
      (vc-bzr-extra-menu, vc-bzr-extra-status-menu, vc-bzr-shelve)
      (vc-bzr-shelve-apply, vc-bzr-shelve-list)
      (vc-bzr-shelve-get-at-point, vc-bzr-shelve-delete-at-point)
      (vc-bzr-shelve-apply-at-point, vc-bzr-shelve-menu): New functions.
      (vc-bzr-dir-extra-headers): Display shelves.
      4dfb3b9c
    • Dan Nicolaescu's avatar
      Support applying stashes. Improve UI. · 7fa4876f
      Dan Nicolaescu authored
      * vc-git.el (vc-git-dir-extra-headers): Add tooltips.
      (vc-git-stash-apply, vc-git-stash-pop)
      (vc-git-stash-apply-at-point, vc-git-stash-pop-at-point)
      (vc-git-stash-menu): New functions.
      (vc-git-stash-menu-map): New variable.
      (vc-git-stash-map): Add bindings to popup a menu and to apply stashes.
      7fa4876f
  4. 01 Dec, 2009 1 commit
  5. 30 Nov, 2009 3 commits
    • Juri Linkov's avatar
      (multi-isearch-read-buffers) · c585bf32
      Juri Linkov authored
      (multi-isearch-read-matching-buffers): New functions.
      (multi-isearch-buffers, multi-isearch-buffers-regexp):
      Use them in the `interactive' spec.  Doc fix.
      (multi-isearch-read-files, multi-isearch-read-matching-files):
      New functions.
      (multi-isearch-files, multi-isearch-files-regexp):
      Use them in the `interactive' spec.  Doc fix.  (Bug#4725)
      c585bf32
    • Juri Linkov's avatar
      (doc-view-continuous): · 0a745733
      Juri Linkov authored
      Rename from `doc-view-continuous-mode'.
      (doc-view-menu): Move "Toggle display" to the top.
      Add submenu "Continuous" with radio buttons "Off"/"On"
      and "Save as Default".
      (doc-view-scroll-up-or-next-page)
      (doc-view-scroll-down-or-previous-page)
      (doc-view-next-line-or-next-page)
      (doc-view-previous-line-or-previous-page): Rename
      `doc-view-continuous-mode' to `doc-view-continuous'.  (Bug#4896)
      0a745733
    • Juri Linkov's avatar
      (comint-mode-map): Rebind `M-r' from · 1f9689eb
      Juri Linkov authored
      `comint-previous-matching-input' to
      `comint-history-isearch-backward-regexp'.
      Unbind `M-s' to allow global key binding `M-s'.
      Add menu items for `comint-history-isearch-backward' and
      `comint-history-isearch-backward-regexp'.  (Bug#3746)
      1f9689eb
  6. 29 Nov, 2009 1 commit
  7. 27 Nov, 2009 1 commit
  8. 25 Nov, 2009 3 commits
    • Juri Linkov's avatar
      Search recursively in gzipped files. (Bug#4982) · a601d313
      Juri Linkov authored
      (grep-highlight-matches): Add new options
      `always' and `auto'.  Doc fix.
      (grep-process-setup): Check `grep-highlight-matches' for
      `auto-detect' to determine the need to compute grep defaults.
      Move Windows/DOS specific --colors settings handling
      to `grep-compute-defaults'.  Check `grep-highlight-matches'
      to get the value of "--color=".
      (grep-compute-defaults): Compute `grep-highlight-matches' when it
      has the value `auto-detect'.  Move Windows/DOS specific settings
      from `grep-process-setup'.
      (zrgrep): New command with alias `rzgrep'.
      a601d313
    • Juri Linkov's avatar
      Provide additional default values (directories at other Dired · e237085f
      Juri Linkov authored
      windows) via M-n in the minibuffer of some Dired commands.
      
      * dired-aux.el (dired-diff, dired-compare-directories)
      (dired-do-create-files): Use `dired-dwim-target-defaults' to set
      `minibuffer-default' in `minibuffer-with-setup-hook'.
      (dired-dwim-target-directory): Find a window that displays Dired
      buffer instead of failing when the next window is not Dired.
      Use `get-window-with-predicate' to find for the next Dired window.
      (dired-dwim-target-defaults): New function.
      
      * ediff-util.el (ediff-read-file-name):
      Use `dired-dwim-target-defaults' to set `minibuffer-default'
      in `minibuffer-with-setup-hook'.
      e237085f
    • Juri Linkov's avatar
      Provide additional default values (file name at point or at the · 7d371eac
      Juri Linkov authored
      current Dired line) via M-n for file reading minibuffers.  (Bug#5010)
      
      * minibuffer.el (read-file-name-defaults): New function.
      (read-file-name): Reset `minibuffer-default' to nil when
      it duplicates initial input `insdef'.
      Bind `minibuffer-default-add-function' to lambda that
      calls `read-file-name-defaults' in `minibuffer-selected-window'.
      (minibuffer-insert-file-name-at-point): New command.
      
      * files.el (file-name-at-point-functions): New defcustom.
      (find-file-default): Remove defvar.
      (find-file-read-args): Don't use `find-file-default'.
      Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
      to `read-file-name'.
      (find-file-literally): Use `read-file-name' with
      `confirm-nonexistent-file-or-buffer'.
      
      * ffap.el (ffap-guess-file-name-at-point): New autoloaded function.
      
      * dired.el (dired-read-dir-and-switches):
      Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
      to `read-file-name'.
      (dired-file-name-at-point): New function.
      (dired-mode): Add hook `dired-file-name-at-point' to
      `file-name-at-point-functions'.
      7d371eac
  9. 23 Nov, 2009 3 commits
    • Juri Linkov's avatar
      Implement DocView Continuous mode. (Bug#4896) · aefcadb6
      Juri Linkov authored
      * doc-view.el (doc-view-continuous-mode): New defcustom.
      (doc-view-mode-map): Bind C-n/<down> to `doc-view-next-line-or-next-page',
      C-p/<up> to `doc-view-previous-line-or-previous-page'.
      (doc-view-next-line-or-next-page)
      (doc-view-previous-line-or-previous-page): New commands.
      aefcadb6
    • Juri Linkov's avatar
      Implement Isearch in comint input history. (Bug#3746) · 0d62bcea
      Juri Linkov authored
      * comint.el (comint-mode): Add `comint-history-isearch-setup' to
      `isearch-mode-hook'.
      (comint-history-isearch): New defcustom.
      (comint-history-isearch-backward)
      (comint-history-isearch-backward-regexp): New commands.
      (comint-history-isearch-message-overlay): New buffer-local variable.
      (comint-history-isearch-setup, comint-history-isearch-end)
      (comint-goto-input, comint-history-isearch-search)
      (comint-history-isearch-message, comint-history-isearch-wrap)
      (comint-history-isearch-push-state)
      (comint-history-isearch-pop-state): New functions.
      0d62bcea
    • Stefan Monnier's avatar
      (move-to-window-line-last-op): New var. · 216349f8
      Stefan Monnier authored
      (move-to-window-line-top-bottom): New command.
      (global-map): Bind M-r move-to-window-line-top-bottom.
      216349f8
  10. 20 Nov, 2009 2 commits
  11. 19 Nov, 2009 3 commits
  12. 17 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Handle system default font and changing font parameters. · 637fa988
      Jan Djärv authored
      * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
      
      * xterm.c (handle_one_xevent): Call xft_settings_event for
      ClientMessage, PropertyNotify and DestroyNotify.
      (x_term_init): If we have XFT, get DPI from Xft.dpi.
      Call xsettings_initialize.
      
      * xftfont.c (xftfont_fix_match): New function.
      (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
      Call xftfont_fix_match after XftFontMatch.
      
      * xfont.c (xfont_driver): Initialize all members.
      
      * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
      Do not get font from x_default_parameter if we got one from
      Ffont_get_system_font.
      (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
      
      * w32font.c (w32font_driver): Initialize all members.
      
      * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
      
      * lisp.h: Declare syms_of_xsettings.
      
      * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
      CONFIG_CHANGED_EVENT.
      
      * ftfont.c (ftfont_filter_properties): New function.
      
      * frame.c (x_set_font): Remove unused variable lval.
      
      * font.h (struct font_driver): filter_properties is new.
      
      * font.c (font_put_extra): Don't return if val is nil, it means
      boolean option is off.
      (font_parse_fcname): Collect all extra properties in extra_props
      and call filter_properties for all drivers with extra_props and
      font as parameter.
      (font_open_entity): Do not use cache, it does not pick up new fontconfig
      settings like hinting.
      (font_load_for_lface): If spec had a name in it, store it in entity.
      
      * emacs.c (main): Call syms_of_xsettings
      
      * config.in: HAVE_GCONF is new.
      
      * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
      xsettings.o is new.
      
      * menu-bar.el: Put "Use system font" in Option-menu.
      
      * loadup.el: If feature system-font-setting or font-render-setting is
      there, load font-setting.
      
      * Makefile.in (ELCFILES): font-settings.el is new.
      * font-setting.el: New file.
      
      * NEWS: Mention dynamic font changes (font-use-system-font).
      
      * configure.in: New option: --with(out)-gconf.
      Set HAVE_GCONF if we find gconf.
      637fa988
  13. 16 Nov, 2009 1 commit
    • Dan Nicolaescu's avatar
      * vc.el (vc-log-show-limit): Default to 2000. · 48b27575
      Dan Nicolaescu authored
      (vc-print-log-internal): Insert buttons to request more entries
      when limiting the output.
      
      * vc-sccs.el (vc-sccs-print-log):
      * vc-rcs.el (vc-rcs-print-log):
      * vc-cvs.el (vc-cvs-print-log):
      * vc-git.el (vc-git-print-log): Return 'limit-unsupported when
      LIMIT is non-nil.
      48b27575
  14. 06 Nov, 2009 1 commit
    • Stefan Monnier's avatar
      Let integers use up 2 tags to give them one extra bit and double their range. · 2de9f71c
      Stefan Monnier authored
      * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
      (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P): New macros.
      (enum Lisp_Type): Use them.  Give explicit values.
      (Lisp_Type_Limit): Remove.
      (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
      (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
      Pay attention to USE_2_TAGS_FOR_INTS.
      (INTEGERP): Use LISP_INT_TAG_P.
      * fns.c (internal_equal): Simplify the default case.
      (sxhash): Use case_Lisp_Int.
      * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit any more.
      (Ftype_of): Use case_Lisp_Int.
      (store_symval_forwarding): Take into account the fact that Ints can
      now have more than one tag.
      * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
      buffer_slot_type_mismatch):
      * xfaces.c (face_attr_equal_p):
      * print.c (print_object):
      * alloc.c (mark_maybe_object, mark_object, survives_gc_p): Use case_Lisp_Int.
      2de9f71c
  15. 05 Nov, 2009 1 commit
  16. 04 Nov, 2009 1 commit
  17. 31 Oct, 2009 1 commit
  18. 26 Oct, 2009 2 commits
  19. 23 Oct, 2009 1 commit
  20. 21 Oct, 2009 1 commit
    • Stefan Monnier's avatar
      * minibuffer.el (completion-table-with-terminator): Properly implement · 528c56e2
      Stefan Monnier authored
      boundaries, in case `terminator' appears in the suffix.
      (completion--embedded-envvar-table): Don't return boundaries if
      there's no valid completion.  Simplify.
      (completion-file-name-table): New completion table extracted from
      completion--file-name-table.
      (completion--file-name-table): Use it.
      (read-file-name-predicate): Declare obsolete.
      (read-file-name): Use the pred arg i.s.o read-file-name-predicate.
      * vc-bzr.el (vc-bzr-revision-completion-table): Use the new
      completion-file-name-table, and use the `pred' argument.
      * files.el (locate-file-completion-table): Use the `pred' arg rather
      than read-file-name-predicate.
      (abbreviate-file-name): Use \` rather than ^ for BOS.
      528c56e2
  21. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      Make vc-annotate work through copies and renames. · d1e4c403
      Dan Nicolaescu authored
      * vc-annotate.el (vc-annotate-extract-revision-at-line): Return
      the file name too.
      (vc-annotate-revision-at-line)
      (vc-annotate-find-revision-at-line)
      (vc-annotate-revision-previous-to-line)
      (vc-annotate-show-log-revision-at-line): Update to get the file
      name from vc-annotate-extract-revision-at-line.
      (vc-annotate-show-diff-revision-at-line-internal): Change the
      argument to mean whether to show a file diff or not.  Get the file
      name from vc-annotate-extract-revision-at-line.
      (vc-annotate-show-diff-revision-at-line): Update
      vc-annotate-show-diff-revision-at-line call.
      (vc-annotate-warp-revision): Add an optional file argument.
      
      * vc-git.el (vc-git-annotate-command): Pass -C -C to the blame command.
      (vc-git-annotate-extract-revision-at-line): Also return the file
      name if found.
      
      * vc-hg.el (vc-hg-annotate-command): Pass --follow to the annotate
      command.  Remove unused code.
      (vc-hg-annotate-re): Update to match --follow output.
      (vc-hg-annotate-extract-revision-at-line): Also return the file
      name if found.
      
      * vc.el: Update annotate-extract-revision-at-line documentation.
      d1e4c403
  22. 15 Oct, 2009 1 commit
    • Stefan Monnier's avatar
      Replace completion-base-size by completion-base-position to fix bugs · d5e63715
      Stefan Monnier authored
      such as (bug#4699).
      * simple.el (completion-base-position): New var.
      (completion-base-size): Mark as obsolete.
      (choose-completion): Make it work for mouse events as well.
      Pass the new base-position to choose-completion-string.
      (choose-completion-guess-base-position): New function, extracted from
      choose-completion-delete-max-match.
      (choose-completion-delete-max-match): Use it.  Make obsolete.
      (choose-completion-string): Use the new base-position info.
      (completion-root-regexp): Delete.
      (completion-setup-function): Preserve completion-base-position.
      Eliminate obsolete base-size manipulation.
      * minibuffer.el (display-completion-list): Don't mess with base-size.
      (minibuffer-completion-help): Set completion-base-position instead.
      * mouse.el (mouse-choose-completion): Redefine as a mere alias to
      choose-completion.
      * textmodes/bibtex.el (bibtex-complete):
      * emacs-lisp/crm.el (crm--choose-completion-string):
      Adjust to new calling convention.
      * complete.el (partial-completion-mode): Use minibufferp to avoid
      bumping into incompatible change to choose-completion-string-functions.
      * ido.el (ido-choose-completion-string): Make its calling convention
      more permissive.
      * comint.el (comint-dynamic-list-input-ring-select): Remove obsolete
      base-size manipulation.
      (comint-dynamic-list-input-ring): Use dotimes and push.
      * iswitchb.el (iswitchb-completion-help): Remove dead-code call to
      fundamental-mode.  Use `or'.
      d5e63715
  23. 14 Oct, 2009 2 commits
  24. 10 Oct, 2009 1 commit