1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

35336 commits

Author SHA1 Message Date
Dmitry Antipov
9654230233 * xterm.c (x_make_frame_visible): Restore hack which is needed when
input polling is used.  This is still meaningful for Cygwin, see
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00351.html.
* keyboard.c (poll_for_input_1, input_polling_used): Define
unconditionally.
2013-12-12 08:04:35 +04:00
Ken Brown
1421be8445 Fix conditions for prototype declarations.
* src/dispextern.h (erase_phys_cursor):
* src/keyboard.h (make_ctrl_char): Declare prototypes if HAVE_NTGUI.
2013-12-11 11:52:34 -05:00
Dmitry Antipov
5a80236fc8 * nsterm.m (x_free_frame_resources):
* term.c (tty_free_frame_resources):
* xterm.c (x_free_frame_resources): Do not check for non-NULL
face cache because it's implied by free_frame_faces anyway.
* w32term.c (x_free_frame_resources): Likewise.  Do not call
free_frame_faces twice.
2013-12-11 19:06:04 +04:00
Rüdiger Sonderfeld
4ec52e2f8c Fix docstring of format-time-string to include %F.
See discussion of Bug#15816.

* editfns.c (Fformat_time_string): Mention %F in the doc.
2013-12-11 15:42:55 +01:00
Martin Rudalics
d94c40c1b7 Various fixes around Bug#16013.
* window.c (resize_frame_windows): Don't return immediately when
the root window's size doesn't change - the minibuffer window
may still have to be repositioned/resized.
* xfns.c (Fx_create_frame): Always change the frame size after
initializing the frame's faces.
* xterm.c (handle_one_xevent): Don't set pixel sizes here,
change_frame_size should already have done it.
(x_new_font): Assign new tool- and menu-bar heights.
(x_set_window_size_1): Account for tool- and menu-bar heights
(Bug#16013). Don't set pixel sizes since change_frame_size
should already have done it.
2013-12-11 11:03:46 +01:00
Paul Eggert
a8f9bc05c3 Remove the option of using libcrypto.
This scorches the earth and waits for spring;
see Ted Zlatanov and Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00323.html>.
* configure.ac (with_openssl_default, HAVE_LIB_CRYPTO): Remove.
Do not say whether Emacs is configured to use a crypto library,
since it's no longer an option.
(gl_CRYPTO_CHECK): Define a dummy.
* lib/gl_openssl.h, m4/gl-openssl.m4: Remove.
* admin/merge-gnulib: Remove lib/gl_openssh.h and m4/gl-openssl.m4.
* src/Makefile.in (LIB_CRYPTO): Remove.
(LIBES): Don't use it.
2013-12-10 21:37:30 -08:00
Juri Linkov
26ec2ce909 * src/term.c (term_get_fkeys_1): Remove non-standard IBM terminfo
as obsolete to avoid conflicts with <S-up>.

Fixes: debbugs:13471
2013-12-11 02:32:00 +02:00
Dmitry Antipov
e8374b3959 * font.c (font_find_for_lface): Ensure SAFE_FREE on return. 2013-12-10 07:36:36 +04:00
Dmitry Antipov
a71cfa02f3 * xdisp.c (display_tool_bar_line): Don't extend on a previously
drawn tool bar items (Bug#16058).
2013-12-10 06:32:52 +04:00
Ken Brown
336fe071e5 Fix declaration of get_frame_param for cygw32 build.
* src/frame.c (get_frame_param): Make extern if HAVE_NTGUI.

* src/lisp.h (get_frame_param): Adjust conditions for prototype
declaration.
2013-12-09 15:46:07 -05:00
Dmitry Antipov
ad8a47b89f * gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]:
Avoid unused macro warning if configured --without-xft.
2013-12-09 20:30:52 +04:00
Jan Djärv
5e48429a26 * alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always. 2013-12-09 09:23:01 +01:00
Paul Eggert
09a7c0fe67 Spelling fixes. 2013-12-08 13:23:50 -08:00
Jan Djärv
b3e42b7083 Fix GNUStep toolbar not updating.
* src/nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.
2013-12-08 13:59:14 +01:00
Jan Djärv
40f18bf37e * emacs.c (main): Call fixup_locale a second time for GNUStep. 2013-12-08 13:18:13 +01:00
Martin Rudalics
acfe46025a In x_set_font mark frame as garbaged (Bug#16028).
* frame.c (x_set_font): Mark frame as garbaged (Bug#16028).
2013-12-08 10:56:02 +01:00
Paul Eggert
e9551b12f8 Use libcrypto's checksum implementations if available, for speed.
On commonly used platform libcrypto uses architecture-specific
assembly code, which is significantly faster than the C code we
were using.  See Pádraig Brady's note in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00000.html>.
Merge from gnulib, incorporating:
2013-12-07 md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
2013-12-07 md5, sha1, sha256, sha512: add 'auto', and set-default method
2013-12-04 include_next: minimize code duplication
2013-12-03 md5, sha1, sha256, sha512: support mandating use of openssl
2013-12-02 md5, sha1, sha256, sha512: use openssl routines if available
* configure.ac (--without-all): Set with_openssl_default too.
Use gl_SET_CRYPTO_CHECK_DEFAULT to default to 'auto'.
(HAVE_LIB_CRYPTO): New var.
Say whether Emacs is configured to use a crypto library.
* lib/gl_openssl.h, m4/absolute-header.m4, m4/gl-openssl.m4:
New files, copied from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h:
* lib/sha256.c, lib/sha256.h, lib/sha512.c, lib/sha512.h:
* m4/include_next.m4, m4/md5.m4, m4/sha1.m4, m4/sha256.m4, m4/sha512.m4:
Update from gnulib.
* src/Makefile.in (LIB_CRYPTO): New macro.
(LIBES): Use it.
2013-12-08 00:05:36 -08:00
Paul Eggert
95b3d095f8 * frame.h (SET_FRAME_VISIBLE): Now an inline function.
The macro didn't conform to C99 due to type mismatch,
which caused compilation failure with Sun C 5.12,
and it was confusing anyway.  Include window.h to declare
redisplay_other_windows.
2013-12-07 21:59:27 -08:00
Stefan Monnier
0d9cba29b6 * src/window.c (set_window_buffer): Update mode line.
Fixes: debbugs:16084
2013-12-07 22:07:11 -05:00
Paul Eggert
67840e6629 Fix minor problems found by static checking.
* keyboard.c (poll_for_input_1, input_polling_used):
Define only if HAVE_NTGUI.
* xmenu.c (popup_activate_callback): Omit unnecessary
check against USE_X_TOOLKIT, which must be defined here anyway.
* xterm.c, xterm.h (x_dispatch_event) [! (USE_X_TOOLKIT || USE_MOTIF)]:
Now static.
2013-12-07 15:04:10 -08:00
Martin Rudalics
947003b598 Fix int/Lisp_Object type mixup in w32_read_socket.
* w32term.c (w32_read_socket): Fix int/Lisp_Object type mixup.
2013-12-07 18:48:52 +01:00
Jan Djärv
c4142a8302 * gtkutil.c (tb_size_cb): Call xg_height_or_width_changed. 2013-12-07 18:41:02 +01:00
Jan Djärv
1bb2debd5f Fix GNUStep issues with startup.
* nsterm.h (EmacsApp): Add applicationDidFinishLaunchingCalled.

Pixel resize changes for NS.
* nsterm.m (x_set_window_size): Change parameters rows/cols to
height/width.  row/cols are locals.
Pass pixelwise to check_frame_size.  Don't set FRAME_PIXEL_WIDTH/HEIGHT.
(updateFrameSize:): Remove gsextra.  Adjust for pixelwise resize.
(windowWillResize): Remove gsextra.  Calculate extra as in
updateFrameSize.
(x_new_font): Don't change frame size if fullscreen.  Change
size pixelwise.

* nsterm.m (x_set_window_size): Remove fprintf.
(init): Define always.  Set applicationDidFinishLaunchingCalled
for GNUStep.
(applicationDidFinishLaunching:): Set
applicationDidFinishLaunchingCalled,
(applicationDidBecomeActive:): Call applicationDidFinishLaunching if
not called.
2013-12-07 17:48:12 +01:00
Jan Djärv
fa6fa1a177 Mention bug 16049. 2013-12-07 15:26:29 +01:00
Jan Djärv
7def8cbd8b Handle pixelwise resize changes in NS port.
* src/nsfns.m (Fx_create_frame): Call change_frame_size twice as per
comment in xfns.c.  Change to pixelwise call.

* src/nsterm.m (x_set_window_size): Change parameters rows/cols to
height/width.  row/cols are locals.
Pass pixelwise to check_frame_size.  Don't set FRAME_PIXEL_WIDTH/HEIGHT.
(updateFrameSize:): Remove gsextra.  Adjust for pixelwise resize.
(windowWillResize): Remove gsextra.  Calculate extra as in
updateFrameSize.
(x_new_font): Don't change frame size if fullscreen.  Change
size pixelwise.
2013-12-07 15:21:53 +01:00
Eli Zaretskii
6d6aa291f2 Fix bug #16070 with crashes when toggling buffer's multibyteness.
src/buffer.c (Fset_buffer_multibyte): Invalidate buffer caches.
2013-12-06 17:13:35 +02:00
Dmitry Antipov
64ed4306fc * xterm.c (input_signal_count): Remove.
(x_dispatch_event): Define unconditionally.
(x_make_frame_visible): Process X events until the frame
is really visible (Bug#16027).
* xterm.h (x_dispatch_event): Declare unconditionally.
2013-12-06 09:49:05 +04:00
Jan Djärv
c619527c15 Fix some pixelwise breakage, more remain.
* nsfns.m (ns_frame_parm_handlers): Add right/bottom_divider_width.

* nsterm.m (x_set_window_size): Handle pixelwise.
2013-12-05 17:20:11 +01:00
Martin Rudalics
8bea269da3 In x_new_font calculate new frame sizes from new font size (Bug#16028).
* w32term.c (x_new_font):
* xterm.c (x_new_font): Calculate new frame size from new font
size (Bug#16028).
2013-12-05 14:46:30 +01:00
Stefan Monnier
105324ced4 * src/lisp.h (FOR_EACH_TAIL): New macro.
* src/fns.c (Fdelq): Use it to avoid inf-loops; remove QUIT.
2013-12-04 17:10:46 -05:00
Stefan Monnier
22800ae936 * src/window.c (select_window): Call second wset_redisplay before we change
selected_window.

Fixes: debbugs:16034
2013-12-04 16:08:21 -05:00
Paul Eggert
c521fe2923 * bidi.c (LRM_CHAR, RLM_CHAR): Remove; no longer used. 2013-12-04 11:19:45 -08:00
Eli Zaretskii
913250cf96 Avoid compiler warning in w32xfns.c.
src/w32xfns.c: Include window.h, to avoid a compiler warning.
2013-12-04 21:05:16 +02:00
Stefan Monnier
5961ad6cd2 * src/window.c (window_scroll): Mark window for redisplay.
(scroll_command, Fscroll_other_window): Don't cause redisplay now that
window_scroll takes care of it.
(Fset_window_point, Fdelete_other_windows_internal)
(set_window_buffer, Fwindow_resize_apply, resize_frame_windows)
(Fsplit_window_internal, Fdelete_window_internal)
(Fresize_mini_window_internal, Fset_window_configuration)
(apply_window_adjustment): Use fset_redisplay and wset_redisplay to
cause redisplay instead of forcing a complete redisplay.
* src/xdisp.c (wset_redisplay): Don't set windows_or_buffers_changed if
we're only affecting the selected_window.

Fixes: debbugs:16034
2013-12-04 13:46:47 -05:00
Eli Zaretskii
ad82612405 Fix bug #16043 with crashes when displaying new bidi control characters.
src/bidi.c (bidi_get_type, bidi_get_category): Handle the isolate
 directional control characters.  Update type and category
 determination according to the UBA from Unicode v6.3.
 (bidi_category_t): New category EXPLICIT_FORMATTING.
 src/dispextern.h (bidi_type_t): Update to include new bidirectional
 properties introduced with Unicode v6.3.

 admin/unidata/unidata-gen.el (unidata-prop-alist): Update bidi-class
 to include the new isolate-related classes introduced with Unicode
 v6.3.
 (unidata-encode-val): Accept an additional optional argument, a
 warning message to emit when UnicodeData.txt defines bidi-class
 values that are not in unidata-prop-alist.  Add a comment
 explaining what should maintainers do if/when such a warning ever
 appears.
 (unidata-gen-table): Call unidata-encode-val with 3rd arg non-nil
 when generating uni-bidi.el.
2013-12-04 18:58:05 +02:00
Martin Rudalics
2db4a1b634 In XTflash fix coordinate of bottom area to flash (Bug#16044).
* xterm.c (XTflash): Fix coordinate of bottom area to flash
(Bug#16044).
2013-12-04 15:11:33 +01:00
Dmitry Antipov
a84c99500e * font.h (struct font_bitmap): Remove unused 'extra' member.
* ftfont.c (ftfont_get_bitmap): Adjust users.
2013-12-04 17:35:41 +04:00
Dmitry Antipov
a378aa9de7 * font.c (font_list_entities): Remove dummy assignment.
* font.h (struct font) [HAVE_WINDOW_SYSTEM]: Group members which are
used on graphic displays only.  Remove unused 'font_encoder' member.
* nsfont.m (nsfont_open):
* w32font.c (w32font_open_internal): Adjust users.
2013-12-04 17:08:30 +04:00
Paul Eggert
5df474aaa9 Use bool for boolean.
* tparam.c (tparam1):
* undo.c (record_point, record_property_change):
Use bool for boolean, for local vars that are always true or false.
2013-12-03 14:36:49 -08:00
Paul Eggert
2654ac09cc Minor integer overflow fixes.
* window.c (Fset_window_new_pixel): Don't let new_pixel go negative.
This improves on the previous fix to this function.
(window_resize_check): When summing up pixel counts, don't rely on
undefined behavior if the sum overflows.

Fixes: debbugs:16033
2013-12-03 13:37:41 -08:00
Martin Rudalics
0b254a38fa Add to last fix: In gtk resizing count tool and menubars. 2013-12-03 19:08:14 +01:00
Martin Rudalics
bab5c317ae Again fix last fix. 2013-12-03 18:22:05 +01:00
Martin Rudalics
4525072b21 Fix last fix (Bug#16036) 2013-12-03 12:33:13 +01:00
Martin Rudalics
7303a0aefc Fix issues related to pixelwise resizing. (Bug#16013) (Bug#16033)
* window.c (Fset_window_new_pixel): Don't choke at negative
argument value (Bug#16033).

* xfns.c (Fx_create_frame): Add another call to change_frame_size
to avoid crash in window_box_height.

* gtkutil.h: Fix external declaration of xg_frame_set_char_size.
* gtkutil.c (xg_frame_set_char_size, style_changed_cb): Fix size
calculation.
* xterm.c (x_set_window_size): Fix size calculation (Bug#16013).
2013-12-03 08:45:54 +01:00
Paul Eggert
25636e1362 Minor integer overflow fixes.
* window.c (Fset_window_new_pixel, grow_mini_window):
* xdisp.c (Fwindow_text_pixel_size):
Avoid undefined behavior on signed integer overflow.
* xfns.c (x_set_mouse_color):
Check that drag shape fits in 'unsigned', since that's what X wants.
2013-12-02 18:27:10 -08:00
Eli Zaretskii
2595af33fc src/composite.c (composition_reseat_it): Fix a typo in a comment. 2013-12-02 22:56:52 +02:00
Eli Zaretskii
21bf394d7d Improve reporting of fatal exception on MS-Windows, to aid debugging #15994.
src/w32fns.c (my_exception_handler): New function.
 (globals_of_w32fns): Set it up as the unhandled exception
 handler.  Initialize exception code and address to zeros.
 (emacs_abort): If the exception code and address are available,
 print them at the beginning of the backtrace.  Fix the format of
 printing addresses (was producing 0x0x12345678 on XP).
2013-12-02 19:28:17 +02:00
Helmut Eller
f345395c71 * lisp/emacs-lisp/debug.el (debugger-toggle-locals): New command.
(debugger-mode-map): Bind it.
(debugger--backtrace-base): New function.
(debugger-eval-expression): Use it.
(debugger-frame-number): Skip local vars when present.
(debugger--locals-visible-p, debugger--insert-locals)
(debugger--show-locals, debugger--hide-locals): New functions.
* src/eval.c (Fbacktrace__locals): New function.
(syms_of_eval): Defsubr it.
2013-12-02 09:45:22 -05:00
Dmitry Antipov
dacc9715a7 * font.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT):
Define here to unify between...
* nsterm.h, w32term.h, xterm.h: ...port-specific headers.
* w32term.h (CHECK_W32_FRAME): Remove unused macro.
2013-12-02 17:35:53 +04:00
YAMAMOTO Mitsuharu
e0e0af3bd5 Remove fringe background extension code on X11.
* xterm.h (struct scroll_bar): Remove member `fringe_extended_p'.

* xterm.c (x_draw_fringe_bitmap, x_scroll_run): Remove code for
fringe background extension.
(x_scroll_bar_create): Remove variables `sb_left' and `sb_width',
because they are now always the same as `left' and `width',
respectively.  Remove code for the case that `width' and
`sb_width' are different.
2013-12-02 10:05:57 +09:00