* xsettings.c (xsettings_get_system_font): New function.
(init_gconf): No use initiating gconf unless we have Xft also.
(syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
HAVE_GCONF.
Tassilo Horn [Fri, 20 Nov 2009 08:22:32 +0000 (08:22 +0000)]
2009-11-20 Tassilo Horn <tassilo@member.fsf.org>
* progmodes/cc-cmds.el (c-update-modeline)
(c-forward-into-nomenclature, c-backward-into-nomenclature): Refer
to subword.el functions instead of cc-subword.el.
* progmodes/cc-mode.el (subword-mode, c-mode-base-map): Refer to
subword.el functions instead of cc-subword.el.
* progmodes/cc-subword.el: Renamed to subword.el.
* subword.el: Renamed from progmodes/cc-subword.el.
(subword-mode-map): Renamed from c-subword-mode-map.
(subword-mode): Renamed from c-subword-mode.
(global-subword-mode): New global minor mode.
(forward-subword): Renamed from c-forward-subword.
(backward-subword): Renamed from c-backward-subword.
(mark-subword): Renamed from c-mark-subword.
(kill-subword): Renamed from c-kill-subword.
(backward-kill-subword): Renamed from c-backward-kill-subword.
(transpose-subwords): Renamed from c-tranpose-subword.
(downcase-subword): Renamed from c-downcase-subword.
(capitalize-subword): Renamed from c-capitalize-subword.
(forward-subword-internal): Renamed from
c-forward-subword-internal.
(backward-subword-internal): Renamed from
c-backward-subword-internal.
Dan Nicolaescu [Fri, 20 Nov 2009 06:56:16 +0000 (06:56 +0000)]
(vc-deduce-fileset): Allow non-state changing operations
from a dired buffer.
(vc-dired-deduce-fileset): New function.
(vc-root-diff, vc-print-root-log): Use it.
Jay Belanger [Fri, 20 Nov 2009 00:57:32 +0000 (00:57 +0000)]
(calc-init-extentions): Rename `calc-complement-signed-mode' to
`calc-twos-complement-mode'.
(math-format-number-fancy): Let `calc-twos-complement-mode' be nil.
Jay Belanger [Fri, 20 Nov 2009 00:55:53 +0000 (00:55 +0000)]
(math-format-twos-complement): Renamed from math-format-complement-signed.
(calc-radix): Rename `calc-complement-signed-mode' to
`calc-twos-complement-mode'.
(calc-octal-radix, calc-hex-radix): Add an argument for two's complement.
Jay Belanger [Fri, 20 Nov 2009 00:54:19 +0000 (00:54 +0000)]
(calc-set-mode-line): Rename `calc-complement-signed-mode' to
`calc-twos-complement-mode'.
(math-format-number): Rename `math-format-complement-signed' to
`math-format-twos-complement'.
Stefan Monnier [Thu, 19 Nov 2009 22:55:41 +0000 (22:55 +0000)]
(latex-complete-bibtex-cache, latex-complete-alist): New vars.
(latex-string-prefix-p, latex-complete-bibtex-keys, latex-complete-data)
(latex-complete-envnames, latex-complete-refkeys): New functions.
(latex-complete, latex-indent-or-complete): New commands.
Stefan Monnier [Thu, 19 Nov 2009 20:47:40 +0000 (20:47 +0000)]
* hfy-cmap.el (hfy-rgb-file): Use locate-file.
(htmlfontify-load-rgb-file): Remove unnused var `ff'.
Use with-current-buffer and string-to-number.
(hfy-fallback-colour-values): Use assoc-string.
* htmlfontify.el (hfy-face-to-css): Remove unused var `style'.
(hfy-face-at): Remove unused var `found-face'.
(hfy-compile-stylesheet): Remove unused var `css'.
(hfy-fontify-buffer): Remove unused vars `in-style', `invis-button',
and `orig-buffer'.
(hfy-buffer, hfy-copy-and-fontify-file, hfy-parse-tags-buffer):
Use with-current-buffer.
(hfy-text-p): Use expand-file-name and fewer setq.
Chong Yidong [Thu, 19 Nov 2009 16:48:30 +0000 (16:48 +0000)]
* mail/sendmail.el (mail-yank-prefix): Change default to "> ".
(mail-signature): Change default to t.
(mail-from-style): Deprecate `system-default' value.
(mail-insert-from-field): For default value of mail-from-style,
default to `angles' unless `angles' needs quoting and `parens'
does not.
(mail-citation-prefix-regexp): Use citation regexp from
message-mode.
Chong Yidong [Thu, 19 Nov 2009 16:46:50 +0000 (16:46 +0000)]
* message.el (message-from-style, message-interactive)
(message-cite-prefix-regexp, message-sendmail-envelope-from)
(message-yank-prefix, message-indentation-spaces, message-signature)
(message-signature-file, message-default-headers): For GNU Emacs, set
default values from the corresponding mail-* variables.
(message-send-mail-with-sendmail): Use envelope-from only if
mail-specify-envelope-from is non-nil.
Andreas Schwab [Tue, 17 Nov 2009 21:57:48 +0000 (21:57 +0000)]
* lisp.h: Remove declaration of Ffont_get_system_font.
* xfns.c: Move include of "xsettings.h".
* xsettings.h: Use EXFUN to declare Ffont_get_system_font.
* xftfont.c (xftfont_fix_match): New function.
(xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
Call xftfont_fix_match after XftFontMatch.
Jan Djärv [Tue, 17 Nov 2009 08:21:23 +0000 (08:21 +0000)]
Handle system default font and changing font parameters.
* 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.
* 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.
Glenn Morris [Tue, 17 Nov 2009 04:41:15 +0000 (04:41 +0000)]
(newsticker--treeview-list-update-faces):
Preserve point in the list buffer. (Bug#4939)
Use point-at-eol.
(newsticker--treeview-list-update-highlight)
(newsticker--treeview-tree-update-highlight): Use point-at-bol/eol.
Kevin Ryde [Mon, 16 Nov 2009 22:59:09 +0000 (22:59 +0000)]
* emacs-lisp/lisp-mnt.el (lm-keywords): Allow multi-line keywords.
(lm-keywords-list): Allow comma-only separator like "foo,bar".
Ignore trailing spaces by omit-nulls to split-string (fixing
regression from Emacs 21 due to the incompatible split-string
change). (Bug #4928.)
Michael Albinus [Mon, 16 Nov 2009 20:10:39 +0000 (20:10 +0000)]
* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Raise only an
error when `tramp-gvfs-dbus-event-vector' is set.
(tramp-gvfs-maybe-open-connection): Loop over `read-event'.