aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * src/minibuf.c (read_minibuf): Disable line truncation. (Bug#5715)Glenn Morris2011-09-242-0/+8
|
* Fix minor problems found by static checking.Paul Eggert2011-09-243-2/+8
|\ | | | | | | | | * xdisp.c (string_from_display_spec): Don't assume vecsize fits in int. * indent.c (Fvertical_motion): Fix == vs = typo.
| * * xdisp.c (string_from_display_spec): Don't use int for vector length.Paul Eggert2011-09-242-1/+3
| |
| * * indent.c (Fvertical_motion): Fix == vs = typo.Paul Eggert2011-09-242-1/+5
|/
* Change the default value of redisplay-dont-pause to t.Eli Zaretskii2011-09-242-2/+5
| | | | | | | | src/dispnew.c (syms_of_display) <redisplay-dont-pause>: Default value is now t. Doc fix. doc/lispref/display.texi (Forcing Redisplay): Update the description of redisplay-dont-pause due to change in the default value. etc/NEWS: Mention the change of the default value.
* Fix vertical cursor motion when the newline is covered by a display string.Eli Zaretskii2011-09-243-49/+233
| | | | | | | | | | | src/indent.c (Fvertical_motion): Compute and apply the overshoot logic when moving up, not only when moving down. Fix the confusing name and values of the it_overshoot_expected variable; logic changes accordingly. (Bug#9254) (Bug#9549) src/xdisp.c (pos_visible_p): Produce correct pixel coordinates when CHARPOS is covered by a display string which includes newlines. (move_it_vertically_backward): Avoid inflooping when START_CHARPOS is covered by a display string with embedded newlines.
* * dbusbind.c (Fdbus_register_signal): Add match rule toMichael Albinus2011-09-242-2/+12
| | | | | | Vdbus_registered_objects_table. (Bug#9581) (Fdbus_register_method, Vdbus_registered_objects_table): Fix docstring.
* bidi.c: Whitespace changes and a few added parentheses,Richard M. Stallman2011-09-241-78/+82
| | | | to follow usual Emacs and GNU style.
* do not ignore write error for any output sizeJim Meyering2011-09-242-1/+16
| | | | | | | | | | | | | | The previous change was incomplete. While it makes emacs --batch detect the vast majority of stdout write failures, errors were still ignored whenever the output size is k * (BUFSIZ+1) - 4. E.g., on a system with BUFSIZ of 4096, $ emacs --batch --eval '(print (format "%4093d" 0))' > /dev/full \ && echo FAIL: ignored write error FAIL: ignored write error $ emacs --batch --eval '(print (format "%20481d" 0))' > /dev/full \ && echo FAIL: ignored write error FAIL: ignored write error * emacs.c (Fkill_emacs): Also test ferror. (Bug#9574)
* * src/emacs.c (Fkill_emacs): In noninteractive mode exitAndreas Schwab2011-09-232-1/+10
| | | | non-successfully if a write error occurred on stdout. (Bug#9574)
* Fix assertion failure when displaying stretch glyphs under linum-mode.Eli Zaretskii2011-09-213-4/+23
| | | | | | | src/xdisp.c (pop_it): Allow it->object that is a cons cell to pass the xassert test. src/dispextern.h (struct it): Update the comment documenting what can it->OBJECT be.
* Fix bidi-aware cursor motion inside indentation.Eli Zaretskii2011-09-202-16/+20
| | | | | | src/xdisp.c (Fcurrent_bidi_paragraph_direction): Fix search for previous non-empty line. Fixes confusing cursor motion with arrow keys at the beginning of a line that starts with whitespace.
* Fix bug #9549 with longlines-show-hard-newlines.Eli Zaretskii2011-09-202-3/+91
| | | | | | | | src/xdisp.c (set_cursor_from_row): If the row ends in a newline from a display string, extend search for cursor position to end of row. (find_row_edges): If the row ends in a newline from a display string, increment its MATRIX_ROW_END_CHARPOS by one. Handle the case of a display string with multiple newlines.
* * lread.c (Fread_from_string): Document what FINAL-STRING-INDEX is.Lars Magne Ingebrigtsen2011-09-192-0/+7
| | | | Fixes: debbugs:9493
* Fix handling of X resource for window icons.Chong Yidong2011-09-182-1/+6
| | | | | | | | | | | | | | * src/xfns.c (Fx_create_frame): Handle bitmapIcon resource as a boolean. * doc/emacs/cmdargs.texi (Icons X): Fix description of Emacs icon. * doc/emacs/xresources.texi (Table of Resources): Fix documentation of bitmapIcon. * doc/lispref/frames.texi (Management Parameters): Fix description of icon-type parameter. Fixes: debbugs:9154
* Fix bug #9545 with crash in Dired when $ is pressed.Eli Zaretskii2011-09-182-42/+4
| | | | | | src/xdisp.c (reseat_at_next_visible_line_start): Undo the change made on 2011-09-17 that saved paragraph information and restored it after the call to `reseat'.
* Fix a bug in :align-to on a TTY when the column is beyond frame width.Eli Zaretskii2011-09-182-1/+11
| | | | | src/xdisp.c (produce_stretch_glyph): Don't subtract 1 "pixel" when computing width of the stretch on a TTY.
* Fix bug #9530 on a TTY.Eli Zaretskii2011-09-182-5/+19
| | | | | | | | src/xdisp.c (display_line): Record maximum and minimum buffer positions even if no glyphs were produced (e.g., by a zero-width stretch). Fixes bug#9530 on a TTY. Under word-wrap, don't record buffer positions that will be removed from the glyph row because they don't fit.
*-. Merge changes from emacs-23 branchChong Yidong2011-09-183-4/+22
|\ \
| | * * xdisp.c (expose_window): Save original value of phys_cursor_on_p and turn ↵YAMAMOTO Mitsuharu2011-09-102-2/+15
| | | | | | | | | | | | window cursor on if cleared (Bug#9415).
| | * * src/search.c (boyer_moore): Take unibyte characters from patternAndreas Schwab2011-09-072-2/+7
| | | | | | | | | | | | literally. (Bug#9458)
* | | src/xdisp.c (reseat_at_next_visible_line_start): Fix last change.Eli Zaretskii2011-09-182-1/+5
|/ /
* | Fix minor problem found by static checking.Paul Eggert2011-09-182-3/+8
| | | | | | | | | | * xdisp.c (reseat_at_next_visible_line_start): Mark locals as initialized, to pacify gcc -Wuninitialized.
* | * fileio.c: Report proper errno when syscall falls.Paul Eggert2011-09-182-0/+12
| | | | | | | | | | | | (Finsert_file_contents): Save and restore errno, so that report_file_error outputs the correct diagnostic. (Fwrite_region) [CLASH_DETECTION]: Likewise.
* | src/xdisp.c: Revert inadvertently committed changes.Eli Zaretskii2011-09-181-11/+5
| |
* | src/.gdbinit (pgx): Fix references to fields of `struct glyph'.Eli Zaretskii2011-09-183-40/+50
| |
* | Fix bug #9530 with incorrect display of zero-width stretch.Eli Zaretskii2011-09-172-8/+19
| | | | | | | | | | src/xdisp.c (produce_stretch_glyph): Another fix for changes made on 2011-08-30T17:32:44Z!eliz@gnu.org.
* | Fix bug #9470 with slow redisplay in huge single-paragraph buffers.Eli Zaretskii2011-09-173-4/+69
| | | | | | | | | | | | | | | | | | | | | | | | src/bidi.c (MAX_PARAGRAPH_SEARCH): New macro. (bidi_find_paragraph_start): Search back for paragraph beginning at most MAX_PARAGRAPH_SEARCH lines; if not found, return BEGV_BYTE. (bidi_move_to_visually_next): Only trigger paragraph-related computations when the last character is a newline or at EOB, not just any NEUTRAL_B. src/xdisp.c (reseat_at_next_visible_line_start): Keep information about the current paragraph and restore it after the call to reseat.
* | Fix typos.Juanma Barranquero2011-09-172-2/+2
| |
* | Fix bug #9524 with cursor positioning on display strings in truncated lines.Eli Zaretskii2011-09-172-8/+15
| | | | | | | | | | src/xdisp.c (set_cursor_from_row): Don't invoke special treatment of truncated lines if point is covered by a display string.
* | lisp/window.el (window-min-width, window-state-put): Fix typos (bug#9522).Sven Joachim2011-09-171-1/+1
| |
* | * xselect.c: Relax test for outgoing X longs (Bug#9498).Paul Eggert2011-09-162-11/+36
| | | | | | | | | | | | | | (cons_to_x_long): New function. (lisp_data_to_selection_data): Use it. Correct the test for short-versus-long data; it was negated. Break out of vector loop, for efficiency, when a long datum is discovered.
* | * src/eval.c (Fquote): Document its non-consing behavior.Stefan Monnier2011-09-162-0/+12
| | | | | | | | Fixes: debbugs:9482
* | Fix a compilation error with MinGW GCC 3.x in tiff_handler.Eli Zaretskii2011-09-162-2/+18
| | | | | | | | | | src/image.c (tiff_handler): Work around a bug in MinGW GCC 3.x (see GCC PR/17406) by declaring this function with external scope.
* | * editfns.c (Fformat): Fix bug in text-property fix (Bug#9514).Paul Eggert2011-09-152-6/+7
| | | | | | | | Don't mishandle (length (format "%%")) and (format "%4000s%%" "").
* | Fix my ChangeLog entry.Paul Eggert2011-09-151-2/+2
| |
* | Fix a typo in comment from 2011-09-15T15:41:03Z!eliz@gnu.org.Eli Zaretskii2011-09-151-1/+5
| |
* | * src/editfns.c (Fformat): Correctly handle text properties on "%%".Andreas Schwab2011-09-152-3/+10
| |
* | Add comments about special meaning of TAB characters in compositions.Eli Zaretskii2011-09-155-0/+20
| | | | | | | | | | | | | | | | | | | | src/xterm.c (x_draw_composite_glyph_string_foreground): src/w32term.c (x_draw_composite_glyph_string_foreground): src/term.c (encode_terminal_code): src/composite.c (composition_update_it, get_composition_id): src/xdisp.c (get_next_display_element) (fill_composite_glyph_string): Add comments about special meaning of TAB characters in a composition.
* | * editfns.c (Fformat): Fix off-by-1 bug for "%%b" (Bug#9514).Paul Eggert2011-09-152-2/+9
| | | | | | | | | | This occurs when processing a multibyte format, which can happen when using 'eval'. Problem reported by Wolfgang Jenker.
* | Fix bug #9495 with cursor positioning on truncated lines.Johan Bockgård2011-09-152-1/+9
| | | | | | | | | | | | | | Patch by Johan Bockgוrd <bojohan@gnu.org> src/xdisp.c (try_cursor_movement): Only check for exact match if cursor hpos found by set_cursor_from_row is valid. (Bug#9495)
* | xdisp.c (hscroll_window_tree): Sync comment with the code.Eli Zaretskii2011-09-151-3/+3
| |
* | Remove unused external symbols.Paul Eggert2011-09-148-14/+16
| | | | | | | | | | | | | | | | | | * dispextern.h (calc_pixel_width_or_height): Remove decl. * xdisp.c (calc_pixel_width_or_height): Now static. * doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove. * indent.c (check_display_width): * w32term.c: Fix comment to match code. * xterm.c, xterm.h (x_catching_errors): Remove.
* | * xselect.c: Use signed conversions more consistently (Bug#9498).Paul Eggert2011-09-142-4/+14
| | | | | | | | | | | | | | | | | | (selection_data_to_lisp_data): Assume incoming selection data are signed integers, not unsigned. This is to be consistent with outgoing selection data, which was modified to use signed integers in as part of the fix to Bug#9196 in response to Jan Djärv's comment in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#32> that X11 expects long, not unsigned long.
* | xdisp.c (try_window_reusing_current_matrix): Fix incorrect computation of ↵Eli Zaretskii2011-09-142-1/+7
| | | | | | | | | | | | | | loop end. src/xdisp.c (try_window_reusing_current_matrix): Fix incorrect computation of loop end. Reported by Johan Bockgård <bojohan@gnu.org>.
* | * lisp/window.el (window-deletable-p): Never delete last frame on a terminal.Chong Yidong2011-09-132-12/+4
| | | | | | | | * src/frame.c (Fother_visible_frames_p): Function deleted.
* | Fix bug #2496 with column counting in presence of display tables.Eli Zaretskii2011-09-122-1/+6
| | | | | | | | | | src/indent.c (compute_motion): Process display vector front to back rather than the other way around.
* | * src/fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.Stefan Monnier2011-09-112-1/+5
| |
* | * minibuf.c (Fread_from_minibuffer): Doc fix.Chong Yidong2011-09-112-6/+9
| |
* | Fix bug #9475 with alignment in *Completions* buffer.Eli Zaretskii2011-09-112-1/+6
| | | | | | | | | | src/xdisp.c (produce_stretch_glyph): Fix a typo made in changes from 2011-08-30T17:32:44Z!eliz@gnu.org.