Commit graph

6509 commits

Author SHA1 Message Date
Eli Zaretskii
7412d42903 (Ffile_attributes): Don't allow the device number become negative. 2008-05-03 10:17:22 +00:00
Daiki Ueno
5a81d3d7fe Add epa-file-hook.elc to shortlisp as well. 2008-05-02 22:22:03 +00:00
Daiki Ueno
f83bbfac27 (lisp): Add epa-file-hook.elc. 2008-05-02 21:53:02 +00:00
Juri Linkov
2e3148e277 (Fread_from_minibuffer, Fread_string, Fread_command)
(Fread_variable, Fread_buffer, Fcompleting_read): Document
the DEFAULT argument as a list of default values in docstrings.
2008-05-02 01:02:46 +00:00
Chong Yidong
923fb88c8f * puresize.h (BASE_PURESIZE): Increase to 1210000. 2008-05-01 22:53:02 +00:00
Martin Rudalics
047aaeb9fd (make_window): Initialize resize_proportionally.
(enlarge_window): Temporarily set resize_proportionally to make
sure that shrink_windows does scale the window proportionally.
(shrink_windows): When window has resize_proportionally set try
to shrink it proportionally by stealing from other windows.
(struct saved_window, Fset_window_configuration)
(compare_window_configurations): Handle resize_proportionally.
(WINDOW_TOTAL_SIZE): New macro.
(window_min_size, shrink_windows, size_window): Use it.
(check_min_window_sizes): Removed.  Invalid values of
window-min-height|width are handled by window_min_size_2 now.
(size_window, Fsplit_window, enlarge_window)
(adjust_window_trailing_edge, grow_mini_window): Don't call
check_min_window_sizes.
(window_min_size_2, window_min_size_1, window_min_size): New
argument safe_p for retrieving "safe" minimum sizes.
(Fdisplay_buffer, Fsplit_window, enlarge_window):
(adjust_window_trailing_edge, grow_mini_window): Adjust
arguments of window_min_size... functions.
(shrink_windows): Argument min_size removed.  New argument
safe_p allows shrinking windows to their safe minimum sizes.
Calculate minimum size and decide whether a window shall be
deleted for each window individually.
(size_window): When nodelete_p equals 2, tell shrink_windows to
delete windows only if their new minimum size is no more safe.
(shrink_window_lowest_first): Call window_min_size_1 to make
sure to preserve modeline of bottom-most window when resizing
the minibuffer.
(Fset_window_configuration, Fcurrent_window_configuration)
(compare_window_configurations): Do not handle
window-min-height|width any more.
(syms_of_window): Clarify window-min-height|width doc-strings.
2008-05-01 10:17:47 +00:00
Stefan Monnier
2a54a229c0 (file_name_completion): Fix up the encoding/decoding issue
some more.  Copy some of the code from Ftry_completions.
Remove special case code that dates back to initial revision when the
slash was only added when necessary and that can't trigger nowadays.
2008-04-30 07:16:08 +00:00
Kenichi Handa
384bc6347c *** empty log message *** 2008-04-30 02:39:04 +00:00
Jason Rumney
2c2279c6c2 (Fw32_battery_status): New defun.
(syms_of_w32fns): Defsubr it.
2008-04-29 00:51:07 +00:00
Andreas Schwab
fb4a622af4 (file_name_completion): Fix another mixing of encoded
and decoded names.
2008-04-28 18:33:06 +00:00
Juanma Barranquero
23f250f4e1 (Fw32_define_rgb_color): Fix typo in docstring. 2008-04-28 16:44:15 +00:00
Juanma Barranquero
d8d30dffc2 *** empty log message *** 2008-04-27 22:03:05 +00:00
Andreas Schwab
9c691c002b (file_name_completion): Fix inappropriate mixing of
encoded and decoded names.
2008-04-27 18:06:51 +00:00
Andreas Schwab
ec1bf773df (XTread_socket): Fix use of uninitialized variable. 2008-04-27 10:44:37 +00:00
Andreas Schwab
ea6104a81e (BASE_PURESIZE): Increase to 1200000. 2008-04-27 10:21:48 +00:00
Eli Zaretskii
01388a3dd2 (Ffile_attributes) [WINDOWSNT]: Undo change from 2008-03-31, it's not needed
anymore with `struct stat' definition on nt/inc/sys/stat.h.  Undo changes
from 2007-01-12 and 2007-01-13 for the same reasons.
2008-04-26 08:23:21 +00:00
Chong Yidong
27af566c2e * m/sparc.h: Additional redefinitions for GNU/Linux. 2008-04-25 14:30:32 +00:00
Glenn Morris
9ea37b9ddd Fix dates of merge entries. 2008-04-24 05:40:09 +00:00
Miles Bader
08861c5cb8 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1126
2008-04-24 05:11:07 +00:00
Stefan Monnier
dbd50d4b77 * lisp/minibuffer.el (read-file-name-function, read-file-name-predicate)
(read-file-name-completion-ignore-case, insert-default-directory):
New vars, moved from fileio.c.
(read-file-name): New fun, moved from fileio.c.
* lisp/cus-start.el: Remove insert-default-directory and
read-file-name-completion-ignore-case.
* src/fileio.c (Vread_file_name_function, Vread_file_name_predicate)
(read_file_name_completion_ignore_case, insert_default_directory)
(Qdefault_directory): Move to minibuffer.el.
(Fread_file_name): Call the new `read-file-name' instead.
2008-04-23 18:19:57 +00:00
YAMAMOTO Mitsuharu
1289aeb85c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
Make functions non-static.
2008-04-23 08:56:42 +00:00
Miles Bader
a113b3ca32 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1121
2008-04-23 05:55:42 +00:00
Juri Linkov
88970542ac (Fswitch_to_buffer): Change interactive spec to call
read-buffer-to-switch instead of using the letter "B".
2008-04-22 19:49:26 +00:00
Stefan Monnier
92ec67e363 (Qdefault_directory): New variable.
(Fread_file_name): Use it to pass `dir' to the completion functions.
2008-04-21 21:26:02 +00:00
Juanma Barranquero
2a2e8de7c0 *** empty log message *** 2008-04-20 23:51:53 +00:00
Chong Yidong
a32b2382da * xdisp.c (pos_visible_p): Check if iterator stops on a display
string.
2008-04-20 22:46:03 +00:00
Stefan Monnier
ece5f84750 * tooltip.el (tooltip-previous-message): New var.
(tooltip-show-help-non-mode): Rewrite to better follow the behavior of the
C code (avoid overwriting a minibuffer, restore previous echo message, ...).
(tooltip-delay, tooltip-process-prompt-regexp, tooltip-strip-prompt): Simplify.
* keyboard.c (Vpre_help_message): Remove.
(show_help_echo): Remove default C code.
2008-04-19 19:30:53 +00:00
Stefan Monnier
6c8b4f07d1 (directory_files_internal, file_name_completion):
Only call ENCODE_FILE if the string is indeed decoded.
2008-04-19 03:09:47 +00:00
YAMAMOTO Mitsuharu
81fe843b5a (Vmac_ts_script_language_on_focus)
(saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
(XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
is clicked.
(x_activate_menubar): Remove extern for saved_menu_event_location.
(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
Move from mac.c.
2008-04-19 01:25:50 +00:00
Stefan Monnier
73d798d5ae * configure.in: Define USE_LUCID/USE_MOTIF in config.h.
* lwlib/Makefile.in (TOOLKIT_DEFINES): Remove.
* src/Makefile.in (TOOLKIT_DEFINES): Remove.
(LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2008-04-18 15:48:06 +00:00
Stefan Monnier
5556875b18 (Fmultibyte_char_to_unibyte): Return latin1 chars unchanged. 2008-04-18 03:26:55 +00:00
Miles Bader
d02fe47dd3 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1112
2008-04-18 02:56:45 +00:00
Stefan Monnier
8ee085a488 (Fexpand_file_name): Refine last fix so `nm' is only
relocated if it points to `name'.
2008-04-18 02:26:05 +00:00
Kenichi Handa
5dff5999c4 (Faset): Allow setting a multibyte character in an
ASCII-only unibyte string.
2008-04-17 01:11:11 +00:00
Stefan Monnier
a51f496902 * configure.in (SYNC_INPUT): Use OPTION_DEFAULT_ON and AC_DEFINE
rather than change CPPFLAGS.
(HAVE_GTK): Rename to USE_GTK.
* Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
done in config.h.
2008-04-16 19:53:06 +00:00
Juanma Barranquero
add553ac7e (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction):
Add usage in the docstring.
2008-04-16 11:37:21 +00:00
Chong Yidong
8ad7b280ea * keyboard.c (read_key_sequence): Remove always-true checks. 2008-04-15 23:35:01 +00:00
Michael Albinus
9ec3aaef2b *** empty log message *** 2008-04-14 18:44:04 +00:00
Jason Rumney
e157d7babc (w32font_open_internal): Set max_bounds.descent in
compatibility struct, for better underline positioning.
2008-04-14 16:16:01 +00:00
Michael Albinus
48f7d2134f * dbusbind.c (dbus-get-unique-name): Remove extra copying of name string. 2008-04-13 16:29:55 +00:00
Dan Nicolaescu
36c0886413 (XUINT, XSET): Remove. 2008-04-12 17:09:19 +00:00
Juanma Barranquero
f5acc07172 (Fexpand_file_name): Add declaration for `p' missing in previous change. 2008-04-12 09:15:10 +00:00
Stefan Monnier
5b5a2ea177 (Fexpand_file_name): Tighten the scope of p' and o' vars.
Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2008-04-12 05:12:18 +00:00
YAMAMOTO Mitsuharu
a1b41389e4 [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
[HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2008-04-12 01:59:22 +00:00
Stefan Monnier
492d9fd6bc * keymap.h (map_keymap_canonical): Declare.
* xmenu.c (single_keymap_panes): Use it.
2008-04-11 15:35:41 +00:00
Katsumi Yamaoka
da44dd8487 (BASE_PURESIZE): Increase to 1140000. 2008-04-11 10:23:49 +00:00
Glenn Morris
dd60787c17 (Fdefvaralias): If the alias is bound and the target is not, set the
target's value to that of the alias.
2008-04-11 03:41:34 +00:00
Stefan Monnier
c23b5410c5 (set_tty_color_mode): Left over typo. 2008-04-11 01:40:41 +00:00
Michael Albinus
474d35ca3f * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
only after check for file name handler functions. Signal, when
native functionality is not supported.
(syms_of_fileio): Declare it unconditionally.
2008-04-10 20:47:59 +00:00
Michael Albinus
e89b536d4b * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
only after check for file name handler functions. Signal, when
native functionality is not supported.
(syms_of_fileio): Declare it unconditionally.
2008-04-10 20:35:54 +00:00