1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
Commit graph

32472 commits

Author SHA1 Message Date
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
Chong Yidong
e63c261b77 Merge 2012-04-09 GnuTLS fix from trunk 2012-04-10 16:00:43 +08:00
Eli Zaretskii
4c6fe6c009 Fix wording of comment in the last commit. 2012-04-09 15:46:34 +03:00
Eli Zaretskii
e53357c466 Fix bug #11199 with killing a line at EOB that was bidi-reordered.
src/xdisp.c (find_last_unchanged_at_beg_row): Don't consider a row
 "unchanged" if its end.pos is beyond ZV.
2012-04-09 15:28:45 +03:00
Jan Djärv
aff67c8241 * nsterm.m (constrainFrameRect): Always constrain when there is only
one screen.

Fixes: debbugs:10962
2012-04-09 12:01:04 +02:00
Eli Zaretskii
2f8e16b2a3 Warning comments about subtleties of fetching characters from buffers/strings.
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.
2012-04-06 16:10:30 +03:00
Chong Yidong
3d439cd10f Several miscellaneous doc changes.
* 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.
2012-04-04 15:54:02 +08:00
Eli Zaretskii
8bc53d00e3 Fix unsafe use of alloca reported in bug #11138.
src/w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA
 instead of alloca.
2012-04-01 19:55:30 +03:00
Andreas Schwab
3b0512a3d5 Fixes: debbugs:11141
* w32menu.c (is_simple_dialog): Properly check lisp types.
2012-04-01 18:42:57 +02:00
Eli Zaretskii
979022ef17 Fix bug #11063 with move_it_by_lines when there's a before-string at bol.
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.
2012-03-31 22:30:53 +03:00
Eli Zaretskii
a6b1c7ccc3 Fix bug #7464 with mouse highlight after "C-x 1".
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.
2012-03-31 21:10:34 +03:00
Eli Zaretskii
697ba24bbf Remove an incorrect assertion on move_it_by_lines.
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)
2012-03-31 20:08:38 +03:00
Eli Zaretskii
8427ddd200 Fix cursor positioning in rows completely covered by display strings.
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.
2012-03-31 10:45:33 +03:00
Eli Zaretskii
65a0a73847 Fix bug #11068 with window display when default face was remapped.
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.
2012-03-30 11:45:27 +03:00
Eli Zaretskii
581355cc06 Discourage in comments from defining HAVE_GETCWD on MS-Windows.
src/s/ms-w32.h: Discourage from defining HAVE_GETCWD.
 nt/config.nt: Discourage from defining HAVE_GETCWD.
2012-03-29 22:06:39 +02:00
Stefan Monnier
e8fc049ff7 * src/keyboard.c (safe_run_hooks_error): Don't unquote strings. 2012-03-28 11:54:54 -04:00
Glenn Morris
4fb9a54314 Small doc and elisp manual fixes related to searching
* 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.
2012-03-26 23:46:42 -07:00
Kenichi Handa
679910f18b dispextern.h (struct glyph): Fix previous change. Change the bit length of glyphless.ch to 25 (Bug#11082). 2012-03-26 14:43:05 +09:00
Chong Yidong
90d49b7fb2 New variable selection-inhibit-update-commands, for inhibiting selection 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
2012-03-26 12:06:31 +08:00
Fabrice Popineau
f514f6f0e3 Remove dead MSVC-specific code.
src/w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.
2012-03-25 20:30:50 +02:00
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