aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2010-08-06 12:54:13 +0900
committerKenichi Handa2010-08-06 12:54:13 +0900
commitfaa28da9b740a4b5f297fc215d79a66d71bf6f78 (patch)
tree6d7cdbf92c424aeff5ffa9444b7baf75a90ab2be
parent6b4d96c2f04e5a08c4f9fff144743ff16c151dae (diff)
parent9ebc731b45fea0b4d7d547cb37ca2675d5940106 (diff)
downloademacs-faa28da9b740a4b5f297fc215d79a66d71bf6f78.tar.gz
emacs-faa28da9b740a4b5f297fc215d79a66d71bf6f78.zip
merge trunk
-rw-r--r--doc/lispref/ChangeLog14
-rw-r--r--doc/lispref/control.texi2
-rw-r--r--doc/lispref/minibuf.texi9
-rw-r--r--doc/lispref/modes.texi6
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/org.texi4
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/PROBLEMS8
-rw-r--r--lisp/ChangeLog42
-rw-r--r--lisp/align.el10
-rw-r--r--lisp/bindings.el4
-rw-r--r--lisp/dabbrev.el2
-rw-r--r--lisp/emacs-lisp/syntax.el2
-rw-r--r--lisp/eshell/esh-io.el3
-rw-r--r--lisp/progmodes/which-func.el4
-rw-r--r--lisp/server.el4
-rw-r--r--lisp/term.el20
-rw-r--r--nt/ChangeLog5
-rw-r--r--nt/cmdproxy.c40
-rw-r--r--src/ChangeLog21
-rw-r--r--src/dired.c3
-rw-r--r--src/fns.c23
-rw-r--r--src/minibuf.c3
-rw-r--r--src/w32fns.c2
-rw-r--r--src/xfns.c12
25 files changed, 187 insertions, 64 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 7acfeccea04..4559864c23f 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,17 @@
12010-08-02 Christoph <cschol2112@googlemail.com>
2
3 * control.texi (Handling Errors) <error-message-string>: Fix arg name.
4
52010-07-29 Juanma Barranquero <lekktu@gmail.com>
6
7 * modes.texi (Defining Minor Modes): Use C-backspace, not C-delete.
8 Suggested by Štěpán Němec <stepnem@gmail.com>.
9
102010-07-28 Juanma Barranquero <lekktu@gmail.com>
11
12 * minibuf.texi (High-Level Completion): Document args of
13 `read-buffer-function' (bug#5625).
14
12010-07-27 Juanma Barranquero <lekktu@gmail.com> 152010-07-27 Juanma Barranquero <lekktu@gmail.com>
2 16
3 * modes.texi (Defining Minor Modes): Use C-delete in examples, 17 * modes.texi (Defining Minor Modes): Use C-delete in examples,
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 1c4447e9eb5..16564677f32 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -1039,7 +1039,7 @@ to @code{condition-case} whose error condition you want to re-throw.
1039@xref{Definition of signal}. 1039@xref{Definition of signal}.
1040@end defspec 1040@end defspec
1041 1041
1042@defun error-message-string error-description 1042@defun error-message-string error-descriptor
1043This function returns the error message string for a given error 1043This function returns the error message string for a given error
1044descriptor. It is useful if you want to handle an error by printing the 1044descriptor. It is useful if you want to handle an error by printing the
1045usual error message for that error. @xref{Definition of signal}. 1045usual error message for that error. @xref{Definition of signal}.
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 3588704b054..9bc6be432ae 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1222,10 +1222,11 @@ Buffer name (default foo): @point{}
1222@end defun 1222@end defun
1223 1223
1224@defopt read-buffer-function 1224@defopt read-buffer-function
1225This variable specifies how to read buffer names. For example, if you 1225This variable specifies how to read buffer names. The function is
1226set this variable to @code{iswitchb-read-buffer}, all Emacs commands 1226called with the arguments passed to @code{read-buffer}. For example,
1227that call @code{read-buffer} to read a buffer name will actually use the 1227if you set this variable to @code{iswitchb-read-buffer}, all Emacs
1228@code{iswitchb} package to read it. 1228commands that call @code{read-buffer} to read a buffer name will
1229actually use the @code{iswitchb} package to read it.
1229@end defopt 1230@end defopt
1230 1231
1231@defopt read-buffer-completion-ignore-case 1232@defopt read-buffer-completion-ignore-case
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index c095a9e195d..3953da59b93 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1494,7 +1494,7 @@ See the command \\[hungry-electric-delete]."
1494 ;; The indicator for the mode line. 1494 ;; The indicator for the mode line.
1495 " Hungry" 1495 " Hungry"
1496 ;; The minor mode bindings. 1496 ;; The minor mode bindings.
1497 '(([C-delete] . hungry-electric-delete)) 1497 '(([C-backspace] . hungry-electric-delete))
1498 :group 'hunger) 1498 :group 'hunger)
1499@end smallexample 1499@end smallexample
1500 1500
@@ -1526,8 +1526,8 @@ See the command \\[hungry-electric-delete]."
1526 :lighter " Hungry" 1526 :lighter " Hungry"
1527 ;; The minor mode bindings. 1527 ;; The minor mode bindings.
1528 :keymap 1528 :keymap
1529 '(([C-delete] . hungry-electric-delete) 1529 '(([C-backspace] . hungry-electric-delete)
1530 ([C-M-delete] 1530 ([C-M-backspace]
1531 . (lambda () 1531 . (lambda ()
1532 (interactive) 1532 (interactive)
1533 (hungry-electric-delete t)))) 1533 (hungry-electric-delete t))))
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 72dc8097760..49abc7af2cf 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12010-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * org.texi (Footnotes, Tables in HTML export): Fix typos.
4
12010-07-23 Chong Yidong <cyd@stupidchicken.com> 52010-07-23 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * nxml-mode.texi (Limitations): Remove obsolete discussion (Bug#6708). 7 * nxml-mode.texi (Limitations): Remove obsolete discussion (Bug#6708).
diff --git a/doc/misc/org.texi b/doc/misc/org.texi
index f31d852ea10..d4857d7a61c 100644
--- a/doc/misc/org.texi
+++ b/doc/misc/org.texi
@@ -1437,7 +1437,7 @@ LaTeX}). Here are the valid references:
1437@table @code 1437@table @code
1438@item [1] 1438@item [1]
1439A plain numeric footnote marker. Compatible with @file{footnote.el}, but not 1439A plain numeric footnote marker. Compatible with @file{footnote.el}, but not
1440recommended because somthing like @samp{[1]} could easily be part of a code 1440recommended because something like @samp{[1]} could easily be part of a code
1441snippet. 1441snippet.
1442@item [fn:name] 1442@item [fn:name]
1443A named footnote reference, where @code{name} is a unique label word, or, for 1443A named footnote reference, where @code{name} is a unique label word, or, for
@@ -9165,7 +9165,7 @@ and @code{style} attributes for a link:
9165Org-mode tables are exported to HTML using the table tag defined in 9165Org-mode tables are exported to HTML using the table tag defined in
9166@code{org-export-html-table-tag}. The default setting makes tables without 9166@code{org-export-html-table-tag}. The default setting makes tables without
9167cell borders and frame. If you would like to change this for individual 9167cell borders and frame. If you would like to change this for individual
9168tables, place somthing like the following before the table: 9168tables, place something like the following before the table:
9169 9169
9170@cindex #+CAPTION 9170@cindex #+CAPTION
9171@cindex #+ATTR_HTML 9171@cindex #+ATTR_HTML
diff --git a/etc/ChangeLog b/etc/ChangeLog
index d9ae36b7b21..456033af1c9 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12010-07-27 Ken Brown <kbrown@cornell.edu>
2
3 * PROBLEMS: Mention problem with Cygwin 1.5.19.
4
12010-06-19 Ken Brown <kbrown@cornell.edu> 52010-06-19 Ken Brown <kbrown@cornell.edu>
2 6
3 * PROBLEMS: Update Cygwin GCC information. (Bug#6458) 7 * PROBLEMS: Update Cygwin GCC information. (Bug#6458)
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 7a2cc56699b..fb1b2b38d56 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -2482,6 +2482,14 @@ files are installed. Then use:
2482As of Emacs 22.1, there have been stability problems with Cygwin 2482As of Emacs 22.1, there have been stability problems with Cygwin
2483builds of Emacs using GCC 3. Cygwin users are advised to use GCC 4. 2483builds of Emacs using GCC 3. Cygwin users are advised to use GCC 4.
2484 2484
2485*** Building Emacs 23.3 and later will fail under Cygwin 1.5.19
2486
2487This is a consequence of a change to src/dired.c on 2010-07-27. The
2488issue is that Cygwin 1.5.19 did not have d_ino in 'struct dirent'.
2489See
2490
2491 http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01266.html
2492
2485*** Building the native MS-Windows port fails due to unresolved externals 2493*** Building the native MS-Windows port fails due to unresolved externals
2486 2494
2487The linker error messages look like this: 2495The linker error messages look like this:
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 775ddcdc2e7..149de6629f0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -15,6 +15,48 @@
15 (ctext-no-compositions): Doc fix. 15 (ctext-no-compositions): Doc fix.
16 (compound-text-with-extensions): Doc fix. 16 (compound-text-with-extensions): Doc fix.
17 17
182010-08-03 Juanma Barranquero <lekktu@gmail.com>
19
20 * progmodes/which-func.el (which-func-format): Split help-echo text
21 into lines, like other mode-line tooltips.
22
23 * server.el (server-start): When using TCP sockets, force IPv4
24 and use a literal 127.0.0.1 for localhost. (Related to bug#6781.)
25
262010-08-02 Stefan Monnier <monnier@iro.umontreal.ca>
27
28 * bindings.el (complete-symbol): Run completion-at-point as a fallback.
29
302010-08-02 Juanma Barranquero <lekktu@gmail.com>
31
32 * term.el (term-delimiter-argument-list): Reflow docstring.
33 (term-read-input-ring, term-write-input-ring, term-send-input)
34 (term-bol, term-erase-in-display, serial-supported-or-barf):
35 Fix typos in docstrings.
36
372010-08-02 Stefan Monnier <monnier@iro.umontreal.ca>
38
39 * bindings.el (function-key-map): Add a S-tab => backtab fallback.
40
412010-08-01 Juanma Barranquero <lekktu@gmail.com>
42
43 * dabbrev.el (dabbrev-completion): Fix typo in docstring.
44
452010-08-01 MON KEY <monkey@sandpframing.com> (tiny change)
46
47 * emacs-lisp/syntax.el (syntax-ppss-toplevel-pos):
48 Fix typo in docstring (bug#6747).
49
502010-07-30 Leo <sdl.web@gmail.com>
51
52 * eshell/esh-io.el (eshell-get-target): Better detection of
53 read-only file (Bug#6762).
54
552010-07-30 Juanma Barranquero <lekktu@gmail.com>
56
57 * align.el (align-default-spacing): Doc fix.
58 (align-region-heuristic, align-regexp): Fix typos in docstrings.
59
182010-07-23 Juanma Barranquero <lekktu@gmail.com> 602010-07-23 Juanma Barranquero <lekktu@gmail.com>
19 61
20 * help-fns.el (find-lisp-object-file-name): Doc fix (bug#6494). 62 * help-fns.el (find-lisp-object-file-name): Doc fix (bug#6494).
diff --git a/lisp/align.el b/lisp/align.el
index 83ed0f4693a..9d811327021 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -140,8 +140,8 @@
140 "An integer that represents the default amount of padding to use. 140 "An integer that represents the default amount of padding to use.
141If `align-to-tab-stop' is non-nil, this will represent the number of 141If `align-to-tab-stop' is non-nil, this will represent the number of
142tab stops to use for alignment, rather than the number of spaces. 142tab stops to use for alignment, rather than the number of spaces.
143Each alignment rule can optionally override both this variable. See 143Each alignment rule can optionally override both this variable and
144`align-mode-alist'." 144`align-to-tab-stop'. See `align-rules-list'."
145 :type 'integer 145 :type 'integer
146 :group 'align) 146 :group 'align)
147 147
@@ -157,8 +157,8 @@ Since each alignment rule can possibly have its own set of alignment
157sections (whenever `align-region-separate' is non-nil, and not a 157sections (whenever `align-region-separate' is non-nil, and not a
158string), this heuristic is used to determine how far before and after 158string), this heuristic is used to determine how far before and after
159point we should search in looking for a region separator. Larger 159point we should search in looking for a region separator. Larger
160values can mean slower perform in large files, although smaller values 160values can mean slower performance in large files, although smaller
161may cause unexpected behavior at times." 161values may cause unexpected behavior at times."
162 :type 'integer 162 :type 'integer
163 :group 'align) 163 :group 'align)
164 164
@@ -926,7 +926,7 @@ align them so that the opening parentheses would line up:
926 Joe (123) 456-7890 926 Joe (123) 456-7890
927 927
928There is no predefined rule to handle this, but you could easily do it 928There is no predefined rule to handle this, but you could easily do it
929using a REGEXP like \"(\". All you would have to do is to mark the 929using a REGEXP like \"(\". All you would have to do is to mark the
930region, call `align-regexp' and type in that regular expression." 930region, call `align-regexp' and type in that regular expression."
931 (interactive 931 (interactive
932 (append 932 (append
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 37ca3b86055..3ce21a578d5 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -688,6 +688,7 @@ language you are using."
688 (fboundp 'semantic-active-p) 688 (fboundp 'semantic-active-p)
689 (semantic-active-p)) 689 (semantic-active-p))
690 (semantic-ia-complete-symbol)) 690 (semantic-ia-complete-symbol))
691 (completion-at-point-functions (completion-at-point))
691 (t 692 (t
692 (error "%s" 693 (error "%s"
693 (substitute-command-keys 694 (substitute-command-keys
@@ -1035,6 +1036,9 @@ or \\[semantic-mode]")))))
1035;; so we can't distinguish those two keys, but usually we consider C-SPC 1036;; so we can't distinguish those two keys, but usually we consider C-SPC
1036;; (rather than C-@) as the "canonical" binding. 1037;; (rather than C-@) as the "canonical" binding.
1037(define-key function-key-map [?\C-@] [?\C-\s]) 1038(define-key function-key-map [?\C-@] [?\C-\s])
1039;; Many keyboards don't have a `backtab' key, so by convention the user
1040;; can use S-tab instead to access that binding.
1041(define-key function-key-map [S-tab] [backtab])
1038 1042
1039(define-key global-map [mouse-movement] 'ignore) 1043(define-key global-map [mouse-movement] 'ignore)
1040 1044
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el
index 3ba9d56af16..1127181dca2 100644
--- a/lisp/dabbrev.el
+++ b/lisp/dabbrev.el
@@ -377,7 +377,7 @@ With a prefix argument ARG, it searches all buffers accepted by the
377function pointed out by `dabbrev-friend-buffer-function' to find the 377function pointed out by `dabbrev-friend-buffer-function' to find the
378completions. 378completions.
379 379
380If the prefix argument is 16 (which comes from \\[prefix-argument] \\[prefix-argument]), 380If the prefix argument is 16 (which comes from \\[universal-argument] \\[universal-argument]),
381then it searches *all* buffers." 381then it searches *all* buffers."
382 (interactive "*P") 382 (interactive "*P")
383 (dabbrev--reset-global-variables) 383 (dabbrev--reset-global-variables)
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index a3110f8d8c5..5cc89596ef5 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -52,7 +52,7 @@
52 52
53(defun syntax-ppss-toplevel-pos (ppss) 53(defun syntax-ppss-toplevel-pos (ppss)
54 "Get the latest syntactically outermost position found in a syntactic scan. 54 "Get the latest syntactically outermost position found in a syntactic scan.
55PPSS is a scan state, as returned by `partial-parse-sexp' or `syntax-ppss'. 55PPSS is a scan state, as returned by `parse-partial-sexp' or `syntax-ppss'.
56An \"outermost position\" means one that it is outside of any syntactic entity: 56An \"outermost position\" means one that it is outside of any syntactic entity:
57outside of any parentheses, comments, or strings encountered in the scan. 57outside of any parentheses, comments, or strings encountered in the scan.
58If no such position is recorded in PPSS (because the end of the scan was 58If no such position is recorded in PPSS (because the end of the scan was
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index 1bcfe2b46e7..3aa785c7c1b 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -343,8 +343,9 @@ it defaults to `insert'."
343 (let* ((exists (get-file-buffer target)) 343 (let* ((exists (get-file-buffer target))
344 (buf (find-file-noselect target t))) 344 (buf (find-file-noselect target t)))
345 (with-current-buffer buf 345 (with-current-buffer buf
346 (if buffer-read-only 346 (if buffer-file-read-only
347 (error "Cannot write to read-only file `%s'" target)) 347 (error "Cannot write to read-only file `%s'" target))
348 (setq buffer-read-only nil)
348 (set (make-local-variable 'eshell-output-file-buffer) 349 (set (make-local-variable 'eshell-output-file-buffer)
349 (if (eq exists buf) 0 t)) 350 (if (eq exists buf) 0 t))
350 (cond ((eq mode 'overwrite) 351 (cond ((eq mode 'overwrite)
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index 6a72c161429..469786e04dd 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -145,7 +145,9 @@ Zero means compute the Imenu menu regardless of size."
145 local-map ,which-func-keymap 145 local-map ,which-func-keymap
146 face which-func 146 face which-func
147 ;;mouse-face highlight ; currently not evaluated :-( 147 ;;mouse-face highlight ; currently not evaluated :-(
148 help-echo "mouse-1: go to beginning, mouse-2: toggle rest visibility, mouse-3: go to end") 148 help-echo "mouse-1: go to beginning\n\
149mouse-2: toggle rest visibility\n\
150mouse-3: go to end")
149 "]") 151 "]")
150 "Format for displaying the function in the mode line." 152 "Format for displaying the function in the mode line."
151 :group 'which-func 153 :group 'which-func
diff --git a/lisp/server.el b/lisp/server.el
index d36b99cc5b6..e8a0125f554 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -560,9 +560,9 @@ server or call `M-x server-force-delete' to forcibly disconnect it.")
560 :coding 'raw-text-unix 560 :coding 'raw-text-unix
561 ;; The other args depend on the kind of socket used. 561 ;; The other args depend on the kind of socket used.
562 (if server-use-tcp 562 (if server-use-tcp
563 (list :family nil 563 (list :family 'ipv4 ;; We're not ready for IPv6 yet
564 :service t 564 :service t
565 :host (or server-host 'local) 565 :host (or server-host "127.0.0.1") ;; See bug#6781
566 :plist '(:authenticated nil)) 566 :plist '(:authenticated nil))
567 (list :family 'local 567 (list :family 'local
568 :service server-file 568 :service server-file
diff --git a/lisp/term.el b/lisp/term.el
index 7cb364af622..2223ff2587d 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -502,8 +502,8 @@ This is a good thing to set in mode hooks.")
502(defvar term-delimiter-argument-list () 502(defvar term-delimiter-argument-list ()
503 "List of characters to recognize as separate arguments in input. 503 "List of characters to recognize as separate arguments in input.
504Strings comprising a character in this list will separate the arguments 504Strings comprising a character in this list will separate the arguments
505surrounding them, and also be regarded as arguments in their own right (unlike 505surrounding them, and also be regarded as arguments in their own right
506whitespace). See `term-arguments'. 506\(unlike whitespace). See `term-arguments'.
507Defaults to the empty list. 507Defaults to the empty list.
508 508
509For shells, a good value is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;). 509For shells, a good value is (?\\| ?& ?< ?> ?\\( ?\\) ?\\;).
@@ -1516,7 +1516,7 @@ if [ $1 = .. ]; then shift; fi; exec \"$@\""
1516;; term-replace-by-expanded-history-before-point Workhorse function. 1516;; term-replace-by-expanded-history-before-point Workhorse function.
1517 1517
1518(defun term-read-input-ring (&optional silent) 1518(defun term-read-input-ring (&optional silent)
1519 "Sets the buffer's `term-input-ring' from a history file. 1519 "Set the buffer's `term-input-ring' from a history file.
1520The name of the file is given by the variable `term-input-ring-file-name'. 1520The name of the file is given by the variable `term-input-ring-file-name'.
1521The history ring is of size `term-input-ring-size', regardless of file size. 1521The history ring is of size `term-input-ring-size', regardless of file size.
1522If `term-input-ring-file-name' is nil this function does nothing. 1522If `term-input-ring-file-name' is nil this function does nothing.
@@ -1564,7 +1564,7 @@ See also `term-input-ignoredups' and `term-write-input-ring'."
1564 term-input-ring-index nil))))) 1564 term-input-ring-index nil)))))
1565 1565
1566(defun term-write-input-ring () 1566(defun term-write-input-ring ()
1567 "Writes the buffer's `term-input-ring' to a history file. 1567 "Write the buffer's `term-input-ring' to a history file.
1568The name of the file is given by the variable `term-input-ring-file-name'. 1568The name of the file is given by the variable `term-input-ring-file-name'.
1569The original contents of the file are lost if `term-input-ring' is not empty. 1569The original contents of the file are lost if `term-input-ring' is not empty.
1570If `term-input-ring-file-name' is nil this function does nothing. 1570If `term-input-ring-file-name' is nil this function does nothing.
@@ -1996,12 +1996,12 @@ Argument 0 is the command name."
1996 "Send input to process. 1996 "Send input to process.
1997After the process output mark, sends all text from the process mark to 1997After the process output mark, sends all text from the process mark to
1998point as input to the process. Before the process output mark, calls value 1998point as input to the process. Before the process output mark, calls value
1999of variable term-get-old-input to retrieve old input, copies it to the 1999of variable `term-get-old-input' to retrieve old input, copies it to the
2000process mark, and sends it. A terminal newline is also inserted into the 2000process mark, and sends it. A terminal newline is also inserted into the
2001buffer and sent to the process. The list of function names contained in the 2001buffer and sent to the process. The list of function names contained in the
2002value of `term-input-filter-functions' is called on the input before sending 2002value of `term-input-filter-functions' is called on the input before sending
2003it. The input is entered into the input history ring, if the value of variable 2003it. The input is entered into the input history ring, if the value of variable
2004term-input-filter returns non-nil when called on the input. 2004`term-input-filter' returns non-nil when called on the input.
2005 2005
2006Any history reference may be expanded depending on the value of the variable 2006Any history reference may be expanded depending on the value of the variable
2007`term-input-autoexpand'. The list of function names contained in the value 2007`term-input-autoexpand'. The list of function names contained in the value
@@ -2137,7 +2137,7 @@ set the hook `term-input-sender'."
2137 (term-send-string proc "\n")) 2137 (term-send-string proc "\n"))
2138 2138
2139(defun term-bol (arg) 2139(defun term-bol (arg)
2140 "Goes to the beginning of line, then skips past the prompt, if any. 2140 "Go to the beginning of line, then skip past the prompt, if any.
2141If a prefix argument is given (\\[universal-argument]), then no prompt skip 2141If a prefix argument is given (\\[universal-argument]), then no prompt skip
2142-- go straight to column 0. 2142-- go straight to column 0.
2143 2143
@@ -3760,7 +3760,7 @@ all pending output has been dealt with."))
3760 (goto-char saved-point)))) 3760 (goto-char saved-point))))
3761 3761
3762(defun term-erase-in-display (kind) 3762(defun term-erase-in-display (kind)
3763 "Erases (that is blanks out) part of the window. 3763 "Erase (that is blank out) part of the window.
3764If KIND is 0, erase from (point) to (point-max); 3764If KIND is 0, erase from (point) to (point-max);
3765if KIND is 1, erase from home to point; else erase from home to point-max." 3765if KIND is 1, erase from home to point; else erase from home to point-max."
3766 (term-handle-deferred-scroll) 3766 (term-handle-deferred-scroll)
@@ -4166,7 +4166,7 @@ Typing SPC flushes the help buffer."
4166 4166
4167;; I need a make-term that doesn't surround with *s -mm 4167;; I need a make-term that doesn't surround with *s -mm
4168(defun term-ansi-make-term (name program &optional startfile &rest switches) 4168(defun term-ansi-make-term (name program &optional startfile &rest switches)
4169"Make a term process NAME in a buffer, running PROGRAM. 4169 "Make a term process NAME in a buffer, running PROGRAM.
4170The name of the buffer is NAME. 4170The name of the buffer is NAME.
4171If there is already a running process in that buffer, it is not restarted. 4171If there is already a running process in that buffer, it is not restarted.
4172Optional third arg STARTFILE is the name of a file to send the contents of to 4172Optional third arg STARTFILE is the name of a file to send the contents of to
@@ -4267,7 +4267,7 @@ returns nil, which is recognized by `serial-process-configure'
4267for special serial ports that cannot be configured.") 4267for special serial ports that cannot be configured.")
4268 4268
4269(defun serial-supported-or-barf () 4269(defun serial-supported-or-barf ()
4270 "Signal an error if serial processes are not supported" 4270 "Signal an error if serial processes are not supported."
4271 (unless (fboundp 'make-serial-process) 4271 (unless (fboundp 'make-serial-process)
4272 (error "Serial processes are not supported on this system"))) 4272 (error "Serial processes are not supported on this system")))
4273 4273
diff --git a/nt/ChangeLog b/nt/ChangeLog
index b00b5b616fc..24b421b4567 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,8 @@
12010-08-02 Óscar Fuentes <ofv@wanadoo.es>
2
3 * cmdproxy.c (main): Use _snprintf instead of wsprintf,
4 which has a 1024 char limit on Windows (bug#6647).
5
12010-05-07 Chong Yidong <cyd@stupidchicken.com> 62010-05-07 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * Version 23.2 released. 8 * Version 23.2 released.
diff --git a/nt/cmdproxy.c b/nt/cmdproxy.c
index aae852bf4fa..4f2d113a900 100644
--- a/nt/cmdproxy.c
+++ b/nt/cmdproxy.c
@@ -35,6 +35,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
35#include <stdlib.h> /* getenv */ 35#include <stdlib.h> /* getenv */
36#include <string.h> /* strlen */ 36#include <string.h> /* strlen */
37 37
38/* We don't want to include stdio.h because we are already duplicating
39 lots of it here */
40extern int _snprintf (char *buffer, size_t count, const char *format, ...);
38 41
39/******* Mock C library routines *********************************/ 42/******* Mock C library routines *********************************/
40 43
@@ -604,6 +607,7 @@ main (int argc, char ** argv)
604 { 607 {
605 char * p; 608 char * p;
606 int extra_arg_space = 0; 609 int extra_arg_space = 0;
610 int maxlen, remlen;
607 int run_command_dot_com; 611 int run_command_dot_com;
608 612
609 progname = getenv ("COMSPEC"); 613 progname = getenv ("COMSPEC");
@@ -635,21 +639,27 @@ main (int argc, char ** argv)
635 case path contains spaces (fortunately it can't contain 639 case path contains spaces (fortunately it can't contain
636 quotes, since they are illegal in path names). */ 640 quotes, since they are illegal in path names). */
637 641
638 buf = p = alloca (strlen (progname) + extra_arg_space + 642 remlen = maxlen =
639 strlen (cmdline) + 16); 643 strlen (progname) + extra_arg_space + strlen (cmdline) + 16;
644 buf = p = alloca (maxlen + 1);
640 645
641 /* Quote progname in case it contains spaces. */ 646 /* Quote progname in case it contains spaces. */
642 p += wsprintf (p, "\"%s\"", progname); 647 p += _snprintf (p, remlen, "\"%s\"", progname);
648 remlen = maxlen - (p - buf);
643 649
644 /* Include pass_through_args verbatim; these are just switches 650 /* Include pass_through_args verbatim; these are just switches
645 so should not need quoting. */ 651 so should not need quoting. */
646 for (argv = pass_through_args; *argv != NULL; ++argv) 652 for (argv = pass_through_args; *argv != NULL; ++argv)
647 p += wsprintf (p, " %s", *argv); 653 {
654 p += _snprintf (p, remlen, " %s", *argv);
655 remlen = maxlen - (p - buf);
656 }
648 657
649 if (run_command_dot_com) 658 if (run_command_dot_com)
650 wsprintf(p, " /e:%d /c %s", envsize, cmdline); 659 _snprintf (p, remlen, " /e:%d /c %s", envsize, cmdline);
651 else 660 else
652 wsprintf(p, " /c %s", cmdline); 661 _snprintf (p, remlen, " /c %s", cmdline);
662 remlen = maxlen - (p - buf);
653 cmdline = buf; 663 cmdline = buf;
654 } 664 }
655 else 665 else
@@ -669,19 +679,27 @@ main (int argc, char ** argv)
669 else 679 else
670 path[0] = '\0'; 680 path[0] = '\0';
671 681
672 cmdline = p = alloca (strlen (progname) + extra_arg_space + 682 remlen = maxlen =
673 strlen (path) + 13); 683 strlen (progname) + extra_arg_space + strlen (path) + 13;
684 cmdline = p = alloca (maxlen + 1);
674 685
675 /* Quote progname in case it contains spaces. */ 686 /* Quote progname in case it contains spaces. */
676 p += wsprintf (p, "\"%s\" %s", progname, path); 687 p += _snprintf (p, remlen, "\"%s\" %s", progname, path);
688 remlen = maxlen - (p - cmdline);
677 689
678 /* Include pass_through_args verbatim; these are just switches 690 /* Include pass_through_args verbatim; these are just switches
679 so should not need quoting. */ 691 so should not need quoting. */
680 for (argv = pass_through_args; *argv != NULL; ++argv) 692 for (argv = pass_through_args; *argv != NULL; ++argv)
681 p += wsprintf (p, " %s", *argv); 693 {
694 p += _snprintf (p, remlen, " %s", *argv);
695 remlen = maxlen - (p - cmdline);
696 }
682 697
683 if (run_command_dot_com) 698 if (run_command_dot_com)
684 wsprintf (p, " /e:%d", envsize); 699 {
700 _snprintf (p, remlen, " /e:%d", envsize);
701 remlen = maxlen - (p - cmdline);
702 }
685 } 703 }
686 } 704 }
687 705
diff --git a/src/ChangeLog b/src/ChangeLog
index 6b9c8614837..2b413a7958c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,24 @@
12010-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5
62010-07-30 Juanma Barranquero <lekktu@gmail.com>
7
8 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
9 (Fhash_table_size): Fix typos in docstrings.
10 (Fmake_hash_table): Doc fix.
11
122010-07-28 Juanma Barranquero <lekktu@gmail.com>
13
14 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
15 Doc fix (bug#5625).
16
172010-07-27 Ken Brown <kbrown@cornell.edu>
18
19 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
20 the MSDOS definition.
21
12010-07-25 Christoph Scholtes <cschol2112@gmail.com> 222010-07-25 Christoph Scholtes <cschol2112@gmail.com>
2 23
3 * minibuf.c (Fread_buffer): Doc fix (bug#6528). 24 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
diff --git a/src/dired.c b/src/dired.c
index d4b0ff20db2..92a768da5be 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -72,8 +72,7 @@ extern struct direct *readdir ();
72#endif /* not MSDOS */ 72#endif /* not MSDOS */
73#endif /* not SYSV_SYSTEM_DIR */ 73#endif /* not SYSV_SYSTEM_DIR */
74 74
75/* Some versions of Cygwin don't have d_ino in `struct dirent'. */ 75#ifdef MSDOS
76#if defined(MSDOS) || defined(__CYGWIN__)
77#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) 76#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0)
78#else 77#else
79#define DIRENTRY_NONEMPTY(p) ((p)->d_ino) 78#define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
diff --git a/src/fns.c b/src/fns.c
index 7e6001e947c..4e8cd5db9a6 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -238,9 +238,8 @@ Symbols are also allowed; their print names are used instead. */)
238 return Qt; 238 return Qt;
239} 239}
240 240
241DEFUN ("compare-strings", Fcompare_strings, 241DEFUN ("compare-strings", Fcompare_strings, Scompare_strings, 6, 7, 0,
242 Scompare_strings, 6, 7, 0, 242 doc: /* Compare the contents of two strings, converting to multibyte if needed.
243doc: /* Compare the contents of two strings, converting to multibyte if needed.
244In string STR1, skip the first START1 characters and stop at END1. 243In string STR1, skip the first START1 characters and stop at END1.
245In string STR2, skip the first START2 characters and stop at END2. 244In string STR2, skip the first START2 characters and stop at END2.
246END1 and END2 default to the full lengths of the respective strings. 245END1 and END2 default to the full lengths of the respective strings.
@@ -1259,7 +1258,7 @@ value is a new vector that contains the elements between index FROM
1259 1258
1260DEFUN ("substring-no-properties", Fsubstring_no_properties, Ssubstring_no_properties, 1, 3, 0, 1259DEFUN ("substring-no-properties", Fsubstring_no_properties, Ssubstring_no_properties, 1, 3, 0,
1261 doc: /* Return a substring of STRING, without text properties. 1260 doc: /* Return a substring of STRING, without text properties.
1262It starts at index FROM and ending before TO. 1261It starts at index FROM and ends before TO.
1263TO may be nil or omitted; then the substring runs to the end of STRING. 1262TO may be nil or omitted; then the substring runs to the end of STRING.
1264If FROM is nil or omitted, the substring starts at the beginning of STRING. 1263If FROM is nil or omitted, the substring starts at the beginning of STRING.
1265If FROM or TO is negative, it counts from the end. 1264If FROM or TO is negative, it counts from the end.
@@ -1355,7 +1354,7 @@ substring_both (string, from, from_byte, to, to_byte)
1355} 1354}
1356 1355
1357DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, 1356DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0,
1358 doc: /* Take cdr N times on LIST, returns the result. */) 1357 doc: /* Take cdr N times on LIST, return the result. */)
1359 (n, list) 1358 (n, list)
1360 Lisp_Object n; 1359 Lisp_Object n;
1361 register Lisp_Object list; 1360 register Lisp_Object list;
@@ -1396,7 +1395,7 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0,
1396} 1395}
1397 1396
1398DEFUN ("member", Fmember, Smember, 2, 2, 0, 1397DEFUN ("member", Fmember, Smember, 2, 2, 0,
1399doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. 1398 doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'.
1400The value is actually the tail of LIST whose car is ELT. */) 1399The value is actually the tail of LIST whose car is ELT. */)
1401 (elt, list) 1400 (elt, list)
1402 register Lisp_Object elt; 1401 register Lisp_Object elt;
@@ -1416,7 +1415,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1416} 1415}
1417 1416
1418DEFUN ("memq", Fmemq, Smemq, 2, 2, 0, 1417DEFUN ("memq", Fmemq, Smemq, 2, 2, 0,
1419doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. 1418 doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'.
1420The value is actually the tail of LIST whose car is ELT. */) 1419The value is actually the tail of LIST whose car is ELT. */)
1421 (elt, list) 1420 (elt, list)
1422 register Lisp_Object elt, list; 1421 register Lisp_Object elt, list;
@@ -1443,7 +1442,7 @@ The value is actually the tail of LIST whose car is ELT. */)
1443} 1442}
1444 1443
1445DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, 1444DEFUN ("memql", Fmemql, Smemql, 2, 2, 0,
1446doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. 1445 doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'.
1447The value is actually the tail of LIST whose car is ELT. */) 1446The value is actually the tail of LIST whose car is ELT. */)
1448 (elt, list) 1447 (elt, list)
1449 register Lisp_Object elt; 1448 register Lisp_Object elt;
@@ -2829,7 +2828,7 @@ Lisp_Object Vfeatures, Qsubfeatures;
2829extern Lisp_Object Vafter_load_alist; 2828extern Lisp_Object Vafter_load_alist;
2830 2829
2831DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, 2830DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0,
2832 doc: /* Returns t if FEATURE is present in this Emacs. 2831 doc: /* Return t if FEATURE is present in this Emacs.
2833 2832
2834Use this to conditionalize execution of lisp code based on the 2833Use this to conditionalize execution of lisp code based on the
2835presence or absence of Emacs or environment extensions. 2834presence or absence of Emacs or environment extensions.
@@ -4627,8 +4626,8 @@ is a float, it must be > 1.0, and the new size is computed by
4627multiplying the old size with that factor. Default is 1.5. 4626multiplying the old size with that factor. Default is 1.5.
4628 4627
4629:rehash-threshold THRESHOLD -- THRESHOLD must a float > 0, and <= 1.0. 4628:rehash-threshold THRESHOLD -- THRESHOLD must a float > 0, and <= 1.0.
4630Resize the hash table when ratio of the number of entries in the 4629Resize the hash table when the ratio (number of entries / table size)
4631table. Default is 0.8. 4630is greater or equal than THRESHOLD. Default is 0.8.
4632 4631
4633:weakness WEAK -- WEAK must be one of nil, t, `key', `value', 4632:weakness WEAK -- WEAK must be one of nil, t, `key', `value',
4634`key-or-value', or `key-and-value'. If WEAK is not nil, the table 4633`key-or-value', or `key-and-value'. If WEAK is not nil, the table
@@ -4757,7 +4756,7 @@ DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold,
4757DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0, 4756DEFUN ("hash-table-size", Fhash_table_size, Shash_table_size, 1, 1, 0,
4758 doc: /* Return the size of TABLE. 4757 doc: /* Return the size of TABLE.
4759The size can be used as an argument to `make-hash-table' to create 4758The size can be used as an argument to `make-hash-table' to create
4760a hash table than can hold as many elements of TABLE holds 4759a hash table than can hold as many elements as TABLE holds
4761without need for resizing. */) 4760without need for resizing. */)
4762 (table) 4761 (table)
4763 Lisp_Object table; 4762 Lisp_Object table;
diff --git a/src/minibuf.c b/src/minibuf.c
index 043eef13508..564346fd472 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2131,7 +2131,8 @@ syms_of_minibuf ()
2131 staticpro (&Qread_expression_history); 2131 staticpro (&Qread_expression_history);
2132 2132
2133 DEFVAR_LISP ("read-buffer-function", &Vread_buffer_function, 2133 DEFVAR_LISP ("read-buffer-function", &Vread_buffer_function,
2134 doc: /* If this is non-nil, `read-buffer' does its work by calling this function. */); 2134 doc: /* If this is non-nil, `read-buffer' does its work by calling this function.
2135The function is called with the arguments passed to `read-buffer'. */);
2135 Vread_buffer_function = Qnil; 2136 Vread_buffer_function = Qnil;
2136 2137
2137 DEFVAR_BOOL ("read-buffer-completion-ignore-case", 2138 DEFVAR_BOOL ("read-buffer-completion-ignore-case",
diff --git a/src/w32fns.c b/src/w32fns.c
index 9df243ede7f..e27e7fecdc6 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7199,7 +7199,7 @@ or when you set the mouse color. */);
7199 7199
7200 DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, 7200 DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size,
7201 doc: /* Maximum size for tooltips. 7201 doc: /* Maximum size for tooltips.
7202Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */); 7202Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */);
7203 Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); 7203 Vx_max_tooltip_size = Fcons (make_number (80), make_number (40));
7204 7204
7205 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, 7205 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager,
diff --git a/src/xfns.c b/src/xfns.c
index 458904b326a..1d7d3d03580 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1025,7 +1025,7 @@ x_set_mouse_color (f, arg, oldval)
1025 1025
1026 if (FRAME_X_DISPLAY_INFO (f)->invisible_cursor == 0) 1026 if (FRAME_X_DISPLAY_INFO (f)->invisible_cursor == 0)
1027 FRAME_X_DISPLAY_INFO (f)->invisible_cursor = make_invisible_cursor (f); 1027 FRAME_X_DISPLAY_INFO (f)->invisible_cursor = make_invisible_cursor (f);
1028 1028
1029 if (cursor != x->text_cursor 1029 if (cursor != x->text_cursor
1030 && x->text_cursor != 0) 1030 && x->text_cursor != 0)
1031 XFreeCursor (dpy, x->text_cursor); 1031 XFreeCursor (dpy, x->text_cursor);
@@ -3072,7 +3072,7 @@ x_default_font_parameter (f, parms)
3072 if (system_font) font_param = make_string (system_font, 3072 if (system_font) font_param = make_string (system_font,
3073 strlen (system_font)); 3073 strlen (system_font));
3074 } 3074 }
3075 3075
3076 font = !NILP (font_param) ? font_param 3076 font = !NILP (font_param) ? font_param
3077 : x_get_arg (dpyinfo, parms, Qfont, "font", "Font", RES_TYPE_STRING); 3077 : x_get_arg (dpyinfo, parms, Qfont, "font", "Font", RES_TYPE_STRING);
3078 3078
@@ -5646,7 +5646,7 @@ If FRAME is omitted or nil, it defaults to the selected frame. */)
5646 font_param = Ffont_get (font, intern (":name")); 5646 font_param = Ffont_get (font, intern (":name"));
5647 if (STRINGP (font_param)) 5647 if (STRINGP (font_param))
5648 default_name = xstrdup (SDATA (font_param)); 5648 default_name = xstrdup (SDATA (font_param));
5649 else 5649 else
5650 { 5650 {
5651 font_param = Fframe_parameter (frame, Qfont_param); 5651 font_param = Fframe_parameter (frame, Qfont_param);
5652 if (STRINGP (font_param)) 5652 if (STRINGP (font_param))
@@ -5657,7 +5657,7 @@ If FRAME is omitted or nil, it defaults to the selected frame. */)
5657 default_name = xstrdup (x_last_font_name); 5657 default_name = xstrdup (x_last_font_name);
5658 5658
5659 /* Convert fontconfig names to Gtk names, i.e. remove - before number */ 5659 /* Convert fontconfig names to Gtk names, i.e. remove - before number */
5660 if (default_name) 5660 if (default_name)
5661 { 5661 {
5662 char *p = strrchr (default_name, '-'); 5662 char *p = strrchr (default_name, '-');
5663 if (p) 5663 if (p)
@@ -5918,8 +5918,8 @@ or when you set the mouse color. */);
5918 Vx_cursor_fore_pixel = Qnil; 5918 Vx_cursor_fore_pixel = Qnil;
5919 5919
5920 DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size, 5920 DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size,
5921 doc: /* Maximum size for tooltips. Value is a pair (COLUMNS . ROWS). 5921 doc: /* Maximum size for tooltips.
5922Text larger than this is clipped. */); 5922Value is a pair (COLUMNS . ROWS). Text larger than this is clipped. */);
5923 Vx_max_tooltip_size = Fcons (make_number (80), make_number (40)); 5923 Vx_max_tooltip_size = Fcons (make_number (80), make_number (40));
5924 5924
5925 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager, 5925 DEFVAR_LISP ("x-no-window-manager", &Vx_no_window_manager,