aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * src/callproc.c (Fcall_process): Restore a line that was accidentally ↵Ken Brown2012-05-242-1/+6
| | | | commented out (bug#11547).
* Fix bug #11519 with relocation of buffer text during regex search.Eli Zaretskii2012-05-235-11/+52
| | | | | | | | | | | | 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.
* Update value of window-system-version for MS-DOS build.Eli Zaretskii2012-05-212-1/+6
| | | | | src/msdos.c (internal_terminal_init) <Vwindow_system_version>: Update value to 24.
* A better fix for bug #11464 with pos-visible-in-window-p and R2L text.Eli Zaretskii2012-05-192-2/+22
| | | | | | | | | 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.
* Fix the changes in 2012-04-22T13:58:00Z!cyd@gnu.org for bug #11464.Eli Zaretskii2012-05-152-1/+5
| | | | src/xdisp.c (pos_visible_p): Fix last change.
* Fix bug #11464 with pos-visible-in-window-p and R2L text in L2R paragraph.Eli Zaretskii2012-05-132-1/+29
| | | | | | 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.
* Fix bug #11417 with infloop when left-fringe/right-fringe spec is used on TTY.Eli Zaretskii2012-05-132-5/+81
| | | | | | | | | | | | | | | | | 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.
* Fix display when left-fringe/right-fringe display spec is invalid.Eli Zaretskii2012-05-112-3/+13
| | | | | | | | | | 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.
* * unexaix.c (make_hdr): Fix typo in prototype.Paul Eggert2012-05-092-1/+6
| | | | This bug broke the build on AIX. Problem reported by Gilles Pion.
* Fix failures in starting subprocesses on Windows 7.Eli Zaretskii2012-05-052-1/+27
| | | | | | | | 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.
* Add NUL-termination to some uses of strncpy.Jim Meyering2012-05-022-2/+9
| | | | | | | * 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).
* Fix bug #11367 with assertion violation during vertical motion in egg.el.Eli Zaretskii2012-04-292-1/+20
| | | | | | | 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).
* * src/xselect.c (x_convert_selection): Initialize a pointer.Chong Yidong2012-04-242-0/+5
| | | | Fixes: debbugs:11315
* Avoid assertion violation when scrolling minibuffer windows.Eli Zaretskii2012-04-233-0/+19
| | | | | | | | 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.
* Fix last fix.Chong Yidong2012-04-231-10/+11
|
* Doc fixes for where-is-internal.Chong Yidong2012-04-232-4/+16
| | | | | | | * 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).
* fileio.c fix for bug#11245Glenn Morris2012-04-202-5/+12
| | | | | * src/fileio.c (Fcopy_file, Fset_file_selinux_context): Ignore ENOTSUP failures from setfilecon functions.
* Fix bug #11288 with overrunning array limits.Eli Zaretskii2012-04-202-4/+13
| | | | | src/dispnew.c (swap_glyph_pointers, copy_row_except_pointers): Don't overrun array limits of glyph row's used[] array.
* Fixes for pty handling in gdb-mi.el and process.c.Chong Yidong2012-04-202-10/+22
| | | | | | | | | | | | | | | | | | * 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.
* More small doc and lispref edits related to processesGlenn Morris2012-04-182-5/+4
| | | | | | | | | | | * 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.
* More process-related doc and manual small editsGlenn Morris2012-04-172-3/+12
| | | | | | | | | | | | | | | | * 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.
* Fix bug #11261 with cursor movement in a continued line when header line is ↵Eli Zaretskii2012-04-172-4/+28
| | | | | | | | | | | | 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.
* * lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n".Atsuo Ohki2012-04-132-5/+8
| | | | Fixes: debbugs:11238
* Merge 2012-04-09 GnuTLS fix from trunkChong Yidong2012-04-105-2/+50
|
* Fix wording of comment in the last commit.Eli Zaretskii2012-04-091-1/+1
|
* Fix bug #11199 with killing a line at EOB that was bidi-reordered.Eli Zaretskii2012-04-092-1/+14
| | | | | src/xdisp.c (find_last_unchanged_at_beg_row): Don't consider a row "unchanged" if its end.pos is beyond ZV.
* * nsterm.m (constrainFrameRect): Always constrain when there is onlyJan Djärv2012-04-092-2/+11
| | | | | | one screen. Fixes: debbugs:10962
* Warning comments about subtleties of fetching characters from buffers/strings.Eli Zaretskii2012-04-063-4/+34
| | | | | | | | | src/buffer.h (FETCH_CHAR, FETCH_MULTIBYTE_CHAR): src/character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Add comments about subtle differences between FETCH_CHAR* and STRING_CHAR* macros related to unification of CJK characters. For the details, see the discussion following the message here: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11073#14.
* Several miscellaneous doc changes.Chong Yidong2012-04-042-1/+5
| | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Delayed Warnings): New node. * doc/misc/gnus-faq.texi (FAQ 8-2): Mention EasyPG. * doc/misc/gnus.texi: Reduce references to obsolete pgg library. (Security): Note that epg is now the default. * doc/misc/message.texi (Using PGP/MIME): Note that epg is now the default. * doc/misc/nxml-mode.texi (Completion): C-RET is no longer bound to nxml-complete. * lisp/subr.el (delayed-warnings-hook): Doc fix. * src/keyboard.c (Vdelayed_warnings_list): Doc fix.
* Fix unsafe use of alloca reported in bug #11138.Eli Zaretskii2012-04-012-4/+14
| | | | | src/w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA instead of alloca.
* Fixes: debbugs:11141Andreas Schwab2012-04-012-4/+17
| | | | * w32menu.c (is_simple_dialog): Properly check lisp types.
* Fix bug #11063 with move_it_by_lines when there's a before-string at bol.Eli Zaretskii2012-03-312-1/+19
| | | | | | | src/xdisp.c (move_it_by_lines): When DVPOS is positive, and the position we get to after a call to move_it_to fails the IS_POS_VALID_AFTER_MOVE_P test, move to the next buffer position only if we wind up in a string from display property.
* Fix bug #7464 with mouse highlight after "C-x 1".Eli Zaretskii2012-03-312-0/+19
| | | | | | src/window.c (Fdelete_other_windows_internal): Invalidate the row and column information about mouse highlight, so that redisplay restores it after reallocating the glyph matrices.
* Remove an incorrect assertion on move_it_by_lines.Eli Zaretskii2012-03-312-1/+4
| | | | | | | src/xdisp.c (move_it_by_lines): Remove the assertion that "it->current_x == 0 && it->hpos == 0" which can be legitimately violated when there's a before-string at the beginning of a line. (Bug#11063)
* Fix cursor positioning in rows completely covered by display strings.Eli Zaretskii2012-03-312-5/+36
| | | | | | | src/xdisp.c (set_cursor_from_row): If `cursor' property on a display string comes from a `display' text property, use the buffer position of that property as if we actually saw that position in the row's glyphs.
* Fix bug #11068 with window display when default face was remapped.Eli Zaretskii2012-03-302-7/+26
| | | | | | | | | src/xdisp.c (append_space_for_newline): If the default face was remapped, use the remapped face for the appended newline. (extend_face_to_end_of_line): Use the remapped default face for extending the face to the end of the line. (display_line): Call extend_face_to_end_of_line when the default face was remapped.
* Discourage in comments from defining HAVE_GETCWD on MS-Windows.Eli Zaretskii2012-03-292-0/+7
| | | | | src/s/ms-w32.h: Discourage from defining HAVE_GETCWD. nt/config.nt: Discourage from defining HAVE_GETCWD.
* * src/keyboard.c (safe_run_hooks_error): Don't unquote strings.Stefan Monnier2012-03-282-3/+6
|
* Small doc and elisp manual fixes related to searching Glenn Morris2012-03-262-4/+10
| | | | | | | | | * doc/lispref/searching.texi (String Search): Add xref to Emacs manual. Copyedits. Mention the function word-search-regexp. (Searching and Case): Add xref to Emacs manual. Copyedits. * src/search.c (Fword_search_backward_lax, Fword_search_forward_lax): Doc fixes.
* dispextern.h (struct glyph): Fix previous change. Change the bit length of ↵Kenichi Handa2012-03-262-1/+6
| | | | glyphless.ch to 25 (Bug#11082).
* New variable selection-inhibit-update-commands, for inhibiting selection ↵Chong Yidong2012-03-262-1/+20
| | | | | | | | | | updates. * keyboard.c (Vselection_inhibit_update_commands): New variable. (command_loop_1): Use it; inhibit selection update for handle-select-window too. Fixes: debbugs:8996
* Remove dead MSVC-specific code.Fabrice Popineau2012-03-252-24/+5
| | | | src/w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.
* dispextern.h (struct glyph): Change the bit length of glyphless.ch to 22 to ↵Kenichi Handa2012-03-262-1/+6
| | | | make the member glyphless fit in 32 bits.
* Fix bug #9960 with MSVC build on MS-Windows.Eli Zaretskii2012-03-242-0/+11
| | | | | src/s/ms-w32.h (tzname): Include time.h before redirecting to _tzname. Fixes the MSVC build.
* * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6Andreas Schwab2012-03-242-1/+4
| | | | characters.
* Fixes: debbugs:11080Andreas Schwab2012-03-242-1/+11
| | | | | * xterm.c (XTread_socket): Only modify handling_signal if !SYNC_INPUT.
* Fix bug #11073 with bidi-related crashes displaying some byte sequences.Eli Zaretskii2012-03-232-5/+11
| | | | | | | | src/bidi.c (bidi_fetch_char): Use STRING_CHAR_AND_LENGTH instead of FETCH_MULTIBYTE_CHAR followed by CHAR_BYTES. Prevents crashes when fetching a multibyte character consumes more bytes than CHAR_BYTES returns, due to unification of CJK characters in string_char.
* * src/process.c (wait_reading_process_output): Handle pty disconnectTroels Nielsen2012-03-232-10/+20
| | | | | | by refraining from sending oneself a SIGCHLD. Fixes: debbugs:10933
* For line prefixes, use default face; don't inherit from previous line.Chong Yidong2012-03-223-3/+24
| | | | | | | | | | | * src/dispextern.h (struct it): New member string_from_prefix_prop_p. * src/xdisp.c (push_prefix_prop): Renamed from push_display_prop. Mark string as coming from a prefix property. (handle_face_prop): Use default face for prefix strings. (pop_it, reseat_1): Save and restore string_from_prefix_prop_p. Fixes: debbugs:4281
* Fix last ChangeLog + Andreas Politz has signed paperwork.Stefan Monnier2012-03-211-1/+1
|