1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 20:50:52 -08:00
Commit graph

32299 commits

Author SHA1 Message Date
Joakim Verona
1722eccee3 more navigation signals work 2011-11-03 13:38:23 +01:00
Joakim Verona
67be5954c0 upstream 2011-11-02 12:27:54 +01:00
Joakim Verona
99a92fa394 tiny signal debug change 2011-11-02 12:23:09 +01:00
Eli Zaretskii
26b46e515c Rename locals to match their nature.
src/xdisp.c (mouse_face_from_buffer_pos, note_mouse_highlight): Rename
 cover_string to disp_string.
2011-11-01 21:19:07 +02:00
Eli Zaretskii
bc17a887d1 Fix mouse highlight in continued lines on a TTY.
src/xdisp.c (mouse_face_from_buffer_pos): Fix a typo in a comment.
 Don't stop backward scan on the continuation glyph, even though
 its CHARPOS is positive.
2011-11-01 20:57:03 +02:00
Martin Rudalics
4ee8844078 Remove unused variable temp-buffer-show-specifiers.
* window.c (temp_output_buffer_show): Don't use
Vtemp_buffer_show_specifiers.
(Vtemp_buffer_show_specifiers): Remove unused variable.
* help.el (with-help-window): Don't reference
temp-buffer-show-specifiers in doc-string.
2011-11-01 17:21:41 +01:00
Joakim Verona
5a2b320076 upstream 2011-11-01 13:25:00 +01:00
Joakim Verona
8bf21b996e more signal handler skeletons 2011-11-01 13:16:49 +01:00
Joakim Verona
e66447130e download url is sent to emacs 2011-11-01 12:27:49 +01:00
Joakim Verona
ae2cf93647 initial signal handling for downloads 2011-11-01 12:00:58 +01:00
Eli Zaretskii
c2ff3c02a4 Fix random crashes while scrolling backwards.
src/xdisp.c (try_cursor_movement): Make sure ROW isn't decremented
 past the beginning of the current glyph matrix.
