1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-07 20:54:32 +00:00

32449 Commits

Author SHA1 Message Date
Kenichi Handa
bf43fa51a6 dispextern.h (struct glyph): Change the bit length of glyphless.ch to 22 to make the member glyphless fit in 32 bits. 2012-03-26 00:35:23 +09:00
Eli Zaretskii
8a0c01dd25 Fix bug #9960 with MSVC build on MS-Windows.
src/s/ms-w32.h (tzname): Include time.h before redirecting to
 _tzname.  Fixes the MSVC build.
2012-03-24 15:43:21 +02:00
Andreas Schwab
8ed7952375 * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
characters.
2012-03-24 10:29:00 +01:00
Andreas Schwab
7d1c3a76cf Fixes: debbugs:11080
* xterm.c (XTread_socket): Only modify handling_signal if
!SYNC_INPUT.
2012-03-24 09:32:50 +01:00
Eli Zaretskii
e99a9b8bdc Fix bug #11073 with bidi-related crashes displaying some byte sequences.
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.
2012-03-23 14:32:23 +02:00
Troels Nielsen
5063c0e1a2 * src/process.c (wait_reading_process_output): Handle pty disconnect
by refraining from sending oneself a SIGCHLD.

Fixes: debbugs:10933
2012-03-23 08:23:14 -04:00
Chong Yidong
9f851fbd28 For line prefixes, use default face; don't inherit from previous line.
* 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
2012-03-22 15:08:17 +08:00
Stefan Monnier
0a6934fc04 Fix last ChangeLog + Andreas Politz has signed paperwork. 2012-03-21 14:27:05 -04:00
Chong Yidong
fb5b8aca99 Updates to Display chapter of Lisp manual.
* doc/lispref/display.texi (The Echo Area): Add xref to Output Streams.
(Displaying Messages): Improve doc of message.
(Echo Area Customization, Invisible Text): Copyedits.
(Invisible Text): Mention that spec comparison is done with eq.
(Width): Improve doc of char-width.
(Faces): Recommend using symbol instead of string for face name.
Minor clarifications.
(Defining Faces): Copyedits.  Update face example.
(Attribute Functions): Mark set-face-foreground etc as commands.
(Face Remapping): Mention text-scale-adjust.  Clarify
face-remapping-alist and related docs.
(Face Functions): Don't document make-face or copy-face.

* lisp/faces.el (make-face, make-empty-face, copy-face):
* lisp/face-remap.el (face-remap-add-relative, face-remap-set-base):
Doc fixes.

* src/xfaces.c (Vface_remapping_alist): Doc fix.
2012-03-21 15:02:13 +08:00
Eli Zaretskii
62356a1bdf Doc fixes in w32-specific primitives related to console codepage.
src/w32proc.c (Fw32_set_console_codepage)
 (Fw32_set_console_output_codepage, Fw32_get_codepage_charset): Doc fixes.
2012-03-20 20:49:18 +02:00
Chong Yidong
025de85b07 Update doc to reflect new non-nil value of redisplay-dont-pause.
* doc/lispref/display.texi (Forcing Redisplay): Various rewrites to reflect
new value of redisplay-dont-pause.
(Truncation): Copyedits.

