1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00
Commit graph

28506 commits

Author SHA1 Message Date
Chong Yidong
87231e2cfe Fix buffer overflow in ns_get_color.
* nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2010-01-01 17:10:50 -05:00
Chong Yidong
4801c5fa40 * src/lread.c (syms_of_lread): Make it clearer that these are the
names of loaded files (Bug#5068).

* doc/lispref/loading.texi (Where Defined): Make it clearer that these
are loaded files (Bug#5068).
2010-01-01 13:14:22 -05:00
Chong Yidong
8932b1c236 * eval.c (run_hook_with_args): Handle the case where the global
value has the obsolete single-function form (Bug#5026).
2010-01-01 12:14:05 -05:00
Juanma Barranquero
5ce6e4f452 Fix typos in ChangeLogs. 2009-12-29 02:57:40 +01:00
Juanma Barranquero
96c834b62a process.c: Fix typo in comment. 2009-12-29 01:51:07 +01:00
Kenichi Handa
bcffff4634 *** empty log message *** 2009-12-28 15:09:58 +09:00
Chong Yidong
11e3c68412 * minibuf.c (Fall_completions): Minor optimization. 2009-12-27 08:11:12 +00:00
Eli Zaretskii
2d20eee317 (pitx) Fix last change. 2009-12-26 15:56:43 +00:00
Eli Zaretskii
5b28ce35e3 (pgx): Fix display of composite glyphs. Display cmp.from and cmp.to as well. 2009-12-26 12:53:42 +00:00
Kenichi Handa
31f9c37613 (command_loop_1): Fix previous change. 2009-12-25 05:27:03 +00:00
Kenichi Handa
7f0b390a50 (composition_adjust_point): Update prototype. 2009-12-25 02:44:13 +00:00
Kenichi Handa
e614ea00ff (composition_reseat_it): Don't make a composition
spanning over point.
(CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
composable characters.
(composition_adjust_point): New arg NEW_PT.  Callers changed.
2009-12-25 02:43:36 +00:00
Kenichi Handa
4abd35cb64 (command_loop_1): Force redisplay if the last point
was within a composition.
(adjust_point_for_property): Don't adjust point for automatic
composition when called after buffer modification.
2009-12-25 02:41:59 +00:00
Stefan Monnier
7450fd364a (Fsave_excursion): Mention save-current-buffer in the docstring. 2009-12-24 04:35:17 +00:00
Eli Zaretskii
be996d82f5 (pitx): Don't use enum names, use their values. Remove reference to
non-existing value GET_FROM_COMPOSITION.
(pgx): Don't use enum names, use their values.
(pitmethod): New helper command.
(pitx): Use it to display iteration method.
(pgrowit): New command.
2009-12-19 14:16:47 +00:00
Eli Zaretskii
ad9039554d ($(BLD)/cmds.$(O)): Depend on frame.h. 2009-12-19 11:58:11 +00:00
Eli Zaretskii
49105cd038 (alloc.o): Fix last change. 2009-12-19 11:27:49 +00:00
Eli Zaretskii
3f670e9acc Update dependencies in Makefile.in.
(alloc.o): Depend on termhooks.h.
(atimer.o): Depend on blockinput.h.
(buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h, and frame.h.
(callint.o): Depend on systime.h, coding.h, and composite.h.
(callproc.o): Depend on buffer.h.
(casefiddle.o): Don't depend on charset.h.
(casetab.o): Depend on character.h.
(ccl.o): Depend on composite.h.
(chartab.o): Depend on ccl.h.
(cm.o): Depend on dispextern.h.
(cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
(coding.o): Don't depend on $(INTERVALS_H).
(composite.o): Don't depend on dispextern.h explicitly (it's in
$(INTERVALS_H)).  Depend on ccl.h.
(data.o): Depend on systime.h, coding.h, composite.h, dispextern.h, font.h,
and ccl.h.
(dired.o): Depend on composite.h.
(dispnew.o): Depend on coding.h.  Don't depend explicitly on
composite.h (it's in $(INTERVALS_H)).
(doc.o): Depend on systime.h, coding.h, and composite.h.
(editfns.o): Don't depend explicitly on dispextern.h.
(emacs.o): Depend on frame.h and coding.h.
(eval.o): Depend on coding.h, composite.h, and xterm.h.
(fileio.o): Depend on frame.h and commands.h.  Don't depend
explicitly on dispextern.h.
(filelock.o): Don't depend on epaths.h and charset.h.  Depend on composite.h.
(fns.o): Don't depend on termhooks.h.
(font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
(fontset.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
$(INTERVALS_H), window.h, xterm.h.
(frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
(fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
(ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
fontset.h, ccl.h, and ftfont.h.
(ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
(gtkutil.o): Depend on dispextern.h and composite.h.
(image.o): Depend on epaths.h, character.h, coding.h, composite.h,
termhooks.h, and ccl.h.
(indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
(intervals.o): Depend on systime.h and coding.h.
(keyboard.o): Depend on composite.h and coding.h.
(keymap.o): Depend on coding.h and frame.h.
(lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
(macros.o): Depend on systime.h, coding.h, and composite.h.
(menu.o): Depend on systime.h, coding.h, composite.h, window.h, and atimer.h.
(minibuf.o): Depend on systime.h and coding.h.  Don't depend on
dispextern.h explicitly.
(print.o): Depend on termhooks.h, coding.h, and ccl.h.  Don't
depend explicitly on dispextern.h and composite.h.
(process.o): Depend on character.h, xgselect.h, and sysselect.h.
(regex.o): Don't depend on charset.h.
(scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
(search.o): Don't depend explicitly on composite.h.
(sound.o): Depend on atimer.h and systime.h.
(syntax.o): Don't depend explicitly on composite.h.
(sysdep.o): Depend on coding.h and composite.h.
(term.o): Depend on xterm.h and buffer.h.
(terminal.o): Depend on dispextern.h, composite.h, and systime.h.
(textprop.o): Don't depend on dispextern.h explicitly.
(undo.o): Depend on dispextern.h.
(window.o): Depend on coding.h and termhooks.h.  Don't depend on
dispextern.h and composite.h explicitly.
(xdisp.o): Depend on ccl.h.
(xfaces.o): Depend on coding.h and ccl.h.
(xfns.o): Depend on $(INTERVALS_H) and ccl.h.
(xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
(xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and ftfont.h.
(xgselect.o): New dependency.
(xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
(xselect.o): Depend on keyboard.h, coding.h, and composite.h.
(xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
(xsmfns.o): Depend on frame.h and dispextern.h.
(xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and sysselect.h.
2009-12-19 11:25:34 +00:00
Andreas Schwab
7a6f7feaec (Fclear_font_cache): Pass correct cache argument to
font_clear_cache.
2009-12-19 09:57:22 +00:00
Andreas Schwab
f4c210265d (prefix-args${EXEEXT}): Don't compile prefix-args.c
twice.
2009-12-17 00:03:51 +00:00
Chong Yidong
7eeb56addb Minor tweak to last change. 2009-12-15 22:53:39 +00:00
Chong Yidong
f7ab099735 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
calling file-remote-p.  Reported by Jim Meyering.
2009-12-15 22:51:31 +00:00
Michael Albinus
fa8e045a8a * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
avoid compiler warnings.  (Bug #5217).
2009-12-15 05:59:39 +00:00
Kenichi Handa
a63dba4250 (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
in 8-bit encoding.
2009-12-14 01:20:29 +00:00
Jan Djärv
36acb2a706 Set the extended window manager hint for tooltip windows.
* xfns.c (x_create_tip_frame): Set the extended window manager hint for
tooltip windows.

* xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
Xatom_net_window_type.

* xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
Xatom_net_window_type.
2009-12-13 15:39:28 +00:00
Jan Djärv
b8f0067758 Work around warning about g_set_prgname() called multiple times.
* xterm.c (my_log_handler): New function.
(x_term_init): Set my_log_handler as log handler during gtk_init
so we can filter out buggy messages. (bug #5120).
2009-12-13 14:24:22 +00:00
Jan Djärv
e5f0bc9ada Bug 5177: Scroll bar thumb did not move when scrolling with mouse wheel.
* xterm.c (xg_scroll_callback): Parameter list changed,
use parameter GtkScrollType to determine scroll/line/page.
Only allow dragging if a button < 4 is grabbed (bug #5177).
(xg_end_scroll_callback): New function.
(x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
xg_create_scroll_bar.

* gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
(scroll_end_callback): Remove.
(xg_create_scroll_bar): Add parameter end_callback, bind it to
button-release-event.  Replace value-changed event with change-value,
bug #5177,
(xg_event_is_for_scrollbar): Only return true if button is less than 4,
bug #5177.

* gtkutil.h (XG_LAST_SB_DATA): Remove.
(xg_create_scroll_bar): Add GCallback end_callback.
2009-12-13 13:31:35 +00:00
Jan Djärv
223e5fc656 xftfont.c: Parse symbolic names for constants also.
(QClcdfilter): New variable.
(xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
(syms_of_xftfont): Initialize QClcdfilter.
2009-12-13 13:16:17 +00:00
Jan Djärv
ba68c0b0c4 Fix typo. 2009-12-12 17:11:41 +00:00
Jan Djärv
3c055b77ae DPI might get set to 0 if we saw some Xsettings, but not DPI.
xsettings.c (struct xsettings): Add member seen.
(parse_xft_settings): Update member seen with what we have read.
Return 0 if Xft-settings have been parsed, 0 otherwise.
(apply_xft_settings): Only update Xft settings with what member seen
indicates as new.
2009-12-12 16:12:59 +00:00
Eli Zaretskii
05fe33ff4c (struct text_pos): Use EMACS_INT;
(struct glyph): Use EMACS_INT for charpos.
(struct it): Use EMACS_INT for stop_charpos, end_charpos, region_beg_charpos,
region_end_charpos, redisplay_end_trigger_charpos, and also for
iterator_stack_entry.end_charpos and iterator_stack_entry.stop_charpos.
2009-12-12 13:41:21 +00:00
Jan Djärv
e8d7886a67 gtkutil.c: Scroll bar thumb not updated properly (bug #5177).
(scroll_end_callback): New function (bug #5177)
(xg_create_scroll_bar): Call scroll_end_callback on button release
event (bug #5177).
(xg_event_is_for_scrollbar): != replaced with ==.
2009-12-12 12:29:15 +00:00
Kenichi Handa
d0db2ec8c0 (struct ftfont_info): New member matrix.
(ftfont_open): Setup xftfont_info->matrix.
(MFLTFontFT): New member matrix.
(FLOOR, CEIL, ROUND): New macros.
(ftfont_get_metrics): Handle matrix transformation.
(ftfont_shape_by_flt): New arg matrix.  Callers changed.
2009-12-12 02:14:16 +00:00
Kenichi Handa
91ce241591 (struct xftfont_info): New member matrix.
(xftfont_open): Setup xftfont_info->matrix.
2009-12-12 02:11:29 +00:00
Andreas Schwab
b87dd91373 * xsettings.c: Include "keyboard.h". 2009-12-09 14:30:37 +00:00
Andreas Schwab
eba5eb94c7 (xg_tool_bar_proxy_help_callback): Fix missing return. 2009-12-09 14:26:26 +00:00
Andreas Schwab
2cc7b62f11 * cmds.c: Include "frame.h".
* frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
* frame.h: Move declaration of delete_frame outside of
HAVE_WINDOW_SYSTEM.
2009-12-09 14:20:49 +00:00
Chong Yidong
a4ef73c887 * configure.in: Allow compiling Emacs with GTK on Cygwin.
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.

* src/emacs.c (main): Set the G_SLICE environment variable for Cygwin
GTK builds.
2009-12-09 01:06:32 +00:00
Andreas Schwab
944a300c0f (unexec): Don't search for .data twice. 2009-12-07 20:27:40 +00:00
Chong Yidong
426ac9499e * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
if push failed.
(handle_line_prefix): Set avoid_cursor_p here.  Check return value
of push_display_prop (Bug#5000).
2009-12-05 22:49:00 +00:00
Chong Yidong
b84ce3c5f6 Minor doc fix. 2009-12-05 20:38:05 +00:00
Chong Yidong
022eef6211 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
value of font_list_entities (Bug#5085).
2009-12-05 20:16:42 +00:00
Chong Yidong
ce75f06e91 Fix a comment and delete trailing whitespace. 2009-12-05 20:09:49 +00:00
Eli Zaretskii
bfadeadd32 (next_element_from_ellipsis): Fix a typo in the commentary. 2009-12-05 13:32:18 +00:00
Eli Zaretskii
6147a9bb21 (next_element_from_display_vector): Fix a typo in the commentary. 2009-12-05 13:21:49 +00:00
Juanma Barranquero
be95bee9b8 Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
  trailing characters, not just whitespace.
  (read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
  trailing chars, as it is already done for integers.  Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2009-12-04 16:16:26 +00:00
Eli Zaretskii
24c2d7ce87 (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete unused enumeration value. 2009-12-04 10:51:37 +00:00
Eli Zaretskii
7e6947958e (lisp, shortlisp): Replace indian.el with indian.elc. 2009-12-03 20:03:55 +00:00
Stefan Monnier
84b318269c (Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
2009-12-03 19:01:36 +00:00
Stefan Monnier
f00c449ba1 (Qseqpacket): New symbol.
(HAVE_SEQPACKET): New macro.
(Fmake_network_process): Accept new :type `seqpacket'.
(init_process): Add `seqpacket' feature when applicable.
(syms_of_process): Initialize Qseqpacket.
2009-12-03 18:51:32 +00:00