# HG changeset patch # User Kenichi Handa # Date 1281066853 -32400 # Node ID 0a7e386737b178f4d74ca93e319332812e573a10 # Parent cd3f51128c38293f4507f98aa5036078f34d4fa1# Parent b1689e2cce221a02ecb687d2aa2b40cd5c5471d4 merge trunk diff -r cd3f51128c38 -r 0a7e386737b1 doc/lispref/ChangeLog --- a/doc/lispref/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/lispref/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -1,3 +1,17 @@ +2010-08-02 Christoph + + * control.texi (Handling Errors) : Fix arg name. + +2010-07-29 Juanma Barranquero + + * modes.texi (Defining Minor Modes): Use C-backspace, not C-delete. + Suggested by Štěpán Němec . + +2010-07-28 Juanma Barranquero + + * minibuf.texi (High-Level Completion): Document args of + `read-buffer-function' (bug#5625). + 2010-07-27 Juanma Barranquero * modes.texi (Defining Minor Modes): Use C-delete in examples, diff -r cd3f51128c38 -r 0a7e386737b1 doc/lispref/control.texi --- a/doc/lispref/control.texi Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/lispref/control.texi Fri Aug 06 12:54:13 2010 +0900 @@ -1039,7 +1039,7 @@ @xref{Definition of signal}. @end defspec -@defun error-message-string error-description +@defun error-message-string error-descriptor This function returns the error message string for a given error descriptor. It is useful if you want to handle an error by printing the usual error message for that error. @xref{Definition of signal}. diff -r cd3f51128c38 -r 0a7e386737b1 doc/lispref/minibuf.texi --- a/doc/lispref/minibuf.texi Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/lispref/minibuf.texi Fri Aug 06 12:54:13 2010 +0900 @@ -1222,10 +1222,11 @@ @end defun @defopt read-buffer-function -This variable specifies how to read buffer names. For example, if you -set this variable to @code{iswitchb-read-buffer}, all Emacs commands -that call @code{read-buffer} to read a buffer name will actually use the -@code{iswitchb} package to read it. +This variable specifies how to read buffer names. The function is +called with the arguments passed to @code{read-buffer}. For example, +if you set this variable to @code{iswitchb-read-buffer}, all Emacs +commands that call @code{read-buffer} to read a buffer name will +actually use the @code{iswitchb} package to read it. @end defopt @defopt read-buffer-completion-ignore-case diff -r cd3f51128c38 -r 0a7e386737b1 doc/lispref/modes.texi --- a/doc/lispref/modes.texi Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/lispref/modes.texi Fri Aug 06 12:54:13 2010 +0900 @@ -1494,7 +1494,7 @@ ;; The indicator for the mode line. " Hungry" ;; The minor mode bindings. - '(([C-delete] . hungry-electric-delete)) + '(([C-backspace] . hungry-electric-delete)) :group 'hunger) @end smallexample @@ -1526,8 +1526,8 @@ :lighter " Hungry" ;; The minor mode bindings. :keymap - '(([C-delete] . hungry-electric-delete) - ([C-M-delete] + '(([C-backspace] . hungry-electric-delete) + ([C-M-backspace] . (lambda () (interactive) (hungry-electric-delete t)))) diff -r cd3f51128c38 -r 0a7e386737b1 doc/misc/ChangeLog --- a/doc/misc/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/misc/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -1,3 +1,7 @@ +2010-08-01 Juanma Barranquero + + * org.texi (Footnotes, Tables in HTML export): Fix typos. + 2010-07-23 Chong Yidong * nxml-mode.texi (Limitations): Remove obsolete discussion (Bug#6708). diff -r cd3f51128c38 -r 0a7e386737b1 doc/misc/org.texi --- a/doc/misc/org.texi Wed Aug 04 17:06:52 2010 +0900 +++ b/doc/misc/org.texi Fri Aug 06 12:54:13 2010 +0900 @@ -1437,7 +1437,7 @@ @table @code @item [1] A plain numeric footnote marker. Compatible with @file{footnote.el}, but not -recommended because somthing like @samp{[1]} could easily be part of a code +recommended because something like @samp{[1]} could easily be part of a code snippet. @item [fn:name] A named footnote reference, where @code{name} is a unique label word, or, for @@ -9165,7 +9165,7 @@ Org-mode tables are exported to HTML using the table tag defined in @code{org-export-html-table-tag}. The default setting makes tables without cell borders and frame. If you would like to change this for individual -tables, place somthing like the following before the table: +tables, place something like the following before the table: @cindex #+CAPTION @cindex #+ATTR_HTML diff -r cd3f51128c38 -r 0a7e386737b1 etc/ChangeLog --- a/etc/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/etc/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -1,3 +1,7 @@ +2010-07-27 Ken Brown + + * PROBLEMS: Mention problem with Cygwin 1.5.19. + 2010-06-19 Ken Brown * PROBLEMS: Update Cygwin GCC information. (Bug#6458) diff -r cd3f51128c38 -r 0a7e386737b1 etc/PROBLEMS --- a/etc/PROBLEMS Wed Aug 04 17:06:52 2010 +0900 +++ b/etc/PROBLEMS Fri Aug 06 12:54:13 2010 +0900 @@ -2482,6 +2482,14 @@ As of Emacs 22.1, there have been stability problems with Cygwin builds of Emacs using GCC 3. Cygwin users are advised to use GCC 4. +*** Building Emacs 23.3 and later will fail under Cygwin 1.5.19 + +This is a consequence of a change to src/dired.c on 2010-07-27. The +issue is that Cygwin 1.5.19 did not have d_ino in 'struct dirent'. +See + + http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01266.html + *** Building the native MS-Windows port fails due to unresolved externals The linker error messages look like this: diff -r cd3f51128c38 -r 0a7e386737b1 lisp/ChangeLog --- a/lisp/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -15,6 +15,48 @@ (ctext-no-compositions): Doc fix. (compound-text-with-extensions): Doc fix. +2010-08-03 Juanma Barranquero + + * progmodes/which-func.el (which-func-format): Split help-echo text + into lines, like other mode-line tooltips. + + * server.el (server-start): When using TCP sockets, force IPv4 + and use a literal 127.0.0.1 for localhost. (Related to bug#6781.) + +2010-08-02 Stefan Monnier + + * bindings.el (complete-symbol): Run completion-at-point as a fallback. + +2010-08-02 Juanma Barranquero + + * term.el (term-delimiter-argument-list): Reflow docstring. + (term-read-input-ring, term-write-input-ring, term-send-input) + (term-bol, term-erase-in-display, serial-supported-or-barf): + Fix typos in docstrings. + +2010-08-02 Stefan Monnier + + * bindings.el (function-key-map): Add a S-tab => backtab fallback. + +2010-08-01 Juanma Barranquero + + * dabbrev.el (dabbrev-completion): Fix typo in docstring. + +2010-08-01 MON KEY (tiny change) + + * emacs-lisp/syntax.el (syntax-ppss-toplevel-pos): + Fix typo in docstring (bug#6747). + +2010-07-30 Leo + + * eshell/esh-io.el (eshell-get-target): Better detection of + read-only file (Bug#6762). + +2010-07-30 Juanma Barranquero + + * align.el (align-default-spacing): Doc fix. + (align-region-heuristic, align-regexp): Fix typos in docstrings. + 2010-07-23 Juanma Barranquero * help-fns.el (find-lisp-object-file-name): Doc fix (bug#6494). diff -r cd3f51128c38 -r 0a7e386737b1 lisp/align.el --- a/lisp/align.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/align.el Fri Aug 06 12:54:13 2010 +0900 @@ -140,8 +140,8 @@ "An integer that represents the default amount of padding to use. If `align-to-tab-stop' is non-nil, this will represent the number of tab stops to use for alignment, rather than the number of spaces. -Each alignment rule can optionally override both this variable. See -`align-mode-alist'." +Each alignment rule can optionally override both this variable and +`align-to-tab-stop'. See `align-rules-list'." :type 'integer :group 'align) @@ -157,8 +157,8 @@ sections (whenever `align-region-separate' is non-nil, and not a string), this heuristic is used to determine how far before and after point we should search in looking for a region separator. Larger -values can mean slower perform in large files, although smaller values -may cause unexpected behavior at times." +values can mean slower performance in large files, although smaller +values may cause unexpected behavior at times." :type 'integer :group 'align) @@ -926,7 +926,7 @@ Joe (123) 456-7890 There is no predefined rule to handle this, but you could easily do it -using a REGEXP like \"(\". All you would have to do is to mark the +using a REGEXP like \"(\". All you would have to do is to mark the region, call `align-regexp' and type in that regular expression." (interactive (append diff -r cd3f51128c38 -r 0a7e386737b1 lisp/bindings.el --- a/lisp/bindings.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/bindings.el Fri Aug 06 12:54:13 2010 +0900 @@ -688,6 +688,7 @@ (fboundp 'semantic-active-p) (semantic-active-p)) (semantic-ia-complete-symbol)) + (completion-at-point-functions (completion-at-point)) (t (error "%s" (substitute-command-keys @@ -1035,6 +1036,9 @@ ;; so we can't distinguish those two keys, but usually we consider C-SPC ;; (rather than C-@) as the "canonical" binding. (define-key function-key-map [?\C-@] [?\C-\s]) +;; Many keyboards don't have a `backtab' key, so by convention the user +;; can use S-tab instead to access that binding. +(define-key function-key-map [S-tab] [backtab]) (define-key global-map [mouse-movement] 'ignore) diff -r cd3f51128c38 -r 0a7e386737b1 lisp/dabbrev.el --- a/lisp/dabbrev.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/dabbrev.el Fri Aug 06 12:54:13 2010 +0900 @@ -377,7 +377,7 @@ function pointed out by `dabbrev-friend-buffer-function' to find the completions. -If the prefix argument is 16 (which comes from \\[prefix-argument] \\[prefix-argument]), +If the prefix argument is 16 (which comes from \\[universal-argument] \\[universal-argument]), then it searches *all* buffers." (interactive "*P") (dabbrev--reset-global-variables) diff -r cd3f51128c38 -r 0a7e386737b1 lisp/emacs-lisp/syntax.el --- a/lisp/emacs-lisp/syntax.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/emacs-lisp/syntax.el Fri Aug 06 12:54:13 2010 +0900 @@ -52,7 +52,7 @@ (defun syntax-ppss-toplevel-pos (ppss) "Get the latest syntactically outermost position found in a syntactic scan. -PPSS is a scan state, as returned by `partial-parse-sexp' or `syntax-ppss'. +PPSS is a scan state, as returned by `parse-partial-sexp' or `syntax-ppss'. An \"outermost position\" means one that it is outside of any syntactic entity: outside of any parentheses, comments, or strings encountered in the scan. If no such position is recorded in PPSS (because the end of the scan was diff -r cd3f51128c38 -r 0a7e386737b1 lisp/eshell/esh-io.el --- a/lisp/eshell/esh-io.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/eshell/esh-io.el Fri Aug 06 12:54:13 2010 +0900 @@ -343,8 +343,9 @@ (let* ((exists (get-file-buffer target)) (buf (find-file-noselect target t))) (with-current-buffer buf - (if buffer-read-only + (if buffer-file-read-only (error "Cannot write to read-only file `%s'" target)) + (setq buffer-read-only nil) (set (make-local-variable 'eshell-output-file-buffer) (if (eq exists buf) 0 t)) (cond ((eq mode 'overwrite) diff -r cd3f51128c38 -r 0a7e386737b1 lisp/progmodes/which-func.el --- a/lisp/progmodes/which-func.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/progmodes/which-func.el Fri Aug 06 12:54:13 2010 +0900 @@ -145,7 +145,9 @@ local-map ,which-func-keymap face which-func ;;mouse-face highlight ; currently not evaluated :-( - help-echo "mouse-1: go to beginning, mouse-2: toggle rest visibility, mouse-3: go to end") + help-echo "mouse-1: go to beginning\n\ +mouse-2: toggle rest visibility\n\ +mouse-3: go to end") "]") "Format for displaying the function in the mode line." :group 'which-func diff -r cd3f51128c38 -r 0a7e386737b1 lisp/server.el --- a/lisp/server.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/server.el Fri Aug 06 12:54:13 2010 +0900 @@ -560,9 +560,9 @@ :coding 'raw-text-unix ;; The other args depend on the kind of socket used. (if server-use-tcp - (list :family nil + (list :family 'ipv4 ;; We're not ready for IPv6 yet :service t - :host (or server-host 'local) + :host (or server-host "127.0.0.1") ;; See bug#6781 :plist '(:authenticated nil)) (list :family 'local :service server-file diff -r cd3f51128c38 -r 0a7e386737b1 lisp/term.el --- a/lisp/term.el Wed Aug 04 17:06:52 2010 +0900 +++ b/lisp/term.el Fri Aug 06 12:54:13 2010 +0900 @@ -502,8 +502,8 @@ (defvar term-delimiter-argument-list () "List of characters to recognize as separate arguments in input. Strings comprising a character in this list will separate the arguments -surrounding them, and also be regarded as arguments in their own right (unlike -whitespace). See `term-arguments'. +surrounding them, and also be regarded as arguments in their own right +\(unlike whitespace). See `term-arguments'. Defaults to the empty list. For shells, a good value is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;). @@ -1516,7 +1516,7 @@ ;; term-replace-by-expanded-history-before-point Workhorse function. (defun term-read-input-ring (&optional silent) - "Sets the buffer's `term-input-ring' from a history file. + "Set the buffer's `term-input-ring' from a history file. The name of the file is given by the variable `term-input-ring-file-name'. The history ring is of size `term-input-ring-size', regardless of file size. If `term-input-ring-file-name' is nil this function does nothing. @@ -1564,7 +1564,7 @@ term-input-ring-index nil))))) (defun term-write-input-ring () - "Writes the buffer's `term-input-ring' to a history file. + "Write the buffer's `term-input-ring' to a history file. The name of the file is given by the variable `term-input-ring-file-name'. The original contents of the file are lost if `term-input-ring' is not empty. If `term-input-ring-file-name' is nil this function does nothing. @@ -1996,12 +1996,12 @@ "Send input to process. After the process output mark, sends all text from the process mark to point as input to the process. Before the process output mark, calls value -of variable term-get-old-input to retrieve old input, copies it to the +of variable `term-get-old-input' to retrieve old input, copies it to the process mark, and sends it. A terminal newline is also inserted into the buffer and sent to the process. The list of function names contained in the value of `term-input-filter-functions' is called on the input before sending it. The input is entered into the input history ring, if the value of variable -term-input-filter returns non-nil when called on the input. +`term-input-filter' returns non-nil when called on the input. Any history reference may be expanded depending on the value of the variable `term-input-autoexpand'. The list of function names contained in the value @@ -2137,7 +2137,7 @@ (term-send-string proc "\n")) (defun term-bol (arg) - "Goes to the beginning of line, then skips past the prompt, if any. + "Go to the beginning of line, then skip past the prompt, if any. If a prefix argument is given (\\[universal-argument]), then no prompt skip -- go straight to column 0. @@ -3760,7 +3760,7 @@ (goto-char saved-point)))) (defun term-erase-in-display (kind) - "Erases (that is blanks out) part of the window. + "Erase (that is blank out) part of the window. If KIND is 0, erase from (point) to (point-max); if KIND is 1, erase from home to point; else erase from home to point-max." (term-handle-deferred-scroll) @@ -4166,7 +4166,7 @@ ;; I need a make-term that doesn't surround with *s -mm (defun term-ansi-make-term (name program &optional startfile &rest switches) -"Make a term process NAME in a buffer, running PROGRAM. + "Make a term process NAME in a buffer, running PROGRAM. The name of the buffer is NAME. If there is already a running process in that buffer, it is not restarted. Optional third arg STARTFILE is the name of a file to send the contents of to @@ -4267,7 +4267,7 @@ for special serial ports that cannot be configured.") (defun serial-supported-or-barf () - "Signal an error if serial processes are not supported" + "Signal an error if serial processes are not supported." (unless (fboundp 'make-serial-process) (error "Serial processes are not supported on this system"))) diff -r cd3f51128c38 -r 0a7e386737b1 nt/ChangeLog --- a/nt/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/nt/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -1,3 +1,8 @@ +2010-08-02 Óscar Fuentes + + * cmdproxy.c (main): Use _snprintf instead of wsprintf, + which has a 1024 char limit on Windows (bug#6647). + 2010-05-07 Chong Yidong * Version 23.2 released. diff -r cd3f51128c38 -r 0a7e386737b1 nt/cmdproxy.c --- a/nt/cmdproxy.c Wed Aug 04 17:06:52 2010 +0900 +++ b/nt/cmdproxy.c Fri Aug 06 12:54:13 2010 +0900 @@ -35,6 +35,9 @@ #include /* getenv */ #include /* strlen */ +/* We don't want to include stdio.h because we are already duplicating + lots of it here */ +extern int _snprintf (char *buffer, size_t count, const char *format, ...); /******* Mock C library routines *********************************/ @@ -604,6 +607,7 @@ { char * p; int extra_arg_space = 0; + int maxlen, remlen; int run_command_dot_com; progname = getenv ("COMSPEC"); @@ -635,21 +639,27 @@ case path contains spaces (fortunately it can't contain quotes, since they are illegal in path names). */ - buf = p = alloca (strlen (progname) + extra_arg_space + - strlen (cmdline) + 16); + remlen = maxlen = + strlen (progname) + extra_arg_space + strlen (cmdline) + 16; + buf = p = alloca (maxlen + 1); /* Quote progname in case it contains spaces. */ - p += wsprintf (p, "\"%s\"", progname); + p += _snprintf (p, remlen, "\"%s\"", progname); + remlen = maxlen - (p - buf); /* Include pass_through_args verbatim; these are just switches so should not need quoting. */ for (argv = pass_through_args; *argv != NULL; ++argv) - p += wsprintf (p, " %s", *argv); + { + p += _snprintf (p, remlen, " %s", *argv); + remlen = maxlen - (p - buf); + } if (run_command_dot_com) - wsprintf(p, " /e:%d /c %s", envsize, cmdline); + _snprintf (p, remlen, " /e:%d /c %s", envsize, cmdline); else - wsprintf(p, " /c %s", cmdline); + _snprintf (p, remlen, " /c %s", cmdline); + remlen = maxlen - (p - buf); cmdline = buf; } else @@ -669,19 +679,27 @@ else path[0] = '\0'; - cmdline = p = alloca (strlen (progname) + extra_arg_space + - strlen (path) + 13); + remlen = maxlen = + strlen (progname) + extra_arg_space + strlen (path) + 13; + cmdline = p = alloca (maxlen + 1); /* Quote progname in case it contains spaces. */ - p += wsprintf (p, "\"%s\" %s", progname, path); + p += _snprintf (p, remlen, "\"%s\" %s", progname, path); + remlen = maxlen - (p - cmdline); /* Include pass_through_args verbatim; these are just switches so should not need quoting. */ for (argv = pass_through_args; *argv != NULL; ++argv) - p += wsprintf (p, " %s", *argv); + { + p += _snprintf (p, remlen, " %s", *argv); + remlen = maxlen - (p - cmdline); + } if (run_command_dot_com) - wsprintf (p, " /e:%d", envsize); + { + _snprintf (p, remlen, " /e:%d", envsize); + remlen = maxlen - (p - cmdline); + } } } diff -r cd3f51128c38 -r 0a7e386737b1 src/ChangeLog --- a/src/ChangeLog Wed Aug 04 17:06:52 2010 +0900 +++ b/src/ChangeLog Fri Aug 06 12:54:13 2010 +0900 @@ -1,3 +1,24 @@ +2010-08-01 Juanma Barranquero + + * w32fns.c (syms_of_w32fns) : Fix typo in docstring. + * xfns.c (syms_of_xfns) : Reflow docstring. + +2010-07-30 Juanma Barranquero + + * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep) + (Fhash_table_size): Fix typos in docstrings. + (Fmake_hash_table): Doc fix. + +2010-07-28 Juanma Barranquero + + * minibuf.c (syms_of_minibuf) : + Doc fix (bug#5625). + +2010-07-27 Ken Brown + + * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of + the MSDOS definition. + 2010-07-25 Christoph Scholtes * minibuf.c (Fread_buffer): Doc fix (bug#6528). diff -r cd3f51128c38 -r 0a7e386737b1 src/dired.c --- a/src/dired.c Wed Aug 04 17:06:52 2010 +0900 +++ b/src/dired.c Fri Aug 06 12:54:13 2010 +0900 @@ -72,8 +72,7 @@ #endif /* not MSDOS */ #endif /* not SYSV_SYSTEM_DIR */ -/* Some versions of Cygwin don't have d_ino in `struct dirent'. */ -#if defined(MSDOS) || defined(__CYGWIN__) +#ifdef MSDOS #define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) #else #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) diff -r cd3f51128c38 -r 0a7e386737b1 src/fns.c --- a/src/fns.c Wed Aug 04 17:06:52 2010 +0900 +++ b/src/fns.c Fri Aug 06 12:54:13 2010 +0900 @@ -238,9 +238,8 @@ return Qt; } -DEFUN ("compare-strings", Fcompare_strings, - Scompare_strings, 6, 7, 0, -doc: /* Compare the contents of two strings, converting to multibyte if needed. +DEFUN ("compare-strings", Fcompare_strings, Scompare_strings, 6, 7, 0, + doc: /* Compare the contents of two strings, converting to multibyte if needed. In string STR1, skip the first START1 characters and stop at END1. In string STR2, skip the first START2 characters and stop at END2. END1 and END2 default to the full lengths of the respective strings. @@ -1259,7 +1258,7 @@ DEFUN ("substring-no-properties", Fsubstring_no_properties, Ssubstring_no_properties, 1, 3, 0, doc: /* Return a substring of STRING, without text properties. -It starts at index FROM and ending before TO. +It starts at index FROM and ends before TO. TO may be nil or omitted; then the substring runs to the end of STRING. If FROM is nil or omitted, the substring starts at the beginning of STRING. If FROM or TO is negative, it counts from the end. @@ -1355,7 +1354,7 @@ } DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, - doc: /* Take cdr N times on LIST, returns the result. */) + doc: /* Take cdr N times on LIST, return the result. */) (n, list) Lisp_Object n; register Lisp_Object list; @@ -1396,7 +1395,7 @@ } DEFUN ("member", Fmember, Smember, 2, 2, 0, -doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. + doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. The value is actually the tail of LIST whose car is ELT. */) (elt, list) register Lisp_Object elt; @@ -1416,7 +1415,7 @@ } DEFUN ("memq", Fmemq, Smemq, 2, 2, 0, -doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. + doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. The value is actually the tail of LIST whose car is ELT. */) (elt, list) register Lisp_Object elt, list; @@ -1443,7 +1442,7 @@ } DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, -doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. + doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. The value is actually the tail of LIST whose car is ELT. */) (elt, list) register Lisp_Object elt; @@ -2829,7 +2828,7 @@ extern Lisp_Object Vafter_load_alist; DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, - doc: /* Returns t if FEATURE is present in this Emacs. + doc: /* Return t if FEATURE is present in this Emacs. Use this to conditionalize execution of lisp code based on the presence or absence of Emacs or environment extensions. @@ -4627,8 +4626,8 @@ multiplying the old size with that factor. Default is 1.5. :rehash-threshold THRESHOLD -- THRESHOLD must a float > 0, and <= 1.0. -Resize the hash table when ratio of the number of entries in the -table. Default is 0.8. +Resize the hash table when the ratio (number of entries / table size) +is greater or equal than THRESHOLD. Default is 0.8. :weakness WEAK -- WEAK must be one of nil, t, `key', `value', `key-or-value', or `key-and-value'. If WEAK is not nil, the table @@ -4757,7 +4756,7 @@ DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0, doc: /* Return the size of TABLE. The size can be used as an argument to `make-hash-table' to create -a hash table than can hold as many elements of TABLE holds +a hash table than can hold as many elements as TABLE holds without need for resizing. */) (table) Lisp_Object table; diff -r cd3f51128c38 -r 0a7e386737b1 src/minibuf.c --- a/src/minibuf.c Wed Aug 04 17:06:52 2010 +0900 +++ b/src/minibuf.c Fri Aug 06 12:54:13 2010 +0900 @@ -2131,7 +2131,8 @@ staticpro (&Qread_expression_history); DEFVAR_LISP ("read-buffer-function", &Vread_buffer_function, - doc: /* If this is non-nil, `read-buffer' does its work by calling this function. */); + doc: /* If this is non-nil, `read-buffer' does its work by calling this function. +The function is called with the arguments passed to `read-buffer'. */); Vread_buffer_function = Qnil; DEFVAR_BOOL ("read-buffer-completion-ignore-case", diff -r cd3f51128c38 -r 0a7e386737b1 src/w32fns.c --- a/src/w32fns.c Wed Aug 04 17:06:52 2010 +0900 +++ b/src/w32fns.c Fri Aug 06 12:54:13 2010 +0900 @@ -7199,7 +7199,7 @@ DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, doc: /* Maximum size for tooltips. -Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */); +Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */); Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, diff -r cd3f51128c38 -r 0a7e386737b1 src/xfns.c --- a/src/xfns.c Wed Aug 04 17:06:52 2010 +0900 +++ b/src/xfns.c Fri Aug 06 12:54:13 2010 +0900 @@ -1025,7 +1025,7 @@ if (FRAME_X_DISPLAY_INFO (f)->invisible_cursor == 0) FRAME_X_DISPLAY_INFO (f)->invisible_cursor = make_invisible_cursor (f); - + if (cursor != x->text_cursor && x->text_cursor != 0) XFreeCursor (dpy, x->text_cursor); @@ -3072,7 +3072,7 @@ if (system_font) font_param = make_string (system_font, strlen (system_font)); } - + font = !NILP (font_param) ? font_param : x_get_arg (dpyinfo, parms, Qfont, "font", "Font", RES_TYPE_STRING); @@ -5646,7 +5646,7 @@ font_param = Ffont_get (font, intern (":name")); if (STRINGP (font_param)) default_name = xstrdup (SDATA (font_param)); - else + else { font_param = Fframe_parameter (frame, Qfont_param); if (STRINGP (font_param)) @@ -5657,7 +5657,7 @@ default_name = xstrdup (x_last_font_name); /* Convert fontconfig names to Gtk names, i.e. remove - before number */ - if (default_name) + if (default_name) { char *p = strrchr (default_name, '-'); if (p) @@ -5918,8 +5918,8 @@ Vx_cursor_fore_pixel = Qnil; DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, - doc: /* Maximum size for tooltips. Value is a pair (COLUMNS . ROWS). -Text larger than this is clipped. */); + doc: /* Maximum size for tooltips. +Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */); Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager,