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

32371 commits

Author SHA1 Message Date
Paul Eggert
df0b2940c2 Handle overflow when computing char display width (Bug#9496).
* character.c (char_width): Return EMACS_INT, not int.
(char_width, c_string_width): Check for overflow when
computing the width; this is possible now that individual
characters can have unbounded width.  Problem introduced
by merge from Emacs 23 on 2012-01-19.
2012-02-03 11:24:22 -08:00
Michael Albinus
6bee44d640 * dbusbind.c (Fdbus_register_method): Mention the return value
:ignore in the docstring.
2012-02-02 13:47:09 +01:00
Kenichi Handa
ba1d2c3e92 merge trunk 2012-02-02 18:12:08 +09:00
Kenichi Handa
c5d3843c34 Fix previous change for Bug#6988. 2012-02-02 18:07:29 +09:00
Glenn Morris
1b9f60cc53 Tiny doc tweaks for call-process's :file spec.
* doc/lispref/processes.texi (Synchronous Processes):
Mention call-process's :file gets overwritten.

* src/callproc.c (Fcall_process, Fcall_process_region): Doc fix.

* etc/NEWS: Markup.
2012-02-01 23:21:20 -08:00
Glenn Morris
44f9273998 Native scroll-bars are not implemented for Nextstep (bug#10673)
* configure.in [HAVE_NS]: Error if use --without-toolkit-scroll-bars.

* src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
Unconditionally set to t.

* src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
* src/w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
* src/xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix.
2012-02-01 21:12:57 -05:00
Kenichi Handa
159462d4d1 merge trunk 2012-02-02 09:32:12 +09:00
Kenichi Handa
d2a51fd7a1 Inhibit null-string composition component (Bug#6988). 2012-02-02 09:30:09 +09:00
Eli Zaretskii
78cef87789 Speed up insertion of subprocess output on MS-Windows.
src/ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
 first 2 arguments are identical.  This makes inserting large
 output from a subprocess an order of magnitude faster on
 MS-Windows, where all sbrk'ed memory is always contiguous.
2012-02-01 18:51:20 +02:00
Juanma Barranquero
6df6ae42fe Fix typos in ChangeLogs. 2012-01-31 17:15:03 +01:00
Glenn Morris
c78c6e0bbf * w32term.c: Copy previous xterm.c doc fix. 2012-01-30 19:33:16 -08:00
Glenn Morris
9789766834 x-toolkit-scroll-bars doc fix.
* src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
* src/xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2012-01-30 19:07:38 -08:00
Glenn Morris
31fd3586bd Minor NEWS cleanup, mainly for "Installation Changes" section.
* etc/NEWS: Reorder items.
Standardize new --with-libfoo type configure options.
Don't say precisely which library versions are needed - it tends to
change and people who care can look at configure.
Move new Hebrew tutorial entry to "Internationalization changes" section.
Small tidy up for imagemagick and gnutls entries.

* src/gnutls.c (syms_of_gnutls): More doc (from etc/NEWS).
2012-01-28 19:08:15 -08:00
Chong Yidong
0e24a8b2f4 * src/s/gnu.h: Define POSIX_SIGNALS.
Fixes: debbugs:10552
2012-01-28 11:11:41 +08:00
Chong Yidong
cc0adcb06a * minibuf.c (syms_of_minibuf): Doc fix.
Fixes: debbugs:10550
2012-01-28 11:04:55 +08:00
Chong Yidong
9c69cfb72e * src/keyboard.c (Vecho_keystrokes): Document zero value.
Fixes: debbugs:10503
2012-01-27 00:09:35 +08:00
Chong Yidong
acc28cb93b Document negative repeat counts for search-forward and search-backward.
* doc/lispref/searching.texi (String Search): Document negative repeat count.

* src/search.c (Fsearch_forward, Fsearch_backward): Document negative
repeat counts (Bug#10507).
2012-01-26 23:48:27 +08:00
Glenn Morris
48da739227 Doc fix for lexical-binding being in line one.
Ref http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00543.html

* doc/lispref/variables.texi (Using Lexical Binding):
Mention that lexical-binding should be set in the first line.

* src/lread.c (syms_of_lread): Doc fix.

* lisp/emacs-lisp/tabulated-list.el, lisp/progmodes/f90.el:
Move lexical-binding file-local to line one.

* etc/NEWS: lexical-binding should be ine the first line.
2012-01-25 22:30:49 -08:00
Chong Yidong
14af5f7fc4 Merge from emacs-23 branch 2012-01-25 13:55:01 +08:00
Chong Yidong
0b21c100be Tweak custom-variable-p and user-variable-p docs.
* lisp/custom.el (custom-variable-p): Doc fix.

* src/eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p.
2012-01-25 13:48:11 +08:00
Chong Yidong
3c2907f7e8 Make second arg of copysign non-optional.
* src/floatfns.c (Fcopysign): Make the second argument non-optional,
since nil is not allowed anyway.
2012-01-21 23:52:46 +08:00
Andreas Schwab
959ad23fb9 * process.c (read_process_output): Use p instead of XPROCESS (proc).
(send_process): Likewise.
2012-01-21 11:54:19 +01:00
Martin Rudalics
34a02f46dc Fix handling of persistent window parameters.
* window.c (save_window_save, Fcurrent_window_configuration)
(Vwindow_persistent_parameters): Do not use Qstate.  Rewrite
doc-strings.
* window.el (window--state-get-1, window-state-get): Do not use
special state value for window-persistent-parameters.  Rename
argument IGNORE to WRITABLE.  Rewrite doc-string.
(window--state-put-2): Reset all window parameters to nil before
assigning values of persistent parameters.
* windows.texi (Window Configurations): Rewrite references to
persistent window parameters.
(Window Parameters): Fix description of persistent window
parameters.
2012-01-19 11:38:31 +01:00
Glenn Morris
1259009aa1 Merge from emacs-23; up to 2012-01-19T07:15:48Z!rgm@gnu.org. 2012-01-18 23:21:25 -08:00
Yoshiaki Kasahara
893d44a169 Fix init_buffer for USE_MMAP_FOR_BUFFERS case (backport from trunk)
* buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Adjust to
aliasing change.
2012-01-18 23:01:35 +08:00
Martin Rudalics
6a6ee00d12 Provide persistent window parameters.
* window.c (Vwindow_persistent_parameters): New variable.
(Fset_window_configuration, save_window_save): Handle persistent
window parameters.

* window.el (window-state-ignored-parameters): Remove variable.
(window--state-get-1): Rename argument MARKERS to IGNORE.
Handle persistent window parameters.  Make copy of clone-of
parameter only if requested.  (Bug#10348)
(window--state-put-2): Install a window parameter only if it has
a non-nil value or an existing parameter shall be overwritten.

* windows.texi (Window Configurations, Window Parameters):
Describe persistent window parameters.
2012-01-16 10:34:41 +01:00
YAMAMOTO Mitsuharu
eb74c659d5 Fix wrong font metrics for mouse highlight (backport 2011-12-15T02:12:08Z!handa@m17n.org from trunk)
* src/xftfont.c (xftfont_draw): Use the font metrics of s->font to
fill background (Bug#8992).
2012-01-15 10:55:52 +08:00
Eli Zaretskii
c85efaf73f Fix bug #9087 with crashes on MS-Windows under throw-on-input.
src/w32fns.c (signal_user_input): Don't do a QUIT, to avoid
 thrashing the stack of the thread.
2012-01-14 22:15:01 +02:00
Glenn Morris
9a20751b09 Fix previous ChangeLog date fix (no need to merge to trunk) 2012-01-13 11:15:24 -08:00
Glenn Morris
70d4fdf625 ChangeLog date fix (no need to merge to trunk) 2012-01-13 09:26:05 -08:00
Kenichi Handa
25ed9e61db Take display-table into account on calculating character/string width (#Bug#9496). 2012-01-13 14:47:28 +09:00
Paul Eggert
5944709e77 * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses. 2012-01-12 13:33:25 -08:00
Sven Joachim
39ac329981 * src/s/gnu-linux.h: Use CRT_DIR. 2012-01-12 18:41:16 +08:00
Eli Zaretskii
e71f5d99fe Fix the last part of bug #10464 with mouse highlight at end of line.
src/xdisp.c (rows_from_pos_range): Handle the case where the
 highlight ends on a newline.
 (mouse_face_from_buffer_pos): Fix off-by-one error in calculating
 he end column for display of highlight that ends on a newline
 before a R2L line.
2012-01-11 21:45:42 +02:00
Glenn Morris
49f70d46ea Add 2012 to FSF copyright years for Emacs files (do not merge to trunk) 2012-01-10 23:52:35 -08:00
Paul Eggert
5a5fa83428 Duplicate-word and spelling fixes. 2012-01-10 22:53:12 -08:00
Glenn Morris
ce316182ba init_lread fix for bug#10208.
* src/lread.c (init_lread): If no-site-lisp, remove site-lisp dirs
from load-path also when installation-directory is nil.
2012-01-10 19:56:25 -05:00
Glenn Morris
9d8d07e527 Comments on init_lread. 2012-01-10 17:41:09 -05:00
Glenn Morris
1e2c5d95f6 Tweak previous doc fix.
For some reason, invocation-directory is also a function.
2012-01-10 15:41:53 -05:00
Glenn Morris
74cc8ff926 * src/emacs.c (syms_of_emacs) <installation-directory>: Doc fix.
This confusingly-named variable is typically nil in an installed Emacs,
and in an uninstalled Emacs points to the build directory, rather
than eg the target installation directory.  Yay.
2012-01-10 15:37:10 -05:00
Juanma Barranquero
cd394be177 ChangeLog fixes. 2012-01-10 18:32:19 +01:00
Glenn Morris
7d8d6e4efb * src/epaths.in (PATH_DUMPLOADSEARCH): Revert previous change.
Makes life microscopically harder for the c. zero people configuring
by hand as per INSTALL.
2012-01-10 00:54:46 -08:00
Glenn Morris
5b43da69cb Mainly comment fixes related to PATH_LOADSEARCH etc.
* src/epaths.in (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH, PATH_EXEC)
(PATH_DATA, PATH_DOC): Update the template values to be closer to
their typical values these days.

* Makefile.in, src/epaths.in: Comments.
2012-01-09 22:00:28 -05:00
Eli Zaretskii
a0db8d43d7 Fix bug #10464 with mouse highlight of display strings.
src/xdisp.c (rows_from_pos_range): Accept additional argument
 DISP_STRING, and accept any glyph in a row whose object is that
 string as eligible for mouse highlight.  Fixes mouse highlight of
 display strings from overlays.
2012-01-09 22:45:49 +02:00
Eli Zaretskii
ed516deec4 Fix uninitialized variable in note_mouse_highlight (backport from trunk).
* xdisp.c (note_mouse_highlight): Initialize `area'.  (Bug#9947)
2012-01-09 17:49:08 +08:00
Johan Bockgård
1ba9434183 Avoid crash on composition (backport from trunk).
* xdisp.c (fill_composite_glyph_string): Always set s->face, to
avoid a crash (bug#9496).
2012-01-09 17:44:18 +08:00
Chong Yidong
3f235eece0 Fix last commit. 2012-01-09 17:40:11 +08:00
Chong Yidong
d12815f826 Fix use of uninitialized var (backport from trunk).
* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
2012-01-09 17:35:21 +08:00
Eli Zaretskii
0c5b9eef72 Fix use of uninitialized variable (backport from trunk).
* xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
possible random value that matches one of those tested as
condition to clear the mouse face.
2012-01-09 17:27:02 +08:00
YAMAMOTO Mitsuharu
de92a50b9e Fix glitch in scrolling_window (backport from trunk).
* dispnew.c (scrolling_window): Truncate overlaps in copy
destination of scroll runs so as to avoid assigning disabled bogus
rows and unnecessary graphics copy operations.
2012-01-09 17:23:36 +08:00