* src/dispnew.c (Fredisplay, Vredisplay_preemption_period): Update doc
to reflect default non-nil value of redisplay-dont-pause.
2012-03-20 16:52:11 +08:00
Kenichi Handa
4ebb358f29 merge trunk 2012-03-19 13:17:50 +09:00
Kenichi Handa
4827f94e17 ftfont.c (ftfont_drive_otf): Mask bits of character code to make it fit in a valid range (Bug#11003). 2012-03-19 13:08:07 +09:00
Eli Zaretskii
e50a24a249 Fix bug #11035 with cursor positioning on overlay strings with newlines.
src/xdisp.c (cursor_row_p): Even if the glyph row ends in a string
 that is not from display property, accept the row as a "cursor
 row" if one of the string's character has a non-nil `cursor'
 property.  Fixes cursor positioning when there are newlines in
 overlay strings, e.g. in icomplete.el.
2012-03-18 18:57:39 +02:00
Paul Eggert
9af5ed8756 * buffer.c (compare_overlays): Don't assume args differ (Bug#6830). 2012-03-12 01:27:25 -07:00
Chong Yidong
d1f55f1668 Rename inhibit_window_configuration_change_hook to inhibit_lisp_code.
This is a tweak to 2012-02-23T07:28:21Z!cyd@gnu.org, suggested by Stefan.

* eval.c (inhibit_lisp_code): Rename from
inhibit_window_configuration_change_hook; move from window.c.

* xfns.c (unwind_create_frame_1, Fx_create_frame):
* window.c (run_window_configuration_change_hook)
(syms_of_window): Callers changed.
2012-03-12 14:34:32 +08:00
Chong Yidong
413df97302 * keymap.c (Fkey_description): Doc fix.
Fixes: debbugs:9700
2012-03-12 01:08:10 +08:00
Chong Yidong
66c5eebd41 * src/editfns.c (Fconstrain_to_field): Doc fix.
* doc/lispref/text.texi (Fields): Minor copyedit.

Fixes: debbugs:9452
2012-03-12 00:27:36 +08:00
Chong Yidong
1de11f569d * frame.c (other_visible_frames): Don't assume selected frame is visible.
Fixes: debbugs:10955
2012-03-10 15:46:07 +08:00
Stefan Monnier
cae0700001 * src/buffer.c (compare_overlays): Avoid qsort's instability.
Fixes: debbugs:6830
2012-03-09 11:46:25 -05:00
Jan Djärv
89c94350a4 * gtkutil.c (x_wm_set_size_hint): Use one row in call to
FRAME_TEXT_LINES_TO_PIXEL_HEIGHT so base_height is greater than
zero.

Fixes: debbugs:10954
2012-03-08 19:49:13 +01:00
Glenn Morris
01a6dcc883 lispref/internals.texi Memory Usage tiny change
* doc/lispref/internals.texi: (Memory Usage): Copyedit.

* src/alloc.c (misc-objects-consed): Doc fix.
2012-03-02 20:18:09 -08:00
Glenn Morris
999dd33306 lispref/internals.texi Pure Storage updates
* doc/lispref/internals.texi: (Pure Storage): Small changes.
* src/alloc.c (Fgarbage_collect): Doc fix.
2012-03-02 19:59:22 -08:00
Eli Zaretskii
3e441275a8 Fix computation of scroll-margin's character position in redisplay_window.
src/xdisp.c (redisplay_window): Pass to move_it_vertically the margin in
 pixels, not in screen lines.
2012-03-02 17:40:44 +02:00
Eli Zaretskii
b8456c5c32 Fix typos in comments.
src/xdisp.c (redisplay_window, next_element_from_string): Fix typos in
 comments.
2012-03-02 14:03:08 +02:00
Eli Zaretskii
de0100f20b Fix bug #10902 with cursor positioning at EOB.
src/xdisp.c (try_window_reusing_current_matrix): Don't move cursor
 position past the first glyph_row that ends at ZV.
2012-03-02 13:35:51 +02:00
Glenn Morris
96a72ee9ff * src/buffer.c (buffer-list-update-hook): Doc fix. 2012-03-01 21:57:19 -05:00
Eli Zaretskii
312508d72e Fix bug #10903 with displaying an empty display string.
src/xdisp.c (get_overlay_strings_1): Under bidi redisplay, call
 push_it before setting up the iterator for the first overlay
 string, even if we have an empty string loaded.
 (next_overlay_string): If there's an empty string on the iterator
 stack, pop the stack.
2012-02-29 19:50:24 +02:00
Paul Eggert
a9a769fba6 * alloc.c (mark_memory): Conditionalize recent fix on USE_USB_TAG. 2012-02-25 17:09:59 -08:00
Paul Eggert
27f3c6378b Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).
Suggested by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00692.html>.
* alloc.c (widen_to_Lisp_Object): New static function.
(mark_memory): Also mark Lisp_Objects by fetching pointer words
and widening them to Lisp_Objects.  This would work even if
USE_LSB_TAG is defined and wide integers are used, which might
happen in a future version of Emacs.
2012-02-25 11:39:42 -08:00
Chong Yidong
fa74b241a3 Document SELinux support functions in Lisp manual.
* doc/lispref/backups.texi (Making Backups): Return value of backup-buffer is
changed.

* doc/lispref/files.texi (File Attributes): Document file-selinux-context.
(Changing Files): Link to it.
(Changing Files): Document set-file-selinux-context.

* fileio.c (Ffile_selinux_context, Fset_file_selinux_context):
Doc fix.
2012-02-25 17:07:23 +08:00
Chong Yidong
3c9dfce6da Reduce x-selection-timeout to 5s, and add a message for clipboard manager saving.
* lisp/term/x-win.el (x-initialize-window-system): Reduce default for
x-selection-timeout to 5 seconds.

* src/xselect.c (Fx_selection_exists_p): Doc fix.
(x_clipboard_manager_save_all): Print an informative message
before saving to clipboard manager.

