Juri Linkov [Mon, 30 Jun 2008 19:37:02 +0000 (19:37 +0000)]
(abbrev-map, narrow-map): New variables.
Bind `C-x a' to `abbrev-map' and `C-x n' to `narrow-map'.
Rebind related commands to these new maps.
(ctl-x-r-map): New variable for rectangle, register and bookmark
keys. Move rectangle keybindings to rect.el and register
keybindings to register.el.
(next-buffer, previous-buffer): Remove C-x prefix and move
keybindings to ctl-x-map.
Juri Linkov [Mon, 30 Jun 2008 19:36:38 +0000 (19:36 +0000)]
(hi-lock-regexp-history): Make it an obsolete alias
to `regexp-history'.
(hi-lock-face-history): Rename to `hi-lock-face-defaults' and
make it an obsolete alias to it.
(hi-lock-face-defaults): New variable renamed from
`hi-lock-face-history'.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `read-regexp' instead of
`read-from-minibuffer'. Doc fix.
(hi-lock-read-face-name): Replace `hi-lock-face-history' with
`hi-lock-face-defaults'. Remove `mapcar (lambda (f) (cons f f))'.
Set `hist' arg of `completing-read' to `face-name-history'.
Put a list of default faces to `default' arg instead of `hist' arg.
Juri Linkov [Mon, 30 Jun 2008 19:35:59 +0000 (19:35 +0000)]
(face-name-history): New variable.
(make-face, make-empty-face): Replace interactive spec "S"
with `read-from-minibuffer' where `read' arg is t and
`hist' arg is `face-name-history'.
(read-face-name): Set `hist' arg of `completing-read-multiple'
to `face-name-history'.
(list-faces-display): Use `read-regexp' instead of `read-string'
to read regexp.
Kenichi Handa [Mon, 30 Jun 2008 07:40:40 +0000 (07:40 +0000)]
(xftfont_open): Don't call FcConfigSubstitute and
XftDefaultSubstitute (they are called in XftFontMatch).
(xftfont_open): Fix args to ftfont_font_format.
Kenichi Handa [Mon, 30 Jun 2008 07:39:14 +0000 (07:39 +0000)]
(fc_charset_table): New member lang.
(ftfont_resolve_generic_family): New arg pattern.
(ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
(ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
(ftfont_open): Fix args to ftfont_font_format.
(ftfont_font_format): New arg filename.
Juri Linkov [Sun, 29 Jun 2008 16:10:11 +0000 (16:10 +0000)]
(read-regexp): New function.
(keep-lines-read-args, occur-read-primary-args):
Call `read-regexp' instead of code moved to new function.
(keep-lines, flush-lines, how-many): Remove parenthesis and colon
from the end of prompt.
(replace-re-search-function): Doc fix.
Kenichi Handa [Sun, 29 Jun 2008 14:42:35 +0000 (14:42 +0000)]
(describe-char-display): Always return a string.
(describe-char-padded-string): New function.
(describe-char): Adjusted for the change of
describe-char-display. Use describe-char-padded-string.
Andreas Schwab [Sun, 29 Jun 2008 12:50:20 +0000 (12:50 +0000)]
(vc-dir): Make backend argument optional and use
vc-responsible-backend when nil. Interactively pass nil for
backend instead of using the backend of what happens to be
default-directory at the time of the call.
Jeffrey C Honig [Sun, 29 Jun 2008 03:06:12 +0000 (03:06 +0000)]
(mh-invisible-header-fields-internal): Add invisible header fields for
X-Hz (mail from Hertz), X-Proofpoint (Proofpoint antivirus/anti-spam)
and X-RIM (Research In Motion).
Jason Rumney [Sat, 28 Jun 2008 23:54:27 +0000 (23:54 +0000)]
* w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
(pfnSetLayeredWindowAttributes): New function pointer.
(w32_initialize): Initialize it when supported.
(x_set_frame_alpha): New function.
Michael Albinus [Sat, 28 Jun 2008 10:17:22 +0000 (10:17 +0000)]
* net/tramp.el (tramp-handle-file-modes): Handle symlinks.
(tramp-convert-file-attributes): Convert symlinks only when
returned from `tramp-handle-file-attributes-with-stat'.
Michael Albinus [Sat, 28 Jun 2008 10:15:00 +0000 (10:15 +0000)]
* net/tramp-ftp.el (top): Delete 'ange-ftp property from
`substitute-in-file-name' when unloading.
(tramp-ftp-file-name-handler): Set `tramp-mode' to nil.
Alan Mackenzie [Fri, 27 Jun 2008 21:12:46 +0000 (21:12 +0000)]
cc-mode.el (c-mode-base-map): Don't bind C-M-[ae] to the CC Mode specific
functions; this is no longer needed, since {beginning,end}-of-defun now
pass ARG to ...-of-defun-function.
cc-defs.el (c-emacs-features): new feature 'argumentative-bod-function.
(image-jpeg-p): Don't fail if the arg cannot be converted to unibyte.
Just assume it is not a JPEG. Use `string-match-p'.
(image-type-from-data, image-type-from-file-name): Use `string-match-p'.
(image-type-from-buffer): Use `looking-at-p'.
Glenn Morris [Fri, 27 Jun 2008 00:33:29 +0000 (00:33 +0000)]
(calendar-lunar-phases): Rename from calendar-phases-of-moon. Keep
old name as alias, update callers.
(lunar-phases): Rename from phases-of-moon. Keep old name as alias.
(diary-lunar-phases): Rename from diary-phases-of-moon. Keep old name as alias.
Jason Rumney [Thu, 26 Jun 2008 22:11:25 +0000 (22:11 +0000)]
* w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Sync with xterm.c.
Use FONT_HANDLE macro.
(x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use FONT_HANDLE macro.
* w32font.c (Fx_select_font): Use FONT_HANDLE macro.
(w32font_text_extents): Use precast w32_font.
(w32font_close): Free cached metrics.
(w32font_open_internal): Allocate space for name on stack.
(ibuffer-diff-buffer-with-file-1): New function.
(ibuffer-diff-with-file): Use it. Do diff on marked buffers
(ibuffer-mark-on-buffer): Don't display message when removing marks.
(ibuffer-mark-by-mode): Use `buffer-local-value'.
* w32font.c (w32font_close): Remove compat code. Delete hfont member.
(w32font_encode_char, w32font_text_extents): Use new hfont member.
(w32font_open_internal): Remove compat code. Set new hfont member.
(Fx_select_font): Use new hfont member.
* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use new hfont member.
* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Use new hfont member.
(x_draw_glyph_string): Use metrics in w32font_info.