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

32518 commits

Author SHA1 Message Date
Eli Zaretskii
aa36e4d28b Fix bug #12403 with garbled display under non-zero scroll-margin.
src/xdisp.c (try_window_reusing_current_matrix): Under bidi
 reordering, locate the cursor by calling set_cursor_from_row; if
 that fails, clear the desired glyph matrix before returning a
 failure indication to the caller.  Fixes leaving garbled display
 when fast scrolling with a down-key when scroll-margin is non-zero.
2012-09-12 20:12:10 +03:00
Jan Djärv
e0453b552e * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
does not become zero.  Backport from trunk.

Fixes: debbugs:12234
2012-09-12 16:59:56 +02:00
Chong Yidong
19c17fc147 Update release logs 2012-08-24 17:53:39 +08:00
Eli Zaretskii
36c46f8e09 Fix bug #12242 with crashes in ralloc.c on OpenBSD.
src/ralloc.c (free_bloc): Don't dereference a 'heap' structure if it
 is not one of the heaps we manage.
2012-08-24 11:26:46 +03:00
Chong Yidong
ddf0e868c2 Bump version to 24.2 2012-08-16 00:12:37 +08:00
Glenn Morris
8c95e66453 * src/eval.c (Fcalled_interactively_p): Doc fix. (Bug#11747) 2012-08-14 14:43:08 -04:00
Ulrich Mueller
7f654971e0 * systime.h (EMACS_TIME_CMP): Don't cast time_t values to long.
Fixes: debbugs:11712
2012-08-14 14:58:01 +08:00
Eli Zaretskii
b7f501c736 Backport: Don't disable Unicode menus on Windows NT and later.
src/w32menu.c: Include w32heap.h.
 (add_menu_item): If the call to AppendMenuW (via
 unicode_append_menu) fails, disable Unicode menus only if we are
 running on Windows 9X/Me.
 src/makefile.w32-in ($(BLD)/w32menu.$(O)): Depend on w32heap.h.
2012-08-13 21:34:37 +03:00
Chong Yidong
170aedb97e Backport fix for Bug#11677 from trunk 2012-08-13 13:11:19 +08:00
Jan Djärv
c17d5a38db Backports for 1995-05-29T20:16:10Z!kwzh@gnu.org, 1995-05-03T21:38:13Z!rms@gnu.org and 1995-05-31T19:46:12Z!kwzh@gnu.org.
* nsmenu.m (ns_update_menubar): Add braces to ambigous if-else.

* nsmenu.m (Popdown_data): New struct.
(pop_down_menu): p->pointer is Popdown_data.  Release the pool and
free Popdown_data.
(ns_popup_dialog): Use NSAutoreleasePool and pass it to pop_down_menu.
(initWithContentRect): Make imgView and contentView non-static
and autorelease them.  Also autorelease img and matrix.
(dealloc): Remove (Bug#1995-05-29T20:16:10Z!kwzh@gnu.org).

* nsterm.m (keyDown:): Interpret flags without left/right bits
as the left key (Bug#1995-05-03T21:38:13Z!rms@gnu.org).

* nsterm.m (ns_read_socket): Return early if there is a modal
window (Bug#1995-05-31T19:46:12Z!kwzh@gnu.org).
2012-08-12 11:31:53 +02:00
YAMAMOTO Mitsuharu
8ccd072a2c * unexmacosx.c (copy_data_segment): Copy initialized data in statically linked libraries from input file rather than memory. 2012-08-08 14:44:53 +09:00
YAMAMOTO Mitsuharu
db74a5fcb7 Add new load commands for OS X 10.8. 2012-08-07 12:47:26 +09:00
Chong Yidong
23dc774492 Avoid two crashes involving windows on dead frames.
* window.c (Fwindow_absolute_pixel_edges)
(Fdelete_other_windows_internal): Signal an error if the window is
on a dead frame.

Fixes: debbugs:11984
2012-07-19 11:33:08 +08:00
Eli Zaretskii
fbf31a9c2c Don't use FILE_SYSTEM_CASE in MS-DOS, or anywhere else.
src/s/msdos.h (FILE_SYSTEM_CASE): Don't define.
 src/fileio.c (FILE_SYSTEM_CASE): Don't define.
 (Ffile_name_directory, Fexpand_file_name): Don't use FILE_SYSTEM_CASE.
 Fixes problems on MS-DOS with Vtemp_file_name_pattern when
 call-process-region passes it through expand-file-name.
 src/dired.c (file_name_completion): Don't use FILE_SYSTEM_CASE.
 admin/CPP-DEFINES: Remove FILE_SYSTEM_CASE.
2012-07-14 13:46:56 +03:00
Andreas Schwab
8a05d57a7d Fixes: debbugs:11917
Fix crash when creating indirect buffer
* buffer.c (buffer_lisp_local_variables): Add argument CLONE.
Don't handle unbound variables specially if non-zero.
(Fbuffer_local_variables): Pass zero.
(clone_per_buffer_values): Pass non-zero.
2012-07-12 09:12:24 +02:00
Andreas Schwab
57570cd38d * gnutls.c (emacs_gnutls_handshake): Revert last change. Add QUIT
to make the loop interruptible.
2012-06-28 09:12:59 +02:00
Andreas Schwab
d01fd55f64 * gnutls.c (emacs_gnutls_handshake): Only retry if
GNUTLS_E_INTERRUPTED.
2012-06-26 11:39:52 +02:00
Eli Zaretskii
c81b46f68f Backport: Really fix bug #11519, by fixing the last change in ralloc.c.
src/ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
 in the logic of incrementing and decrementing the value of
 use_relocatable_buffers.
2012-06-23 14:07:01 +03:00
Glenn Morris
16905becc7 Comment 2012-06-21 16:07:26 -04:00
Glenn Morris
63541ed886 * src/charset.c (init_charset): Make lack of etc/charsets fatal. 2012-06-21 16:06:07 -04:00
Jan Djärv
50a938632d * nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't
referenced.

Fixes: debbugs:11583
2012-06-11 18:53:12 +02:00
Chong Yidong
94f0aa3464 Bump version to 24.1.
Add release logs.
Regenerate AUTHORS and ldefs-boot.el.
2012-06-01 17:51:00 +08:00
Eli Zaretskii
2517bc14d3 Improve commentary to 'struct it' in src/dispextern.h. 2012-06-01 12:14:07 +03:00
Eli Zaretskii
d5fd2c5421 Fix bug #11587 with a crash in an Info buffer under linum-mode.
src/xdisp.c (handle_stop): Detect whether we have overlay strings
 loaded by testing it->current.overlay_string_index to be
 non-negative, instead of checking whether n_overlay_strings is
 positive.
2012-05-30 21:09:17 +03:00
Chong Yidong
353c87f6ff * keymap.c (describe_map_tree): Revert 2011-07-07 change.
* doc.c (Fsubstitute_command_keys): Doc fix.

Fixes: debbugs:1169
2012-05-30 22:08:58 +08:00
Eli Zaretskii
a02ae4e5bf Don't call r_alloc_inhibit_buffer_relocation from search.c.
src/search.c (search_buffer): Remove calls to
 r_alloc_inhibit_buffer_relocation, as it is now called by
 maybe_unify_char, which was the cause of relocation of buffer text
 in bug#11519.
2012-05-29 19:01:05 +03:00
Eli Zaretskii
291d430f5f Avoid buffer text relocations in calls to STRING_CHAR_* macros.
src/charset.c (maybe_unify_char): Inhibit relocation of buffer text
 for the duration of call to load_charset, to avoid problems with
 callers of maybe_unify_char that access buffer text through C
 pointers.
 src/ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and
 decrement the inhibition flag, instead of just setting or
 resetting it.

Fixes: debbugs:11519
2012-05-28 19:50:10 +03:00
Ken Brown
2f9b9adb46 * src/callproc.c (Fcall_process): Restore a line that was accidentally commented out (bug#11547). 2012-05-24 07:21:34 -04:00
Eli Zaretskii
52c55cc7d2 Fix bug #11519 with relocation of buffer text during regex search.
src/lisp.h [REL_ALLOC]: Add prototypes for external functions
 defined on ralloc.c.
 src/buffer.c [REL_ALLOC]: Remove prototypes of
 r_alloc_reset_variable, r_alloc, r_re_alloc, and r_alloc_free,
 they are now on lisp.h.
 src/ralloc.c (r_alloc_inhibit_buffer_relocation): New function.
 src/search.c (search_buffer): Use it to inhibit relocation of buffer
 text while re_search_2 is doing its job, because re_search_2 is
 passed C pointers to buffer text.
2012-05-23 20:32:28 +03:00
Eli Zaretskii
23415acf5a Update value of window-system-version for MS-DOS build.
src/msdos.c (internal_terminal_init) <Vwindow_system_version>:
 Update value to 24.
2012-05-21 22:56:36 +03:00
Eli Zaretskii
44e2736828 A better fix for bug #11464 with pos-visible-in-window-p and R2L text.
src/xdisp.c (move_it_to): Under MOVE_TO_Y, when restoring iterator
 state after an additional call to move_it_in_display_line_to, keep
 the values of it->max_ascent and it->max_descent found for the
 entire line.
 (pos_visible_p): Revert the comparison against bottom_y to what it
 was in 2012-05-13T18:22:35Z!eliz@gnu.org.
2012-05-19 15:14:11 +03:00
Eli Zaretskii
ccbf309ce0 Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464.
src/xdisp.c (pos_visible_p): Fix last change.
2012-05-15 19:17:42 +03:00
Eli Zaretskii
c8fb9dc689 Fix bug #11464 with pos-visible-in-window-p and R2L text in L2R paragraph.
src/xdisp.c (pos_visible_p): Don't report a position visible when move_it_to
 stopped at the last line of window, which happens to be scanned
 backwards by the bidi iteration.
2012-05-13 21:22:35 +03:00
Eli Zaretskii
ac268e6786 Fix bug #11417 with infloop when left-fringe/right-fringe spec is used on TTY.
src/xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we
 already have overlays loaded.
 (handle_single_display_spec): Before returning without displaying
 fringe bitmap, synchronize the bidi iterator with the main display
 iterator, by calling iterate_out_of_display_property.
 (iterate_out_of_display_property): Detect buffer iteration by
 testing that it->string is a Lisp string.
 (get_next_display_element): When the current object is exhausted,
 and there's something on it->stack, call set_iterator_to_next to
 proceed with what's on the stack, instead of returning zero.
 (set_iterator_to_next): If called at the end of a Lisp string,
 proceed to consider_string_end without incrementing string
 position.  Don't increment display vector index past the end of
 the display vector.
2012-05-13 18:35:13 +03:00
Eli Zaretskii
82f9b393c5 Fix display when left-fringe/right-fringe display spec is invalid.
src/xdisp.c (handle_single_display_spec): Return 1 for left-margin
 and right-margin display specs even if the spec is invalid or we
 are on a TTY, and thus unable to display on the fringes.  That's
 because the text with the property will not be displayed anyway,
 so we need to signal to the caller that this is a "replacing"
 display spec.  This fixes display when the spec is invalid or we
 are on a TTY.
2012-05-11 17:05:06 +03:00
Paul Eggert
297834cdf3 * unexaix.c (make_hdr): Fix typo in prototype.
This bug broke the build on AIX.  Problem reported by Gilles Pion.
2012-05-09 12:44:19 -07:00
Eli Zaretskii
0d887c7d51 Fix failures in starting subprocesses on Windows 7.
src/w32proc.c (new_child): Force Windows to reserve only 64KB of
 stack for each reader_thread, instead of defaulting to 8MB
 determined by the linker.  This avoids failures in creating
 subprocesses on Windows 7, see the discussion in this thread:
 http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html.
2012-05-05 11:40:31 +03:00
Jim Meyering
bf98199cf1 Add NUL-termination to some uses of strncpy.
* lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
NUL-terminate the error buffer.

* src/w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).
2012-05-02 18:12:13 +08:00
Eli Zaretskii
2fa85638a0 Fix bug #11367 with assertion violation during vertical motion in egg.el.
src/xdisp.c (pos_visible_p): If already at a newline from the
 display string before the 'while' loop, don't walk back the glyphs
 from it3.glyph_row.  Solves assertion violation when the display
 string begins with a newline (egg.el).
2012-04-29 20:19:08 +03:00
Chong Yidong
9be2fd9b4f * src/xselect.c (x_convert_selection): Initialize a pointer.
Fixes: debbugs:11315
2012-04-24 10:58:26 +08:00
Eli Zaretskii
f0ee99a0d4 Avoid assertion violation when scrolling minibuffer windows.
src/xdisp.c (pos_visible_p): If the window start position is beyond
 ZV, start the display from buffer beginning.  Prevents assertion
 violation in init_iterator when the minibuffer window is scrolled
 via the scroll bar.
 src/window.c (window_scroll_pixel_based): Likewise.
2012-04-23 19:22:23 +03:00
Chong Yidong
775ab3953f Fix last fix. 2012-04-23 11:44:13 +08:00
Chong Yidong
9ec7751f83 Doc fixes for where-is-internal.
* doc/lispref/keymaps.texi (Scanning Keymaps): Fix description of
NO-REMAP arg to where-is-internal.

* src/keymap.c (where_is_internal): Doc fix (Bug#10872).
2012-04-23 11:11:28 +08:00
Glenn Morris
24c51a09d6 fileio.c fix for bug#11245
* src/fileio.c (Fcopy_file, Fset_file_selinux_context):
Ignore ENOTSUP failures from setfilecon functions.
2012-04-20 13:34:51 -04:00
Eli Zaretskii
73055685ff Fix bug #11288 with overrunning array limits.
src/dispnew.c (swap_glyph_pointers, copy_row_except_pointers): Don't
 overrun array limits of glyph row's used[] array.
2012-04-20 17:08:55 +03:00
Chong Yidong
f30d612a7a Fixes for pty handling in gdb-mi.el and process.c.
* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.
2012-04-20 14:39:29 +08:00
Glenn Morris
4373fd4326 More small doc and lispref edits related to processes
* doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
(Bindat Functions): Copyedits.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process, Fmake_serial_process): Doc fix.

* admin/FOR-RELEASE: Related markup.
2012-04-18 00:21:18 -07:00
Glenn Morris
016a35dfa7 More process-related doc and manual small edits
* doc/lispref/processes.texi (Output from Processes, Filter Functions):
Mention waiting-for-user-input-p.
(Sentinels, Query Before Exit, System Processes, Transaction Queues):
(Network Servers, Datagrams, Network Processes, Network Options)
(Network Feature Testing, Serial Ports): Copyedits.
(Network): Add encrypted network overview paragraph.
Cross-reference the Emacs-GnuTLS manual.  Use @acronym.

* lisp/net/network-stream.el (open-network-stream): Doc fix.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process): Doc fix.
2012-04-17 20:48:43 -07:00
Eli Zaretskii
20a6815736 Fix bug #11261 with cursor movement in a continued line when header line is present.
src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.
2012-04-17 18:25:17 +03:00
Atsuo Ohki
ad3a2b411d * lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n".
Fixes: debbugs:11238
2012-04-13 14:08:18 -04:00