1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-10 15:56:18 +00:00
Commit Graph

94147 Commits

Author SHA1 Message Date
Jan Djärv
4bef8d2634 (Fx_create_frame, x_create_tip_frame): Set default border width to zero. 2010-04-13 10:19:05 +02:00
Stefan Monnier
c1e25821f9 Move complete.el to lisp/obsolete. 2010-04-12 23:29:38 -04:00
Stefan Monnier
eb6967a081 Remove the Arch metafiles. 2010-04-12 23:06:50 -04:00
Stefan Monnier
84164a0dc1 (init_tty): Move common text outside of #ifdef TERMINFO. 2010-04-12 22:19:17 -04:00
Stefan Monnier
2b0a91e78f Try to solve the problem of spurious EOF chars in long lines of text
sent to interactive subprocesses.
* sysdep.c (child_setup_tty): Do not enable ICANON any more.
(system_process_attributes): Remove unused var `ttotal'.
* process.c (send_process): Don't bother breaking long line with EOF
chars when talking to ttys any more.
(wait_reading_process_output): Output a warning when called in such
a way that it could block without being interruptible.
2010-04-12 22:07:48 -04:00
Stefan Monnier
58b963f7f3 Try to detect file modification within the same second.
* buffer.h (struct buffer): New field modtime_size.
* buffer.c (reset_buffer): Initialize it.
* fileio.c (Finsert_file_contents, Fwrite_region): Set it.
(Fverify_visited_file_modtime): Check it.
(Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
(Fset_visited_file_modtime): Set (or clear) it.
2010-04-12 21:47:40 -04:00
Stefan Monnier
5b31b787b7 * pcomplete.el (pcomplete-here*): Fix mistaken change (bug#5935). 2010-04-12 21:24:10 -04:00
Stefan Monnier
3b7e1d5fe9 (define-minor-mode): A nil argument to the minor mode turns the mode ON. 2010-04-12 21:03:04 -04:00
Stefan Monnier
01f5787b8a * process.c (status_notify): Remove unused var `ro'. 2010-04-12 19:49:29 -04:00
Stefan Monnier
a544e7c143 (vc-dir-kill-line): New command.
(vc-dir-mode-map): Bind it to C-k.
2010-04-12 15:14:16 -04:00
Stefan Monnier
a1979d8e66 * bookmark.el (bookmark-insert-location): Handle a nil filename. 2010-04-12 15:12:36 -04:00
Jan Djärv
83725342d5 xfns.c (select_visual): Don't call error if XGetVisualInfo returns
more than one visual (Bug#5938).
2010-04-12 20:58:15 +02:00
Stefan Monnier
398a825b8d Clean up last bookmark changes for man/woman/gnus-summary.
* gnus-sum.el: Add bookmark declarations to silence the compiler.
(gnus-mark-xrefs-as-read, gnus-summary-limit-to-bodies):
Use with-current-buffer to silence the byte-compiler.
(gnus-summary-bookmark-make-record): Use derived-mode-p and don't
bother to require `gnus'.
(gnus-summary-bookmark-jump): Don't forget to autoload.  Simplify.
* woman.el: Add bookmark declarations to silence the compiler.
(bookmark-prop-get): Use `man-args' rather than `filename' as a first
step to compatibility between man and woman bookmarks.
Adjust for Man-default-bookmark-title renaming.
(woman-bookmark-jump): Adjust accordingly.  Don't forget to autoload.
* man.el: Add bookmark declarations to silence the compiler.
(Man-name-local-regexp): Make it match NAME as well.
(Man-getpage-in-background): Return the buffer.
(Man-notify-when-ready): Use `case'.
(man-set-default-bookmark-title): Rename to Man-default-bookmark-title.
Don't hardcode "NAME".  Simplify.
(Man-bookmark-make-record): Use Man-arguments rather than buffer-name.
Rename from Man-bookmark-make-record.
(Man-bookmark-jump): Rename from man-bookmark-jump.  Simplify now that
we have the actual man-args.  Use Man-getpage-in-background rather
than `man' since the arg is already processed.  Let bookmark.el do the
window handling.  Only wait for the relevant process.
Don't forget to autoload.
* bookmark.el (bookmark-default-file): Use locate-user-emacs-file.
2010-04-12 12:09:47 -04:00
Thierry Volpiatto
45be326afc Summary: Add bookmark support for man, woman and gnus-summary.
* woman.el (woman-bookmark-make-record, woman-bookmark-jump):
New functions.
(woman-mode): Setup bookmark support.
* man.el (man-set-default-bookmark-title, man-bookmark-make-record)
(man-bookmark-jump): New functions.
(Man-mode): Setup bookmark support.
* gnus-sum.el (gnus-summary-bookmark-make-record)
(gnus-summary-bookmark-jump): New functions.
(gnus-summary-mode): Setup bookmark support.
2010-04-12 11:17:29 -04:00
Dan Nicolaescu
4794a58232 * Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
non-cpp section.
2010-04-12 07:38:42 -07:00
Dan Nicolaescu
b9465836b1 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine. 2010-04-12 07:32:10 -07:00
Jan Djärv
e18006e5c8 Restore C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM. 2010-04-12 13:28:56 +02:00
Jan Djärv
c9b389c0cc Change so emacs at least compiles.
#undef C_SWITCH_MACHINE
#undef C_SWITCH_SYSTEM
#undef C_SWITCH_X_SITE
2010-04-12 12:59:35 +02:00
Dan Nicolaescu
866a453532 Remove C_SWITCH_SYSTEM_TEMACS. 2010-04-11 14:45:59 -07:00
Dan Nicolaescu
b1f5216132 Remove C_SWITCH_SYSTEM_TEMACS.
* s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
(malloc, realloc, free): Use emacs, not temacs for conditional
definition.

* Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
(ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2010-04-11 14:43:28 -07:00
Dan Nicolaescu
76bd82023f Use autoconf, not cpp for some variables.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf.

* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf.

* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
autoconf, not cpp.
(ALL_CFLAGS): Use them as make variables.
2010-04-11 13:17:24 -07:00
Dan Nicolaescu
8d9c8ece91 Use autoconf, not cpp for some variables.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
(C_SWITCH_X_SITE): Define using autoconf, not cpp.
(ALL_CFLAGS): Use them as make variables.
(really-lwlib, really-oldXMenu): Do not pass them.
2010-04-11 13:04:24 -07:00
Jan Djärv
1ecb2d3f03 Use XFT in Lucid dialogs if available.
* 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.
2010-04-11 20:25:09 +02:00
Stefan Monnier
97e53006f6 * process.c (exec_sentinel): Preserve current-buffer. 2010-04-11 12:15:09 -04:00
Stefan Monnier
3a4fa2f208 (read_process_output): Move the save-current-buffer to
apply to both the filter and the non-filter branches.
2010-04-11 11:53:13 -04:00
Chong Yidong
3acb4c9315 Update comint-password-prompt-regexp (Bug#2817).
* comint.el (comint-password-prompt-regexp): Use regexp-opt, and
recognize ssh-keygen prompt (Bug#2817).
2010-04-10 19:54:50 -04:00
Dan Nicolaescu
88df722194 * s/msdos.h (UNEXEC): New definition. 2010-04-10 13:38:48 -07:00
Michael Albinus
b6bbb65e36 * net/tramp.el (tramp-do-copy-or-rename-file): Add progress reporter. 2010-04-10 17:51:46 +02:00
Michael Albinus
456b348e68 Synchronize with Tramp repository.
* tramp.texi (Auto-save and Backup): Remove reference to Emacs 21.
(Frequently Asked Questions): Adapt supported (X)Emacs versions.  Adapt
supported MS Windows versions.  Remove obsolete URL.  Use the $()
syntax, texi2dvi reports errors with the backquotes.

* trampver.texi: Update release number.
2010-04-10 14:59:22 +02:00
Michael Albinus
b533bc970c Synchronize with Tramp repository.
* net/tramp.el (tramp-completion-function-alist)
(tramp-file-name-regexp, tramp-chunksize)
(tramp-local-coding-commands, tramp-remote-coding-commands): Fix
docstring.
(tramp-remote-process-environment): Use `format' instead of
`concat'.
(tramp-handle-directory-files-and-attributes)
(tramp-get-remote-path): Use `copy-tree'.
(tramp-handle-file-name-all-completions): Backward/ XEmacs
compatibility: Use `completion-ignore-case' if
`read-file-name-completion-ignore-case' does not exist.
(tramp-do-copy-or-rename-file-directly): Do not use
`tramp-handle-file-remote-p'.
(tramp-do-copy-or-rename-file-out-of-band): Use
`tramp-compat-delete-directory'.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection): Use
`format-spec-make'.
(tramp-find-foreign-file-name-handler)
(tramp-advice-make-auto-save-file-name)
(tramp-set-auto-save-file-modes): Remove superfluous check for
`stringp'.  This is done inside `tramp-tramp-file-p'.
(tramp-debug-outline-regexp): New defconst.
(tramp-get-debug-buffer): Use it.
(tramp-check-for-regexp): Use (forward-line 1).
(tramp-set-auto-save-file-modes): Adapt version check.

* net/tramp-compat.el (tramp-advice-file-expand-wildcards): Wrap
call of `featurep' for 2nd argument.
(tramp-compat-make-temp-file): Simplify fallback implementation.
(tramp-compat-copy-tree): Remove function.
(tramp-compat-delete-directory): Provide implementation for older
Emacsen.

* net/tramp-fish.el (tramp-fish-handle-directory-files-and-attributes):
Do not use `tramp-fish-handle-file-attributes.

* net/trampver.el: Update release number.
2010-04-10 14:50:31 +02:00
YAMAMOTO Mitsuharu
5b253e9c5c xfns.c (Fx_show_tip): Subtract last glyph's width only when it is for padding. 2010-04-10 19:59:46 +09:00
YAMAMOTO Mitsuharu
6eff5c3dcd Don't abort try_window with fonts change when showing tooltip (Bug#2423).
* dispextern.h (TRY_WINDOW_CHECK_MARGINS)
(TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.

* xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
TRY_WINDOW_CHECK_MARGINS.

* xfns.c (Fx_show_tip): Call try_window with TRY_WINDOW_IGNORE_FONTS_CHANGE.
2010-04-10 19:52:30 +09:00
YAMAMOTO Mitsuharu
5634ff8508 xfns.c (Fx_show_tip): Undo last change. 2010-04-10 19:39:16 +09:00
Glenn Morris
ba33df004a * compile.el (compilation-save-buffers-predicate): Add missing :version tag. 2010-04-09 19:18:09 -07:00
Eric S. Raymond
004f9b3f1b Get rid of several uses of the term 'master' in favor of equivalent verbiage
using "repository".  No code changes.
2010-04-09 13:19:53 -04:00
Jan D
b13aef5499 Fix showing the complete tip the first time, bug #2423.
* xfns.c (Fx_show_tip): Call try_window in a loop until
fonts_changed_p is zero (Bug#2423).
2010-04-09 18:49:06 +02:00
Sam Steingold
0880716f50 (turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode): Remove,
`bug-reference-mode' and `bug-reference-prog-mode' can be used in hooks directly
2010-04-09 12:04:17 -04:00
Sam Steingold
4a8ae76f68 (compilation-save-buffers-predicate): Remove the "autoload" cookie. 2010-04-09 11:52:45 -04:00
Dan Nicolaescu
6aebd58cd2 Add --author support to git commit.
* 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.
2010-04-09 08:35:30 -07:00
Eric S. Raymond
f6d9077216 Improve documentation comments. 2010-04-09 10:17:52 -04:00
Eli Zaretskii
21d2848427 Fix bug#5856: don't dereference glyphs beyond end of glyph_row.
xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
 the end of TEXT_AREA.  (Bug#5856)
2010-04-09 00:14:33 +03:00
Stefan Monnier
e754e83b65 Fix some of the problems in defsubst* (bug#5728).
* emacs-lisp/cl-macs.el (defsubst*): Don't substitute non-trivial args.
(cl-defsubst-expand): Do the substitutions simultaneously (bug#5728).
2010-04-08 15:59:46 -04:00
Jan Djärv
0269ef7730 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of HAVE_GCONF. 2010-04-08 20:22:51 +02:00
Eli Zaretskii
5930fe974d Fix crash due to incorrect resolution of type of NSM characters (bug#5858).
bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
 prev.orig_type, for resolving type of NSM.
2010-04-08 20:35:10 +03:00
Jan Djärv
99852628a8 Lucid menus can now use Xft for fonts.
* 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.
2010-04-08 18:20:32 +02:00
Sam Steingold
9a15cc5a68 add ";;;###autoload" cookies 2010-04-07 12:25:49 -04:00
Sam Steingold
9e86ab0bc7 (compilation-save-buffers-predicate): New custom variable.
(compile, recompile): Pass it to `save-some-buffers'.
2010-04-07 12:20:35 -04:00
Christoph
42d3cab7ad * lib-src/makefile.w32-in: Use parenthesis for macros for nmake compatibility. 2010-04-07 15:43:04 +02:00
Jan Djärv
b0c8b840b4 wid-edit.el (widget-choose): Put cursor on second line of the buffer (Bug#5695). 2010-04-07 14:57:04 +02:00
Jan D
7fc874c42c Fix resizing for X and non-Gtk+ build. Bug #5848.
* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
  FRAME_LINE_TO_PIXEL_Y.

* xterm.c (x_set_window_size_1): Don't add border_width/height to
  pixelwidth/height.
2010-04-07 13:39:26 +02:00