1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

35549 commits

Author SHA1 Message Date
Andreas Schwab
507a173f50 Don't ignore SIGPROF in subprocesses
* process.c (create_process): Reset SIGPROF handler in the child.
* callproc.c (call_process): Likewise.
2014-01-30 18:22:30 +01:00
Paul Eggert
e9abb8a824 * xmenu.c (create_and_show_popup_menu): Port comment to C89. 2014-01-29 10:39:11 -08:00
Eli Zaretskii
824a51e6a5 Fix printing empty Lisp strings.
src/.gdbinit (xprintstr, xprintbytestr): Don't use repetition count
 of zero to print strings, GDB doesn't like it.
2014-01-29 20:17:20 +02:00
Eli Zaretskii
46f4dd40e5 src/indent.c (current_column_1): Correct commentary. 2014-01-29 20:04:11 +02:00
Eli Zaretskii
198af6dfe2 Fix bug #16576 with PRINTCHARFUN that conses output a lot.
src/print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE, not
 STRING_CHAR_AND_LENGTH, so that if the string is relocated by GC,
 we still use correct addresses.
2014-01-29 19:52:16 +02:00
Kenichi Handa
908df335d0 merge trunk 2014-01-29 22:39:00 +09:00
Kenichi Handa
52840a9cc8 Fix bug#16286 by the different way than 2014-01-26T00:32:30Z!eggert@cs.ucla.edu to preserve the code detection behavior of 24.3. 2014-01-29 22:21:25 +09:00
Martin Rudalics
5442c6cebb In x_set_tool_bar_lines of w32fns.c don't clear area on frames that are not visible.
* w32fns.c (x_set_tool_bar_lines): Don't clear area on frames
that are not visible.
2014-01-29 11:29:14 +01:00
Jan Djärv
61c2b0b326 * xmenu.c (create_and_show_popup_menu): Handle case when no key
is grabbed.

Fixes: debbugs:16565
2014-01-29 09:23:59 +01:00
Martin Rudalics
1dcb169c81 Fix Fwindow_text_pixel_size and fit-frame-to-buffer.
* xdisp.c (last_max_ascent): Re-remove after erroneously
reintroducing it on 2013-11-30 and abolishing Dmitry's removal
from 2013-03-29.
(move_it_to): Re-remove reference to last_max_ascent.
(Fwindow_text_pixel_size): Add iterator's max_ascent and
max_descent here instead of calling line_bottom_y.  Fix
doc-string.

* window.el (fit-frame-to-buffer): Fix calculations for margins and
height constraints.
2014-01-28 10:45:37 +01:00
Dmitry Antipov
2275de871d * xfaces.c (free_frame_faces): Adjust comment. 2014-01-28 11:43:24 +04:00
Dmitry Antipov
6affb4a807 * terminal.c (initial_free_frame_resources): New function.
(init_initial_terminal): Install new hook to free face cache
on initial frame and avoid memory leak.  For details, see
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01974.html>.
2014-01-28 09:55:06 +04:00
Paul Eggert
56420a1562 * lread.c (oblookup): Fix comment to match code. 2014-01-26 21:29:30 -08:00
Paul Eggert
12cb2b063b * data.c (Fstring_to_number): Document results if unparsable.
Fixes: debbugs:16551
2014-01-26 11:44:23 -08:00
Jan Djärv
4988180d71 * xterm.c (x_focus_changed): Check for non-X terminal-frame
Fixes: debbugs:16540
2014-01-26 13:17:55 +01:00
Paul Eggert
e6f29a6829 When decoding, prefer ptrdiff_t to int for buffer positions etc.
* coding.c (detect_coding_utf_8, emacs_mule_char)
(detect_coding_iso_2022, encode_coding_iso_2022, check_ascii)
(check_utf_8, decode_coding):
* coding.h (struct coding_system.errors):
Use ptrdiff_t, not int, for integer values derived from buffer and
string positions.
2014-01-25 17:20:24 -08:00
Juanma Barranquero
3fcfc4ee80 Fix ChangeLog typos. 2014-01-26 01:47:40 +01:00
Paul Eggert
4f8c23b129 Fix crash with insert-file-contents and misdecoded text.
* fileio.c (Finsert_file_contents): Set CODING_MODE_LAST_BLOCK
before invoking decode_coding_gap, since there's just one block.

