1. 09 May, 2010 1 commit
    • Stefan Monnier's avatar
      * minibuffer.el (completion-pcm-complete-word-inserts-delimiters): · 79ccd68f
      Stefan Monnier authored
      New custom variable.
      (completion-pcm--string->pattern): Use it.
      (completion-pcm--pattern->regex, completion-pcm--pattern->string):
      Make it handle any symbol as `any'.
      (completion-pcm--merge-completions): Extract common suffix for the new
      `prefix' symbol as well.
      (completion-substring--all-completions): Use the new `prefix' symbol.
      79ccd68f
  2. 07 May, 2010 1 commit
  3. 05 May, 2010 1 commit
    • Stefan Monnier's avatar
      Use define-minor-mode for less obvious cases. · f44379e7
      Stefan Monnier authored
      * emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword.
      * emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method.
      * international/iso-ascii.el (iso-ascii-mode):
      * frame.el (auto-raise-mode, auto-lower-mode):
      * composite.el (global-auto-composition-mode): Use define-minor-mode.
      f44379e7
  4. 03 May, 2010 2 commits
    • Chong Yidong's avatar
      da0bbbc4
    • Chong Yidong's avatar
      Add optional arg to delete-file to force deletion (Bug#6070). · 53967e09
      Chong Yidong authored
      * eval.c (internal_condition_case_n): Rename from
      internal_condition_case_2.
      (internal_condition_case_2): New function.
      
      * xdisp.c (safe_call): Use internal_condition_case_n.
      
      * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
      (internal_delete_file, Frename_file): Callers changed.
      
      * buffer.c (Fkill_buffer):
      * callproc.c (delete_temp_file): Callers changed (Bug#6070).
      
      * lisp.h: Update prototypes.
      
      * diff.el (diff-sentinel):
      
      * epg.el (epg--make-temp-file, epg-decrypt-string)
      (epg-verify-string, epg-sign-string, epg-encrypt-string):
      
      * jka-compr.el (jka-compr-partial-uncompress)
      (jka-compr-call-process, jka-compr-write-region, jka-compr-load):
      
      * server.el (server-sentinel): Use delete-file's new FORCE arg
      (Bug#6070).
      53967e09
  5. 02 May, 2010 1 commit
    • Stefan Monnier's avatar
      New hook filter-buffer-substring-functions. · 8f92b8ad
      Stefan Monnier authored
      * simple.el (with-wrapper-hook): Move.
      (buffer-substring-filters): Mark obsolete.
      (filter-buffer-substring-functions): New variable.
      (buffer-substring-filters): Use it.  Remove unused arg `noprops'.
      8f92b8ad
  6. 29 Apr, 2010 1 commit
  7. 28 Apr, 2010 1 commit
  8. 25 Apr, 2010 3 commits
  9. 24 Apr, 2010 1 commit
  10. 23 Apr, 2010 2 commits
  11. 21 Apr, 2010 3 commits
    • Jan Djärv's avatar
      Document tool-bar-style · 20fe03ad
      Jan Djärv authored
      20fe03ad
    • Glenn Morris's avatar
      Doc updates for SELinux support. · b7d65a5f
      Glenn Morris authored
      * ack.texi, emacs.texi (Acknowledgments): Add SELinux support.
      
      * etc/NEWS: Mention SELinux support.
      b7d65a5f
    • Stefan Monnier's avatar
      Make the log-edit comments use RFC822 format throughout. · e97a42c1
      Stefan Monnier authored
      * vc.el (vc-checkin, vc-modify-change-comment):
      Adjust to new vc-start/finish-logentry.
      (vc-find-conflicted-file): New command.
      (vc-transfer-file): Adjust to new vc-checkin.
      (vc-next-action): Improve scoping.
      
      * vc-hg.el (vc-hg-log-edit-mode): Remove.
      (vc-hg-checkin): Remove extra arg.  Use log-edit-extract-headers.
      
      * vc-git.el (vc-git-log-edit-mode): Remove.
      (vc-git-checkin): Remove extra arg.  Use log-edit-extract-headers.
      (vc-git-commits-coding-system): Rename from git-commits-coding-system.
      
      * vc-dispatcher.el (vc-log-edit): Shorten names for log-edit-show-files.
      (vc-start-logentry): Remove argument `extra'.
      (vc-finish-logentry): Remove extra args.
      
      * vc-bzr.el (vc-bzr-log-edit-mode): Remove.
      (vc-bzr-checkin): Remove extra arg.  Use log-edit-extract-headers.
      (vc-bzr-conflicted-files): New function.
      
      * log-edit.el (log-edit-extra-flags)
      (log-edit-before-checkin-process): Remove.
      (log-edit-summary, log-edit-header, log-edit-unknown-header): New faces.
      (log-edit-headers-alist): New var.
      (log-edit-header-contents-regexp): New const.
      (log-edit-match-to-eoh): New function.
      (log-edit-font-lock-keywords): Use them.
      (log-edit): Insert a "Summary:" header as default.
      (log-edit-mode): Mark font-lock rules as case-insensitive.
      (log-edit-done): Cleanup headers.
      (log-view-process-buffer): Remove.
      (log-edit-extract-headers): New function to replace it.
      e97a42c1
  12. 18 Apr, 2010 2 commits
    • Juri Linkov's avatar
      Test for special mode-class in view-buffer instead of view-file (bug#5513). · fd5c9dfa
      Juri Linkov authored
      * view.el (view-file, view-buffer): Move test for special mode-class
      from view-file to view-buffer.
      
      * tar-mode.el (tar-extract): Turn if's into one cond
      like in arc-mode.el.
      fd5c9dfa
    • Juri Linkov's avatar
      Add 7z archive format support (bug#5475). · b3671a51
      Juri Linkov authored
      * arc-mode.el (archive-zip-extract): Try to find 7z executable.
      (archive-7z-extract): New defcustom.
      (archive-find-type): Add magic string for 7z.
      (archive-extract-by-stdout): Add new optional arg `stderr-file'.
      If `stderr-file' is non-nil, use `(t stderr-file)' for the
      `buffer' arg of `call-process'.
      (archive-zip-extract): Check `archive-zip-extract' for "7z" and
      call the function `archive-7z-extract' with the variable
      `archive-7z-extract' let-bound to `archive-zip-extract'.
      (archive-7z-summarize, archive-7z-extract): New functions.
      
      * international/mule.el (auto-coding-alist):
      * files.el (auto-mode-alist): Add 7z file extension.
      b3671a51
  13. 17 Apr, 2010 1 commit
  14. 16 Apr, 2010 2 commits
  15. 15 Apr, 2010 8 commits
  16. 14 Apr, 2010 2 commits
  17. 13 Apr, 2010 2 commits
  18. 11 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Use XFT in Lucid dialogs if available. · 1ecb2d3f
      Jan Djärv authored
      	* xmenu.c (apply_systemfont_to_dialog): New.
      	(create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
      
      	* lwlib-Xaw.c (widget_xft_data): New for Xft data.
      	(fill_xft_data, openFont, get_text_width_and_height)
      	(draw_text, set_text, find_xft_data, command_press)
      	(command_reset): New functions.
      	(xaw_update_one_widget): Call set_text for dialog and buttons
      	if HAVE_XFT.  Also set internalHeight for buttons.
      	(xaw_destroy_instance): Free all Xft related data.
      	(button_actions, buttonTrans): New structures.
      	(make_dialog): Call XtAppAddActions for button_actions.
      	Find xft font to use and call fill_xft_data for widgets.
      	(xaw_create_dialog): Pass instance parameter to make_dialog.
      
      	* lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT.
      	Override translations for buttons.  If depth is 16 or more, tell
      	Xaw3d to not be nice to colormap.
      	Remove separator widget, use XtNhorizDistance on first right button
      	instead.
      
      	* xresources.texi (Lucid Resources): Mention faceName for dialogs.
      1ecb2d3f
  19. 09 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Add --author support to git commit. · 6aebd58c
      Dan Nicolaescu authored
      * vc-git.el (vc-git-checkin): Pass extra-args to the commit command.
      (vc-git-log-edit-mode): New minor mode.
      (log-edit-mode, log-edit-extra-flags, log-edit-mode): New
      declarations.
      6aebd58c
  20. 08 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Lucid menus can now use Xft for fonts. · 99852628
      Jan Djärv authored
      * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
      (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
      in current_font.
      (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
      (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
      functions.
      (syms_of_xsettings): Initialize current_font. defsubr
      Sfont_get_system_normal_font.
      
      * xsettings.h (Ffont_get_system_normal_font,
      xsettings_get_system_normal_font): Declare.
      
      * xfns.c (extern xlwmenu_default_font): Remove.
      (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
      to xlwmenu.c.
      
      * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
      menu items in UTF-8.
      
      * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
      (apply_systemfont_to_menu): New function.
      (set_frame_menubar, create_and_show_popup_menu): Call
      apply_systemfont_to_menu.
      
      * xlwmenu.c (xlwmenu_default_font): Make static.
      (xlwMenuResources): Add XtNfaceName and XtNdefaultFace.
      (string_width): Use XftTextExtentsUtf8 if HAVE_XFT.
      (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Add versions for
      HAVE_XFT.
      (size_menu): Set max_rest_width in window_state structure.
      (display_menu_item): If HAVE_XFT and xft_draw is set, use
      XftDrawRect and XftDrawStringUtf8 to draw text.
      (make_windows_if_needed): Set max_rest_width and xft_draw
      in windows[i].
      (openXftFont): New.
      (XlwMenuInitialize): Call openXftFont if HAVE_XFT. If mw->menu.font
      is not set, load font fixed and save it in xlwmenu_default_font.
      (XlwMenuInitialize): Set max_rest_width and xft_draw in windows[0].
      (XlwMenuClassInitialize): Initialize xlwmenu_default_font.
      (XlwMenuRealize): Set xft_fg, xft_bg, xft_disabled_fg and
      windows[0].xft_draw if xft_font is set.
      (XlwMenuDestroy): Destroy all xft_draw and close xft_font.
      (facename_changed): New.
      (XlwMenuSetValues): Call facename_changed. If face name did change,
      close old fonts and destroy xft_draw:s.  Then create new ones.
      
      * xlwmenu.h (XtNfaceName, XtCFaceName, XtNdefaultFace,
      XtCDefaultFace): New.
      
      * xlwmenuP.h (_window_state): Add max_rest_width and xft_draw.
      (_XlwMenu_part): Add faceName,xft_fg, xft_bg, xft_disabled_fg and
      xft_font.
      
      * xresources.texi (Lucid Resources): Mention faceName to set Xft fonts.
      99852628
  21. 07 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Add new VC methods: vc-log-incoming and vc-log-outgoing. · 31527c56
      Dan Nicolaescu authored
      * vc.el (vc-print-log-setup-buttons): New function split out from
      vc-print-log-internal.
      (vc-log-internal-common): New function, a parametrized version of
      vc-print-log-internal.
      (vc-print-log-internal): Just call vc-log-internal-common with the
      right arguments.
      (vc-incoming-outgoing-internal):
      (vc-log-incoming, vc-log-outgoing): New functions.
      (vc-log-view-type): New permanent local variable.
      
      * vc-hooks.el (vc-menu-map): Bind vc-log-incoming and vc-log-outgoing.
      
      * vc-bzr.el (vc-bzr-log-view-mode): Use vc-log-view-type instead
      of the dynamic bound vc-short-log.
      (vc-bzr-log-incoming, vc-bzr-log-outgoing): New functions.
      
      * vc-git.el (vc-git-log-outgoing): New function.
      (vc-git-log-view-mode): Use vc-log-view-type instead
      of the dynamic bound vc-short-log.
      
      * vc-hg.el (vc-hg-log-view-mode): Use vc-log-view-type instead
      of the dynamic bound vc-short-log.  Highlight the tag.
      (vc-hg-log-incoming, vc-hg-log-outgoing): New functions.
      (vc-hg-outgoing, vc-hg-incoming, vc-hg-outgoing-mode):
      (vc-hg-incoming-mode): Remove.
      (vc-hg-extra-menu-map): Do not bind vc-hg-incoming and vc-hg-outgoing.
      31527c56
  22. 05 Apr, 2010 2 commits