2011-10-30 20:07:48 +02:00
Jan Djärv
6e56383b57 Fix bug 9869.
xterm.c: Include X11/Xproto.h if HAVE_GTK3.
(x_error_handler): Ignore BadMatch for X_SetInputFocus for
HAVE_GTK3 (Bug#9869).
2011-10-30 19:04:13 +01:00
Jan Djärv
3b574623e9 * gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
type to GDK_NOTHING so valgrind does not complain.

Fixes: debbugs:9901
2011-10-30 18:31:02 +01:00
Jan Djärv
b77a6a7f9c Fix hang after C-z in gnome-shell.
* xterm.c: Declare x_handle_net_wm_state to return int.
(handle_one_xevent): Check if we are iconified but don't have
_NET_WM_STATE_HIDDEN.  If do, treat as deiconify.
(get_current_wm_state): Return non-zero if not hidden,
check for _NET_WM_STATE_HIDDEN (Bug#9893).
(do_ewmh_fullscreen): Ignore return value from get_current_wm_state.
(x_handle_net_wm_state): Return what get_current_wm_state returns.
(x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden.

* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
2011-10-30 18:17:48 +01:00
Paul Eggert
196e41e4ae * alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,
so that this new function doesn't get optimized away by a
whole-program optimizer.  Make the 2nd arg EMACS_INT, not int.
2011-10-29 10:25:44 -07:00
Andreas Schwab
021f2e1a47 * src/frame.h (MOUSE_HL_INFO): Remove excess parens. 2011-10-29 17:50:30 +02:00
Eli Zaretskii
4452fb80c7 Fix attribution for last commit in src/ChangeLog. 2011-10-29 15:38:21 +02:00
Eli Zaretskii
8b058d4474 Fix the `xbytecode' user-defined command in .gdbinit.
src/.gdbinit (xprintbytestr): New command.
 (xwhichsymbols): Renamed from `which'; all callers changed.
 (xbytecode): Print the byte-code string as well.
 src/alloc.c (which_symbols): New function.
2011-10-29 15:35:23 +02:00
Eli Zaretskii
aa4dfba7fd Revert last commit. 2011-10-29 12:02:39 +02:00
Eli Zaretskii
567843934e Fix bug #9902 with crash caused by clearing mouse highlight.
src/xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
 hlinfo->mouse_face_window is nil.
2011-10-29 11:36:42 +02:00
Andreas Schwab
21b7206797 Fixes: debbugs:9903
* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty
line.
2011-10-29 10:54:06 +02:00
Glenn Morris
83ed7b5c7e Revert problematic change to wait_reading_process_output.
* src/process.c (wait_reading_process_output): Revert 2009-08-30 change.
Not clear what it was for, and it causes various bugs.  (Bug#9839)
2011-10-28 20:12:02 -04:00
Joakim Verona
bd5feebdfc upstream 2011-10-29 00:26:59 +02:00
Eli Zaretskii
5a7a728bb7 Fix use of uninitialized variable.
src/xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
 possible random value that matches one of those tested as
 condition to clear the mouse face.
2011-10-28 20:41:09 +02:00
Chong Yidong
d3d0842fe2 * src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
See:
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html
2011-10-28 23:17:09 +08:00
Dan Nicolaescu
31b39d1389 * src/window.c (make_window): Initialize phys_cursor_on_p. 2011-10-28 08:34:06 -06:00
Joakim Verona
fc7ee8f786 some fruitless webkit size experiments 2011-10-28 16:26:43 +02:00
Stefan Monnier
9aba60432c * src/lisp.h (struct Lisp_Symbol): Update comments. 2011-10-28 09:48:19 -04:00
Juanma Barranquero
c20992f469 src/w32font.c (w32_load_unicows_or_gdi32): Add missing return. 2011-10-28 12:59:24 +02:00
Eli Zaretskii
db4f02f208 Fix bug #8562 with Emacs display on Windows 9X.
Thanks to oslsachem <oslsachem@gmail.com> for helping to debug this.

 src/w32font.c (g_b_init_is_w9x, g_b_init_get_outline_metrics_w)
 (g_b_init_get_text_metrics_w, g_b_init_get_glyph_outline_w)
 (g_b_init_get_glyph_outline_w): New static variables.
 (GetOutlineTextMetricsW_Proc, GetTextMetricsW_Proc)
 (GetGlyphOutlineW_Proc): New typedefs.
 (w32_load_unicows_or_gdi32, get_outline_metrics_w)
 (get_text_metrics_w, get_glyph_outline_w, globals_of_w32font): New
 functions.
 (w32font_open_internal, compute_metrics): Call
 get_outline_metrics_w, get_text_metrics_w, and get_glyph_outline_w
 instead of calling the "wide" APIs directly.
 src/emacs.c (main) [HAVE_NTGUI]: Call globals_of_w32font.
 src/w32.h (syms_of_w32font): Add prototype.
2011-10-28 11:54:02 +02:00
Juanma Barranquero
87e68db473 src/window.c: Fix typos in docstrings. 2011-10-27 16:35:51 +02:00
Joakim Verona
b70516db12 upstream 2011-10-27 11:15:25 +02:00
Chong Yidong
435c1d6793 More gnutls memory fixes.
* src/gnutls.c (emacs_gnutls_deinit): Deinit the gnutls_state if it is
non-NULL, regardless of GNUTLS_INITSTAGE.
(Fgnutls_boot): Cleanups.  Call emacs_gnutls_deinit if we signal
an error.  Set process slots as soon as we allocate them.

* src/gnutls.h (GNUTLS_LOG, GNUTLS_LOG2): Fix macros.

* src/process.c (make_process): Set gnutls_state to NULL.
2011-10-27 16:07:28 +08:00
Chong Yidong
9c6c6f495b Fix a memory leak in the built-in GnuTLS support.
* src/gnutls.c (emacs_gnutls_deinit): New function.  Deallocate
credentials structures as well as calling gnutls_deinit.
(Fgnutls_deinit, Fgnutls_boot): Use it.

* src/process.c (make_process): Initialize GnuTLS credentials to NULL.
(deactivate_process): Call emacs_gnutls_deinit.
2011-10-27 14:07:09 +08:00
Juanma Barranquero
657d08d30a src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall. 2011-10-27 02:59:21 +02:00
Juanma Barranquero
a7ef684b46 Fix typos. 2011-10-26 16:07:31 +02:00
Juanma Barranquero
5430d39930 * lisp/term/w32-win.el (w32-default-color-map): Declare obsolete.
* src/w32fns.c (w32_default_color_map): New function, extracted from
  Fw32_default_color_map.
  (Fw32_default_color_map, Fx_open_connection): Use it.
2011-10-26 15:42:33 +02:00
Joakim Verona
fa25a460d0 upstream 2011-10-26 13:50:37 +02:00
Stefan Monnier
71d4c2a518 * lisp/progmodes/octave-*.el: Update maintainer. 2011-10-25 21:18:13 -04:00
Paul Eggert
fe0055fa74 * dispextern.h (Fcontrolling_tty_p): New decl (Bug#6649 part 2). 2011-10-25 09:36:20 -07:00
Stefan Monnier
e6346438e2 Make function-key-map apply when key is bound to `undefined'.
* src/keyboard.c (test_undefined): New function.
(read_key_sequence): Use it to detect when a key is bound to `undefined'.

Fixes: debbugs:9751
2011-10-25 08:54:04 -04:00
Enami Tsugutomo
e112cc3727 * sysdep.c (init_sys_modes): Fix the check for the controlling terminal.
Fixes: debbugs:6649
2011-10-25 12:27:47 +08:00
Joakim Verona
ac8bd0ce49 upstream 2011-10-24 08:53:10 +02:00
Eli Zaretskii
55622b93c9 src/bidi.c: Fix a typo in a comment. 2011-10-20 18:37:10 +02:00
Eli Zaretskii
7b5d6677ec Improve the speedup of bidi display introduced in 2011-10-18T16:56:09Z!eliz@gnu.org for bug#9771.
src/dispextern.h (struct bidi_it): New member next_en_type.
 src/bidi.c (bidi_line_init): Initialize the next_en_type member.
 (bidi_resolve_explicit_1): When next_en_pos is valid for the
 current character, check also for next_en_type being WEAK_EN.
 (bidi_resolve_weak): Don't enter the expensive loop if the current
 position is before next_en_pos.  Record the bidi type of the first
 non-ET, non-BN character we find, in addition to its position.
 (bidi_level_of_next_char): Invalidate next_en_type when
 next_en_pos is over-stepped.
2011-10-20 14:39:52 +02:00
Paul Eggert
7da0b018f2 Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794)
* configure.in (AC_STRUCT_TM, AC_STRUCT_TIMEZONE, HAVE_TM_GMTOFF):
Remove; no longer needed, now that we defer to strftime for time
zone names.
* src/editfns.c: Rewrite current-time-zone so that it invokes
the equivalent of (format-time-string "%Z") to get the time zone name.
This fixes a bug when the time zone name contains characters that
need converting from the system time locale to Emacs internal format.
This fixes a shortcoming that I introduced in my 1999-10-19 patch:
that patch fixed format-time-string to do the conversion, but
I forgot to fix current-time-zone.
(format_time_string): New function, containing most of
what Fformat_time_string used to contain.
(Fformat_time_string): Rewrite in terms of format_time_string.
This doesn't change this function's behavior.
(current-time-zone): Rewrite to use format_time_string.
This fixes the bug reported by Michael Schierl in
<http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00334.html>.
Jason Rumney's 2007-06-07 change worked around this bug, but
didn't fix it.
* src/systime.h (tzname, timezone): Remove no-longer-used declarations.
2011-10-19 23:52:55 -07:00
Eli Zaretskii
12b3296319 Followup to 2011-10-19T09:48:35Z!eliz@gnu.org.
src/xdisp.c (try_window_reusing_current_matrix): If a line ends in a display
 vector or the next line starts in a display vector, continue
 redrawing the window even though the character position of
 start_row was reached.

Fixes: debbugs:9771
2011-10-19 13:46:17 +02:00
Eli Zaretskii
8547b010fa Fix part 2 of bug #9771 with lines that start with a display vector.
src/xdisp.c (start_display): If the character at POS is displayed
 via a display vector, reset IT->current.dpvec_index to zero.
2011-10-19 11:48:35 +02:00
Chong Yidong
4e948d153a Have nobreak-char-display handle U+2010 and U+2011.
See discussion at
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00747.html

* src/xdisp.c (get_next_display_element): Handle U+2010 and U+2011
with nobreak-char-display too.
2011-10-18 17:07:56 -04:00
Joakim Verona
6e73a2ebf0 upstream 2011-10-18 21:26:54 +02:00