Fixes: debbugs:16286
2014-01-25 16:32:30 -08:00
Martin Rudalics
45ccd90941 Fix handling of face attributes in Fx_create_frame (Bug#16529).
* w32fns.c (Fx_create_frame): Don't inhibit running Lisp code
too early.  Again run change_frame_size before assigning menu-
and tool-bar-lines.
2014-01-25 15:39:49 +01:00
Fabrice Popineau
83682f3e4d Fix bug #16517 with display change on MS-Windows while in full-screen mode.
src/w32term.c (w32_read_socket): When the WM_DISPLAYCHANGE message
 arrives, call x_check_fullscreen, in case the new display has a
 different resolution.
2014-01-25 15:04:48 +02:00
Eli Zaretskii
e96f7bf11e Fix bug #16479 with client connections while TTY menu is open.
src/term.c (read_menu_input): If the selected frame changes, exit
 the menu.
 (tty_menu_show): If the selected frame changes while we displayed
 a menu, throw to top level.
2014-01-25 10:25:51 +02:00
Stefan Monnier
afd4479fde * src/eval.c (Fsignal): Fix `debug' handling to match 2013-10-03 change. 2014-01-24 22:48:29 -05:00
Paul Eggert
0fadc0b0ae Fix bool-vector-count-population bug on MinGW64.
* data.c (count_one_bits_word): Fix bug (negated comparison)
when BITS_PER_ULL < BITS_PER_BITS_WORD.

Fixes: debbugs:16535
2014-01-24 12:55:22 -08:00
Bastien Guerry
9940e3466e * editfns.c (Fconstrain_to_field): Fix typo in docstring. 2014-01-24 17:05:12 +01:00
Dmitry Antipov
aac1f8ddd5 * xdisp.c (reseat_1, Fcurrent_bidi_paragraph_direction): Avoid
undefined behavior by initializing display property bit of a
string processed by the bidirectional iterator.  For details, see
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01920.html>.
2014-01-24 07:53:16 +04:00
Paul Eggert
ed44be700c Minor cleanup of previous change.
* image.c (imagemagick_error, Fimagemagick_types):
Omit some recently-introduced and unnecessary casts and assignments.
2014-01-23 09:27:37 -08:00
Dmitry Antipov
565935c89f Fix two memory leaks discovered with Valgrind.
* ftfont.c (ftfont_list) [HAVE_LIBOTF]: Call OTF_close.
* image.c (Fimagemagick_types): Call MagickRelinquishMemory.
2014-01-23 16:18:08 +04:00
Martin Rudalics
6cb4da45dc Fixes in window size functions around Bug#16430 and Bug#16470.
* window.c (Fwindow_pixel_width, Fwindow_pixel_height)
(Fwindow_mode_line_height, Fwindow_header_line_height)
(Fwindow_right_divider_width, Fwindow_bottom_divider_width):
Minor doc-string adjustments.
(Fwindow_total_height, Fwindow_total_width): New argument ROUND.
Rewrite doc-strings.
(window_body_height, window_body_width): Do not count partially
visible lines/columns when PIXELWISE is nil (Bug#16470).
(Qfloor, Qceiling): New symbols.
* window.el (window-total-size, window-size): New argument
ROUND.
(window--min-delta-1, window-min-delta, window--max-delta-1): Be
more conservative when calculating the numbers of lines or
columns a window can shrink (Bug#16430).
(fit-window-to-buffer): Simplify code.
* term.el (term-window-width): Call window-body-width again.
2014-01-22 11:29:23 +01:00
Eli Zaretskii
f7551c6c33 Fix bug #16509 with segfault in an assertion when exiting due to missing font.
src/w32fns.c (unwind_create_frame): Avoid crashing inside assertion
 when the image cache is not yet allocated.
2014-01-21 18:08:31 +02:00
Glenn Morris
38942b9cf5 ChangeLog fixes 2014-01-21 00:49:46 -08:00
Dmitry Antipov
5004c3bfbb * buffer.c (Fkill_buffer): When killing an indirect buffer,
re-attach intervals to its base buffer (Bug#16502).
* intervals.c (set_interval_object): Move from here...
* intervals.h (set_interval_object): ... to here.  Fix comments.
2014-01-21 06:28:57 +04:00
Glenn Morris
a6c4680aa2 Fix spelling of "GNUstep" 2014-01-20 14:44:56 -05:00
Paul Eggert
009581fa65 Apply previous change even if valgrind is not in use, since it avoids undefined behavior. This is simpler. 2014-01-20 08:55:28 -08:00
Paul Eggert
3c35702fe9 Pacify valgrind by initializing buffer redisplay bit.
Problem reported by Dmitry Antipov in
<http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>.
* alloc.c (USE_VALGRIND): Move this to ...
* conf_post.h (USE_VALGRIND): ... here.  Use booleans.
* buffer.c (Fget_buffer_create): Initialize redisplay bit
to pacify valgrind.
2014-01-20 08:47:41 -08:00
Paul Eggert
f952002e0a Revert some of the CANNOT_DUMP fix.
Because of this, "make bootstrap" won't work if CANNOT_DUMP=yes,
but fixing this can wait until after the next release.
* leim/Makefile.in (RUN_EMACS): Keep EMACSLOADPATH empty.
* lisp/Makefile.in (emacs): Keep EMACSLOADPATH empty.
* src/lread.c (init_lread): Fix typo: NILP, not !NILP.

Fixes: debbugs:16494
2014-01-19 23:56:28 -08:00
Eli Zaretskii
21f9541125 Fix Cygwin w32 build broken by last commit in w32font.c.
src/w32font.c (w32_load_unicows_or_gdi32, get_outline_metrics_w)
 (get_text_metrics_w, get_glyph_outline_w, get_char_width_32_w)
 [!WINDOWSNT]: These functions are no longer compiled on Cygwin;
 they are replaced by macros that expand into direct calls to the
 corresponding functions from GDI32.DLL.
 (globals_of_w32font) [WINDOWSNT]: Don't initialize g_b_* static
 variables in the Cygwin build, they are unused.
2014-01-19 17:42:48 +02:00
Kenichi Handa
d25f735b87 composite.c (composition_update_it): Fix previous change. 2014-01-19 22:26:21 +09:00
Eli Zaretskii
5197f0c2fe Fix file name handling on MS-Windows 9X.
src/w32.c (maybe_load_unicows_dll): New function.
 src/emacs.c (main) [WINDOWSNT]: Call maybe_load_unicows_dll early
 on, to make sure we can convert file names to and from UTF-8 on
 Windows 9X.  This fixes a failure to start up because Emacs cannot
 find term/w32-win.el.  Reported by oslsachem <oslsachem@gmail.com>.
 src/w32font.c [WINDOWSNT]: Include w32.h.
 (w32_load_unicows_or_gdi32): Call maybe_load_unicows_dll, instead
 of implementing the same stuff.
 Remove now unused g_b_init_is_windows_9x.
 src/w32.h (maybe_load_unicows_dll): Add prototype.

 nt/runemacs.c (ensure_unicows_dll): Don't tell in the message box
 that "emacs -nw" can do without UNICOWS.DLL on Windows 9X.  See
 w32.c:maybe_load_unicows_dll and its callers for the reason.
2014-01-18 13:46:22 +02:00
Glenn Morris
812a093042 ChangeLog and Author: header comment fixes 2014-01-17 20:51:38 -05:00
Eli Zaretskii
20adfbd8ea Provisional fix for bug #16479 with client connecting while in a TTY menu.
src/menu.c (Fx_popup_menu): When invoking tty_menu_show, temporarily
 switch to single keyboard.  Prevents daemon crashes when a new
 client connects while we show a TTY menu in an existing client.
2014-01-17 13:55:00 +02:00
Glenn Morris
56db2b1bfd ChangeLog fixes 2014-01-16 20:54:23 -05:00
Glenn Morris
d967cd184c ChangeLog fixes 2014-01-16 00:34:43 -08:00
Paul Eggert
c91c771dbe Spelling fixes. 2014-01-15 22:24:06 -08:00
Eli Zaretskii
fa9daa2852 src/ChangeLog: Fix typos. 2014-01-15 19:56:40 +02:00
Glenn Morris
39c871402f ChangeLog fixes 2014-01-14 22:06:07 -05:00
Paul Eggert
d9784824e2 Space before paren, updating recent change. 2014-01-14 09:59:19 -08:00
Paul Eggert
d1eaf34b2f Fix MinGW64 porting problem with _setjmp.
Reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01297.html
* image.c (FAST_SETJMP, FAST_LONGJMP): New macros, replacing
the old _setjmp and _longjmp.  All uses changed.
2014-01-13 17:19:42 -08:00
Daniel Colascione
1b49bd5d72 Correctly handle reaching the end of the interval tree. (Bug#15344) 2014-01-13 15:41:43 -08:00
Martin Rudalics
a3f2bf1b86 Fix bug when resizing mini window (Bug#16424).
* xdisp.c (resize_mini_window): Round height to a multiple of
frame's line height.  Fix bug in calculation of window start
position (Bug#16424).
2014-01-13 12:30:30 +01:00
Jan Djärv
6c21e306f2 * macfont.m: Include termchar.h.
(CG_SET_FILL_COLOR_WITH_FACE_FOREGROUND)
(CG_SET_FILL_COLOR_WITH_FACE_BACKGROUND)
(CG_SET_STROKE_COLOR_WITH_FACE_FOREGROUND): Modified from
*_WITH_GC_* to take face and f as parameters.
(macfont_draw): Check for DRAW_MOUSE_FACE and set face accordingly.
Use *_WITH_FACE_*, and pass face as parameter.

Fixes: debbugs:16425
2014-01-13 11:32:48 +01:00