Fixes: debbugs:8869
2012-02-25 11:01:11 +08:00
Glenn Morris
f42a7b12b4 More ChangeLog fixes
The configure.in bit is already in ../ChangeLog, where it should be.
2012-02-24 14:47:53 -05:00
Glenn Morris
8e71e9f5bf Fix another ChangeLog entry
This one makes no sense, because it is editing a generated file.
Looks like it was fixed in the proper place (configure.in) 2003-01-06.
2012-02-24 14:44:16 -05:00
Glenn Morris
61bdb81653 ChangeLog fixes 2012-02-24 14:39:07 -05:00
Chong Yidong
9486df08b7 Process multiple X selection requests in process_special_events.
* src/keyboard.c (process_special_events): Handle all X selection
requests in kbd_buffer, not just the next one.

Fixes: debbugs:8869
2012-02-24 16:34:09 +08:00
Chong Yidong
b2e4ca7d12 * window.c: Fix last fix. 2012-02-24 01:40:33 +08:00
Chong Yidong
f01d3321d5 Avoid infloop in next-frame during frame creation.
See thread at http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00573.html

* src/window.c (inhibit_window_configuration_change_hook): New var.
(run_window_configuration_change_hook): Obey it.

* src/xfns.c (Fx_create_frame): Avoid window-configuration-change-hook
call when setting menu-bar-lines and tool-bar-lines parameters.
(unwind_create_frame_1): New helper function.
2012-02-23 15:28:21 +08:00
Paul Eggert
0edbf0b6fb * src/lisp.h: Improve comment about USE_LSB_TAG. 2012-02-22 07:55:46 -08:00
Chong Yidong
4d3762f78f * xterm.c (x_draw_image_relief): Fix last fix. 2012-02-22 17:08:36 +08:00
Chong Yidong
86b847b644 * src/xterm.c (x_draw_image_relief): Add missing type check for Vtool_bar_button_margin.
Fixes: debbugs:10743
2012-02-22 14:03:30 +08:00
Chong Yidong
a59225b146 Update Files chapter in Lisp manual.
* doc/lispref/files.texi (Files): Mention magic file names as arguments.
(Reading from Files): Copyedits.
(File Attributes): Mention how to change file modes.
(Changing Files): Use standard "file permissions" terminology.
Add xref to File Attributes node.
(Locating Files): Document locate-user-emacs-file.
(Unique File Names): Recommend against using make-temp-name.

* src/buffer.c (Fget_file_buffer): Protect against invalid file
handler return value.

* src/fileio.c (Vfile_name_handler_alist): Doc fix.
2012-02-21 21:24:48 +08:00
Paul Eggert
221cd41396 Spelling fix. 2012-02-20 16:16:37 -08:00
Paul Eggert
cb3a28cc90 In GDB scripts, don't assume that EMACS_INT fits in long.
* etc/emacs-buffer.gdb ($valmask): Don't assume EMACS_INT fits in 'long'.
* src/.gdbinit (xreload): Likewise.
2012-02-20 16:07:53 -08:00
Paul Eggert
310f5bd429 Fix crash due to non-contiguous EMACS_INT (Bug#10780).
* lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it.
(USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0.
It's useless in that case, and it can cause problems on hosts
that allocate halves of EMACS_INT values separately.
Reported by Dan Horák.  Diagnosed by Andreas Schwab in
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>.
* mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where
UINTPTR_MAX >> VALBITS == 0.  This is required by the above change;
it avoids undefined behavior on hosts where shifting right by more
than the word width has undefined behavior.
2012-02-20 15:09:58 -08:00
Chong Yidong
2375c96a71 Protect fileio.c primitives against invalid file handler return values.
* src/fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
(Funhandled_file_name_directory, Ffile_name_as_directory)
(Fdirectory_file_name, Fexpand_file_name)
(Fsubstitute_in_file_name): Protect against invalid file
handler return values.

Fixes: debbugs:10845
2012-02-19 17:58:23 +08:00
Eli Zaretskii
3eb49e71f7 Fix display of iterator stack by .gdbinit command "pitx".
src/.gdbinit (pitx): Fix incorrect references to fields of the
 iterator stack.
2012-02-18 18:54:12 +02:00
Chong Yidong
7b926f3f3d Clarify doc of scan-lists.
* doc/lispref/syntax.texi (Motion via Parsing): Doc fix for scan-lists.

* src/syntax.c (Fscan_lists): Doc fix.

Fixes: debbugs:10833
2012-02-17 22:01:05 +08:00
Paul Eggert
1127311509 Increase default image size limit; don't unlimit Gnus.
* lisp/gnus/shr.el (shr-rescale-image): Undo previous change; see
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
* src/image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
2012-02-14 22:40:08 -08:00
Chong Yidong
c3a70e2b95 Doc updates for defvar, defconst, and defcustom.
* lisp/custom.el (defcustom): Doc fix; note use of defvar.

* src/eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is
marked as special.  Also, starting docstrings with * is obsolete.
2012-02-15 12:00:34 +08:00