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
Glenn Morris
2605051a7f
* lisp/minibuffer.el (read-file-name): Doc fix. (Bug#10798)
...
* src/gtkutil.c: Related comment.
2012-02-13 17:46:43 -05:00
Andreas Schwab
0ca4369955
* gnutls.c (emacs_gnutls_write): Fix last change.
2012-02-13 21:39:46 +01:00
Lars Ingebrigtsen
2e8f3c56f0
Further GnuTLS EAGAIN write fixups
...
* gnutls.c (emacs_gnutls_write): Set errno appropriately for
send_process.
2012-02-13 20:37:48 +01:00
Stefan Monnier
af70074f2f
* src/keymap.c (Fsingle_key_description): Handle char ranges.
2012-02-13 10:55:27 -05:00
Chong Yidong
afd83bd152
Avoid a risky corner case with invalid face ids.
...
* src/xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here,
as that creates a dangerous corner case.
2012-02-12 17:46:33 +08:00
Chong Yidong
95986d5276
* window.c (Fdelete_window_internal): Invalidate the mouse highlight.
...
Fixes: debbugs:9904
2012-02-12 12:29:50 +08:00
Glenn Morris
bd7da63eec
Yet more syncing of xselect docs and argument specs
...
* src/xselect.c (Fx_own_selection_internal)
(Fx_get_selection_internal, Fx_disown_selection_internal)
(Fx_selection_owner_p, Fx_selection_exists_p): Doc fixes.
* src/nsselect.m (Fx_own_selection_internal)
(Fx_disown_selection_internal, Fx_selection_exists_p)
(Fx_selection_owner_p, Fx_get_selection_internal):
Sync docs and argument specs with the xselect.c versions.
* lisp/term/pc-win.el (x-selection-owner-p, x-own-selection-internal)
(x-disown-selection-internal, x-get-selection-internal):
Sync docs with the xselect.c versions.
2012-02-11 19:13:13 -08:00
Lars Ingebrigtsen
77abcbc241
* gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails.
2012-02-11 18:06:14 +01:00
Eli Zaretskii
1c0ca0b721
Fix bug #10783 with w32 doc string of x-selection-exists-p.
...
src/w32select.c (Fx_selection_exists_p): Sync doc string and
argument list with xselect.c.
2012-02-11 11:50:27 +02:00
Eli Zaretskii
90b671e274
Sync MS-DOS selection-related doc strings with X doc strings.
...
lisp/term/pc-win.el (x-select-text, x-selection-owner-p)
(x-own-selection-internal, x-disown-selection-internal)
(x-get-selection-internal): Sync doc strings and argument lists
with xselect.c, common-win.el and x-win.el. (Bug#10783)
src/w16select.c (Fx_selection_exists_p): Sync doc string with
xselect.c. (Bug#10783)
2012-02-11 11:38:41 +02:00
Glenn Morris
49241268b2
* src/fns.c (Fsecure_hash): Doc fix.
...
* etc/NEWS: Related edit.
2012-02-10 00:38:22 -08:00
Glenn Morris
f998bbe793
Merge from emacs-23; up to 2010-06-29T18:17:31Z!cyd@stupidchicken.com.
2012-02-08 23:48:22 -08:00
Kenichi Handa
5c1ca13df7
coding.c (produce_chars): Fix updating of src_end (Bug#10701).
2012-02-08 17:32:25 +09:00
Chong Yidong
0992bd9c06
Fix and doc-fix for `buffer-local-variables'.
...
* src/buffer.c (Fbuffer_local_variables)
(buffer_lisp_local_variables): Handle unbound vars correctly;
don't let Qunbound leak into Lisp.
* doc/lispref/variables.texi (Creating Buffer-Local): Minor clarification
to buffer-local-variables doc.
Fixes: debbugs:10715
2012-02-07 14:34:52 +08:00
Glenn Morris
dd605cc4a6
Small imagemagick doc fixes
...
* lisp/image.el (imagemagick-types-inhibit): Doc fix.
* src/image.c (Fimagemagick_types): Doc fix.
2012-02-06 19:46:18 -08:00
Glenn Morris
af008560fe
imagemagick-render-type fixes
...
* src/image.c (imagemagick-render-type): Change it from a lisp object
to an integer. Move the doc here from the lisp manual.
Treat all values not equal to 0 the same.
* doc/lispref/display.texi (ImageMagick Images):
Move most details of imagemagick-render-type to the variable's doc.
* lisp/cus-start.el (imagemagick-render-type): Add it.
2012-02-06 19:31:29 -08:00
Chong Yidong
4a6c7bb874
* doc.c (store_function_docstring): Fix last change.
2012-02-07 00:53:51 +08:00
Chong Yidong
1449fa1d08
* doc.c (store_function_docstring): Avoid applying docstring of alias to base function.
...
Fixes: debbugs:2603
2012-02-06 21:43:39 +08:00
Glenn Morris
64677d9074
Comment fix.
2012-02-06 00:19:09 -08:00
Andreas Schwab
3723ec07bf
* .gdbinit (pp1, pv1): Remove redundant defines.
...
(pr): Use pp.
2012-02-04 20:57:12 +01:00
Chong Yidong
79c1cc1e97
* src/nsterm.m: Declare a global (Bug#10694).
2012-02-04 23:10:54 +08:00
Eli Zaretskii
d7f29f8e5c
Include --enable-checking in system-configuration-options on MS-Windows.
...
srtc/w32.c (get_emacs_configuration_options): Include
--enable-checking, if specified, in the return value.
2012-02-04 15:48:38 +02:00
Martin Rudalics
3b95a6f950
When changing frame sizes round before applying new sizes. (Bug#9723)
...
* dispnew.c (change_frame_size_1): Calculate new_frame_total_cols
after rounding frame sizes. (Bug#9723)
2012-02-04 12:29:29 +01:00
Eli Zaretskii
d6fa96a61f
Fix bug #10696 with crash when an empty display string is at BOB.
...
src/keyboard.c (adjust_point_for_property): Don't position point
before BEGV.
2012-02-04 11:27:03 +02:00
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