aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-07-08 13:22:17 -0700
committerPaul Eggert2011-07-08 13:22:17 -0700
commit67517972df013491db07d81f516c7e56ddc214c8 (patch)
treecbe742bb4f4f075bcbb670ea22dab331053f487a /lisp
parent2a84b02da8b20138fad7fafdea92d7c8f0564ee0 (diff)
parent1b85461891d3354aef97bec97fab891ddb24e06e (diff)
downloademacs-67517972df013491db07d81f516c7e56ddc214c8.tar.gz
emacs-67517972df013491db07d81f516c7e56ddc214c8.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog63
-rw-r--r--lisp/abbrev.el35
-rw-r--r--lisp/custom.el6
-rw-r--r--lisp/mail/sendmail.el11
-rw-r--r--lisp/net/tramp-sh.el7
-rw-r--r--lisp/vc/vc-bzr.el2
6 files changed, 73 insertions, 51 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 35337de3fa4..729013ba54c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12011-07-08 Andreas Schwab <schwab@linux-m68k.org>
2
3 * mail/sendmail.el (send-mail-function): No longer delay custom
4 initialization.
5 * custom.el (custom-initialize-delay): Doc fix.
6
72011-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * abbrev.el (expand-abbrev): Try to preserve point (bug#5805).
10
112011-07-08 Michael Albinus <michael.albinus@gmx.de>
12
13 * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
14 human-friendly prompt.
15
162011-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
17
18 * vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only
19 provided by a particular plugin.
20
12011-07-08 Lars Magne Ingebrigtsen <larsi@gnus.org> 212011-07-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 22
3 * mail/sendmail.el (sendmail-query-once): If we aren't allowed to 23 * mail/sendmail.el (sendmail-query-once): If we aren't allowed to
@@ -41,7 +61,7 @@
41 * info.el (Info-mode-map): Remove S-TAB binding, since [backtab] 61 * info.el (Info-mode-map): Remove S-TAB binding, since [backtab]
42 should cover it (bug#1281). 62 should cover it (bug#1281).
43 63
44 * cus-edit.el (custom-show): Marked as obsolete. 64 * cus-edit.el (custom-show): Mark as obsolete.
45 65
46 * net/network-stream.el (network-stream-open-starttls): If gnutls 66 * net/network-stream.el (network-stream-open-starttls): If gnutls
47 negotiation fails, then possibly try again with a non-encrypted 67 negotiation fails, then possibly try again with a non-encrypted
@@ -62,18 +82,17 @@
62 82
63 * international/characters.el (build-unicode-category-table): 83 * international/characters.el (build-unicode-category-table):
64 Delete it. 84 Delete it.
65 (unicode-category-table): Set it by 85 (unicode-category-table): Set it by unicode-property-table-internal.
66 unicode-prroperty-table-internal.
67 86
68 * international/mule-cmds.el (char-code-property-alist): Moved to 87 * international/mule-cmds.el (char-code-property-alist): Move to
69 to src/chartab.c. 88 to src/chartab.c.
70 (get-char-code-property): Call unicode-property-table-internal to 89 (get-char-code-property): Call unicode-property-table-internal to
71 load a file. Call get-unicode-property-internal where necessary. 90 load a file. Call get-unicode-property-internal where necessary.
72 (put-char-code-property): Call unicode-property-table-internal to 91 (put-char-code-property): Call unicode-property-table-internal to
73 load a file. Call put-unicode-property-internal where necessary. 92 load a file. Call put-unicode-property-internal where necessary.
74 put-unicode-property-internal where necessary. 93 put-unicode-property-internal where necessary.
75 (char-code-property-description): Call 94 (char-code-property-description):
76 unicode-property-table-internal to load a file. 95 Call unicode-property-table-internal to load a file.
77 96
78 * international/charprop.el: 97 * international/charprop.el:
79 * international/uni-bidi.el: 98 * international/uni-bidi.el:
@@ -142,8 +161,8 @@
1422011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org> 1612011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
143 162
144 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation 163 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
145 of faces when `M-C-x'-ing their definitions (bug#8378). Also 164 of faces when `M-C-x'-ing their definitions (bug#8378).
146 clean up the code slightly. 165 Also clean up the code slightly.
147 166
148 * progmodes/grep.el (rgrep): Don't bind `process-connection-type', 167 * progmodes/grep.el (rgrep): Don't bind `process-connection-type',
149 because that makes the colours go away. 168 because that makes the colours go away.
@@ -167,39 +186,38 @@
1672011-07-06 Michael R. Mauger <mmaug@yahoo.com> 1862011-07-06 Michael R. Mauger <mmaug@yahoo.com>
168 187
169 * progmodes/sql.el: Version 3.0 188 * progmodes/sql.el: Version 3.0
170 (sql-product-alist): Added product :completion-object, 189 (sql-product-alist): Add product :completion-object,
171 :completion-column, and :statement attributes. 190 :completion-column, and :statement attributes.
172 (sql-mode-menu, sql-interactive-mode-map): Fixed List entries. 191 (sql-mode-menu, sql-interactive-mode-map): Fix List entries.
173 (sql-mode-syntax-table): Mark all punctuation. 192 (sql-mode-syntax-table): Mark all punctuation.
174 (sql-font-lock-keywords-builder): Temporarily removed fallback on 193 (sql-font-lock-keywords-builder): Temporarily remove fallback on
175 ansi keywords. 194 ansi keywords.
176 (sql-regexp-abbrev, sql-regexp-abbrev-list): New functions. 195 (sql-regexp-abbrev, sql-regexp-abbrev-list): New functions.
177 (sql-mode-oracle-font-lock-keywords): Improved. 196 (sql-mode-oracle-font-lock-keywords): Improve.
178 (sql-oracle-show-reserved-words): New function for development. 197 (sql-oracle-show-reserved-words): New function for development.
179 (sql-product-font-lock): Simplify for source code buffers. 198 (sql-product-font-lock): Simplify for source code buffers.
180 (sql-product-syntax-table, sql-product-font-lock-syntax-alist): 199 (sql-product-syntax-table, sql-product-font-lock-syntax-alist):
181 New functions. 200 New functions.
182 (sql-highlight-product): Set product specific syntax table. 201 (sql-highlight-product): Set product specific syntax table.
183 (sql-mode-map): Added statement movement functions. 202 (sql-mode-map): Add statement movement functions.
184 (sql-ansi-statement-starters, sql-oracle-statement-starters): New 203 (sql-ansi-statement-starters, sql-oracle-statement-starters):
185 variable. 204 New variable.
186 (sql-statement-regexp, sql-beginning-of-statement) 205 (sql-statement-regexp, sql-beginning-of-statement)
187 (sql-end-of-statement, sql-signum): New functions. 206 (sql-end-of-statement, sql-signum): New functions.
188 (sql-buffer-live-p, sql=find-sqli-buffer): Added CONNECTION 207 (sql-buffer-live-p, sql=find-sqli-buffer): Add CONNECTION parameter.
189 parameter.
190 (sql-show-sqli-buffer): Bug fix. 208 (sql-show-sqli-buffer): Bug fix.
191 (sql-interactive-mode): Store connection data as buffer local. 209 (sql-interactive-mode): Store connection data as buffer local.
192 (sql-connect): Added NEW-NAME parameter. Redesigned interaction 210 (sql-connect): Add NEW-NAME parameter. Redesign interaction
193 with sql-interactive-mode. 211 with sql-interactive-mode.
194 (sql-save-connection): Save buffer local settings. 212 (sql-save-connection): Save buffer local settings.
195 (sql-connection-menu-filter): Changed menu entry name. 213 (sql-connection-menu-filter): Change menu entry name.
196 (sql-product-interactive): Bug fix. 214 (sql-product-interactive): Bug fix.
197 (sql-preoutput-hold): New variable. 215 (sql-preoutput-hold): New variable.
198 (sql-interactive-remove-continuation-prompt): Bug fixes. 216 (sql-interactive-remove-continuation-prompt): Bug fixes.
199 (sql-debug-redirect): New variable. 217 (sql-debug-redirect): New variable.
200 (sql-str-literal): New function. 218 (sql-str-literal): New function.
201 (sql-redirect, sql-redirect-one, sql-redirect-value, sql-execute): 219 (sql-redirect, sql-redirect-one, sql-redirect-value, sql-execute):
202 Redesigned. 220 Redesign.
203 (sql-oracle-save-settings, sql-oracle-restore-settings) 221 (sql-oracle-save-settings, sql-oracle-restore-settings)
204 (sql-oracle-list-all, sql-oracle-list-table): New functions. 222 (sql-oracle-list-all, sql-oracle-list-table): New functions.
205 (sql-completion-object, sql-completion-column) 223 (sql-completion-object, sql-completion-column)
@@ -372,9 +390,8 @@
372 buffer-saved-size and some allout state to not inhibit auto-saves 390 buffer-saved-size and some allout state to not inhibit auto-saves
373 if there are no longer any plain-text topics pending encryption. 391 if there are no longer any plain-text topics pending encryption.
374 392
375 (allout-next-topic-pending-encryption), 393 (allout-next-topic-pending-encryption, allout-encrypt-decrypted):
376 (allout-encrypt-decrypted): No longer provide for exemption of the 394 No longer provide for exemption of the current topic.
377 current topic.
378 395
3792011-07-04 Juri Linkov <juri@jurta.org> 3962011-07-04 Juri Linkov <juri@jurta.org>
380 397
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 2122f43bbad..3795dd46010 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -814,19 +814,28 @@ Returns the abbrev symbol, if expansion took place."
814 (destructuring-bind (&optional sym name wordstart wordend) 814 (destructuring-bind (&optional sym name wordstart wordend)
815 (abbrev--before-point) 815 (abbrev--before-point)
816 (when sym 816 (when sym
817 (unless (or ;; executing-kbd-macro 817 (let ((startpos (copy-marker (point) t))
818 noninteractive 818 (endmark (copy-marker wordend t)))
819 (window-minibuffer-p (selected-window))) 819 (unless (or ;; executing-kbd-macro
820 ;; Add an undo boundary, in case we are doing this for 820 noninteractive
821 ;; a self-inserting command which has avoided making one so far. 821 (window-minibuffer-p (selected-window)))
822 (undo-boundary)) 822 ;; Add an undo boundary, in case we are doing this for
823 ;; Now sym is the abbrev symbol. 823 ;; a self-inserting command which has avoided making one so far.
824 (setq last-abbrev-text name) 824 (undo-boundary))
825 (setq last-abbrev sym) 825 ;; Now sym is the abbrev symbol.
826 (setq last-abbrev-location wordstart) 826 (setq last-abbrev-text name)
827 ;; If this abbrev has an expansion, delete the abbrev 827 (setq last-abbrev sym)
828 ;; and insert the expansion. 828 (setq last-abbrev-location wordstart)
829 (abbrev-insert sym name wordstart wordend))))) 829 ;; If this abbrev has an expansion, delete the abbrev
830 ;; and insert the expansion.
831 (prog1
832 (abbrev-insert sym name wordstart wordend)
833 ;; Yuck!! If expand-abbrev is called with point slightly
834 ;; further than the end of the abbrev, move point back to
835 ;; where it started.
836 (if (and (> startpos endmark)
837 (= (point) endmark)) ;Obey skeletons that move point.
838 (goto-char startpos))))))))
830 839
831(defun unexpand-abbrev () 840(defun unexpand-abbrev ()
832 "Undo the expansion of the last abbrev that expanded. 841 "Undo the expansion of the last abbrev that expanded.
diff --git a/lisp/custom.el b/lisp/custom.el
index a5c0065036a..4f69c741468 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -120,8 +120,10 @@ the :set function.
120For variables in preloaded files, you can simply use this 120For variables in preloaded files, you can simply use this
121function for the :initialize property. For autoloaded variables, 121function for the :initialize property. For autoloaded variables,
122you will also need to add an autoload stanza calling this 122you will also need to add an autoload stanza calling this
123function, and another one setting the standard-value property. 123function, and another one setting the standard-value property."
124See `send-mail-function' in sendmail.el for an example." 124 ;; No longer true:
125 ;; "See `send-mail-function' in sendmail.el for an example."
126
125 ;; Until the var is actually initialized, it is kept unbound. 127 ;; Until the var is actually initialized, it is kept unbound.
126 ;; This seemed to be at least as good as setting it to an arbitrary 128 ;; This seemed to be at least as good as setting it to an arbitrary
127 ;; value like nil (evaluating `value' is not an option because it 129 ;; value like nil (evaluating `value' is not an option because it
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index b14c7e50137..5ffc834f533 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -138,14 +138,6 @@ Otherwise, let mailer send back a message to report errors."
138 :group 'sendmail 138 :group 'sendmail
139 :version "23.1") 139 :version "23.1")
140 140
141;; Prevent problems with `window-system' not having the correct value
142;; when loaddefs.el is loaded. `custom-reevaluate-setting' needs the
143;; standard value.
144;;;###autoload
145(put 'send-mail-function 'standard-value
146 ;; MS-Windows can access the clipboard even under -nw.
147 '('sendmail-query-once))
148
149;; Useful to set in site-init.el 141;; Useful to set in site-init.el
150;;;###autoload 142;;;###autoload
151(defcustom send-mail-function 'sendmail-query-once 143(defcustom send-mail-function 'sendmail-query-once
@@ -161,7 +153,6 @@ This is used by the default mail-sending commands. See also
161 (function-item feedmail-send-it :tag "Use Feedmail package") 153 (function-item feedmail-send-it :tag "Use Feedmail package")
162 (function-item mailclient-send-it :tag "Use Mailclient package") 154 (function-item mailclient-send-it :tag "Use Mailclient package")
163 function) 155 function)
164 :initialize 'custom-initialize-delay
165 :version "24.1" 156 :version "24.1"
166 :group 'sendmail) 157 :group 'sendmail)
167 158
@@ -212,8 +203,6 @@ function to use, and then save that choice."
212 (setq sendmail-query-once-function function)))) 203 (setq sendmail-query-once-function function))))
213 (funcall sendmail-query-once-function)) 204 (funcall sendmail-query-once-function))
214 205
215;;;###autoload(custom-initialize-delay 'send-mail-function nil)
216
217;;;###autoload 206;;;###autoload
218(defcustom mail-header-separator (purecopy "--text follows this line--") 207(defcustom mail-header-separator (purecopy "--text follows this line--")
219 "Line used to separate headers from text in messages being composed." 208 "Line used to separate headers from text in messages being composed."
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index f342b005c4c..1c6f0844be0 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2690,8 +2690,13 @@ the result will be a local, non-Tramp, filename."
2690 ;; When PROGRAM is nil, we just provide a tty. 2690 ;; When PROGRAM is nil, we just provide a tty.
2691 (let ((command 2691 (let ((command
2692 (when (stringp program) 2692 (when (stringp program)
2693 (format "cd %s; exec %s" 2693 (format "cd %s; exec env PS1=%s %s"
2694 (tramp-shell-quote-argument localname) 2694 (tramp-shell-quote-argument localname)
2695 ;; Use a human-friendly prompt, for example for `shell'.
2696 (tramp-shell-quote-argument
2697 (format "%s %s"
2698 (file-remote-p default-directory)
2699 tramp-initial-end-of-output))
2695 (mapconcat 'tramp-shell-quote-argument 2700 (mapconcat 'tramp-shell-quote-argument
2696 (cons program args) " ")))) 2701 (cons program args) " "))))
2697 (tramp-process-connection-type 2702 (tramp-process-connection-type
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el
index 0fdb2230af8..4eff3244cdc 100644
--- a/lisp/vc/vc-bzr.el
+++ b/lisp/vc/vc-bzr.el
@@ -1174,7 +1174,7 @@ stream. Standard error output is discarded."
1174 (defconst vc-bzr-revision-keywords 1174 (defconst vc-bzr-revision-keywords
1175 ;; bzr help revisionspec | sed -ne 's/^\([a-z]*\):$/"\1"/p' | sort -u 1175 ;; bzr help revisionspec | sed -ne 's/^\([a-z]*\):$/"\1"/p' | sort -u
1176 '("ancestor" "annotate" "before" "branch" "date" "last" "mainline" "revid" 1176 '("ancestor" "annotate" "before" "branch" "date" "last" "mainline" "revid"
1177 "revno" "submit" "svn" "tag"))) 1177 "revno" "submit" "tag")))
1178 1178
1179(defun vc-bzr-revision-completion-table (files) 1179(defun vc-bzr-revision-completion-table (files)
1180 (lexical-let ((files files)) 1180 (lexical-let ((files files))