diff options
| author | Joakim Verona | 2011-10-15 23:07:46 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-10-15 23:07:46 +0200 |
| commit | 38ea27d5ef38b273942e90a095509883320d5c0b (patch) | |
| tree | 287f8e5419dd385ee5d2cdd24d694f1b2bb2179f /lisp | |
| parent | e1745b4659af41901c02b6320708c5497d9103f9 (diff) | |
| parent | 21fedf28e5c59fd17e846f4b8abcbb223ae5ed90 (diff) | |
| download | emacs-38ea27d5ef38b273942e90a095509883320d5c0b.tar.gz emacs-38ea27d5ef38b273942e90a095509883320d5c0b.zip | |
upstream
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 29 | ||||
| -rw-r--r-- | lisp/emacs-lisp/ert.el | 41 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 39 | ||||
| -rw-r--r-- | lisp/mouse.el | 6 | ||||
| -rw-r--r-- | lisp/mpc.el | 6 | ||||
| -rw-r--r-- | lisp/net/network-stream.el | 19 | ||||
| -rw-r--r-- | lisp/pcmpl-unix.el | 2 |
7 files changed, 99 insertions, 43 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 68a85a43387..abae693d0c8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | 2011-10-15 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/ert.el (ert--explain-equal-rec, ert-select-tests): | ||
| 4 | Doc fixes. | ||
| 5 | |||
| 6 | 2011-10-15 Chong Yidong <cyd@stupidchicken.com> | ||
| 7 | |||
| 8 | * net/network-stream.el (network-stream-open-starttls): Improve | ||
| 9 | detection of failure due to lack of TLS support. | ||
| 10 | |||
| 11 | * mail/sendmail.el (sendmail-query-once): Tweak prompt message, | ||
| 12 | putting the input text in front and in bold. | ||
| 13 | |||
| 14 | 2011-10-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15 | |||
| 16 | * pcmpl-unix.el (pcomplete/ssh): SSH does allow ganging. | ||
| 17 | |||
| 18 | * mpc.el (mpc-songs-jump-to): Don't burp if the user clicks in an | ||
| 19 | empty buffer. | ||
| 20 | |||
| 21 | * mouse.el (mouse-drag-mode-line-1): Modify the end-event we pushed on | ||
| 22 | unread-command-events rather than pushing yet-another event. | ||
| 23 | |||
| 24 | 2011-10-14 Eli Zaretskii <eliz@gnu.org> | ||
| 25 | |||
| 26 | * mail/sendmail.el (sendmail-query-once): Improve the wording of | ||
| 27 | the explanation of the possible choices. Make the options passed | ||
| 28 | to completing-read shorter. | ||
| 29 | |||
| 1 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> | 30 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> |
| 2 | 31 | ||
| 3 | * textmodes/flyspell.el (flyspell-large-region): Make sure | 32 | * textmodes/flyspell.el (flyspell-large-region): Make sure |
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index b2e20843856..2afe42dc070 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el | |||
| @@ -577,8 +577,7 @@ failed." | |||
| 577 | (t x))) | 577 | (t x))) |
| 578 | 578 | ||
| 579 | (defun ert--explain-equal-rec (a b) | 579 | (defun ert--explain-equal-rec (a b) |
| 580 | "Returns a programmer-readable explanation of why A and B are not `equal'. | 580 | "Return a programmer-readable explanation of why A and B are not `equal'. |
| 581 | |||
| 582 | Returns nil if they are." | 581 | Returns nil if they are." |
| 583 | (if (not (equal (type-of a) (type-of b))) | 582 | (if (not (equal (type-of a) (type-of b))) |
| 584 | `(different-types ,a ,b) | 583 | `(different-types ,a ,b) |
| @@ -1020,36 +1019,36 @@ t -- Always matches. | |||
| 1020 | (ert-test-result-type-p result (ert-test-expected-result-type test))) | 1019 | (ert-test-result-type-p result (ert-test-expected-result-type test))) |
| 1021 | 1020 | ||
| 1022 | (defun ert-select-tests (selector universe) | 1021 | (defun ert-select-tests (selector universe) |
| 1023 | "Return the tests that match SELECTOR. | 1022 | "Return a list of tests that match SELECTOR. |
| 1024 | |||
| 1025 | UNIVERSE specifies the set of tests to select from; it should be | ||
| 1026 | a list of tests, or t, which refers to all tests named by symbols | ||
| 1027 | in `obarray'. | ||
| 1028 | 1023 | ||
| 1029 | Returns the set of tests as a list. | 1024 | UNIVERSE specifies the set of tests to select from; it should be a list |
| 1025 | of tests, or t, which refers to all tests named by symbols in `obarray'. | ||
| 1030 | 1026 | ||
| 1031 | Valid selectors: | 1027 | Valid SELECTORs: |
| 1032 | 1028 | ||
| 1033 | nil -- Selects the empty set. | 1029 | nil -- Selects the empty set. |
| 1034 | t -- Selects UNIVERSE. | 1030 | t -- Selects UNIVERSE. |
| 1035 | :new -- Selects all tests that have not been run yet. | 1031 | :new -- Selects all tests that have not been run yet. |
| 1036 | :failed, :passed -- Select tests according to their most recent result. | 1032 | :failed, :passed -- Select tests according to their most recent result. |
| 1037 | :expected, :unexpected -- Select tests according to their most recent result. | 1033 | :expected, :unexpected -- Select tests according to their most recent result. |
| 1038 | a string -- Selects all tests that have a name that matches the string, | 1034 | a string -- A regular expression selecting all tests with matching names. |
| 1039 | a regexp. | 1035 | a test -- (i.e., an object of the ert-test data-type) Selects that test. |
| 1040 | a test -- Selects that test. | ||
| 1041 | a symbol -- Selects the test that the symbol names, errors if none. | 1036 | a symbol -- Selects the test that the symbol names, errors if none. |
| 1042 | \(member TESTS...\) -- Selects TESTS, a list of tests or symbols naming tests. | 1037 | \(member TESTS...) -- Selects the elements of TESTS, a list of tests |
| 1038 | or symbols naming tests. | ||
| 1043 | \(eql TEST\) -- Selects TEST, a test or a symbol naming a test. | 1039 | \(eql TEST\) -- Selects TEST, a test or a symbol naming a test. |
| 1044 | \(and SELECTORS...\) -- Selects the tests that match all SELECTORS. | 1040 | \(and SELECTORS...) -- Selects the tests that match all SELECTORS. |
| 1045 | \(or SELECTORS...\) -- Selects the tests that match any SELECTOR. | 1041 | \(or SELECTORS...) -- Selects the tests that match any of the SELECTORS. |
| 1046 | \(not SELECTOR\) -- Selects all tests that do not match SELECTOR. | 1042 | \(not SELECTOR) -- Selects all tests that do not match SELECTOR. |
| 1047 | \(tag TAG) -- Selects all tests that have TAG on their tags list. | 1043 | \(tag TAG) -- Selects all tests that have TAG on their tags list. |
| 1048 | \(satisfies PREDICATE\) -- Selects all tests that satisfy PREDICATE. | 1044 | A tag is an arbitrary label you can apply when you define a test. |
| 1045 | \(satisfies PREDICATE) -- Selects all tests that satisfy PREDICATE. | ||
| 1046 | PREDICATE is a function that takes an ert-test object as argument, | ||
| 1047 | and returns non-nil if it is selected. | ||
| 1049 | 1048 | ||
| 1050 | Only selectors that require a superset of tests, such | 1049 | Only selectors that require a superset of tests, such |
| 1051 | as (satisfies ...), strings, :new, etc. make use of UNIVERSE. | 1050 | as (satisfies ...), strings, :new, etc. make use of UNIVERSE. |
| 1052 | Selectors that do not, such as \(member ...\), just return the | 1051 | Selectors that do not, such as (member ...), just return the |
| 1053 | set implied by them without checking whether it is really | 1052 | set implied by them without checking whether it is really |
| 1054 | contained in UNIVERSE." | 1053 | contained in UNIVERSE." |
| 1055 | ;; This code needs to match the etypecase in | 1054 | ;; This code needs to match the etypecase in |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4557bf0fb3f..6044392d4e0 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -513,21 +513,40 @@ This also saves the value of `send-mail-function' via Customize." | |||
| 513 | ;; a second time, probably because someone's using an old value | 513 | ;; a second time, probably because someone's using an old value |
| 514 | ;; of send-mail-function. | 514 | ;; of send-mail-function. |
| 515 | (when (eq send-mail-function 'sendmail-query-once) | 515 | (when (eq send-mail-function 'sendmail-query-once) |
| 516 | (let* ((options `(("My favorite mail client" . mailclient-send-it) | 516 | (let* ((options `(("mail client" . mailclient-send-it) |
| 517 | ("Configuring Emacs's SMTP variables" . smtpmail-send-it) | ||
| 518 | ,@(when (and sendmail-program | 517 | ,@(when (and sendmail-program |
| 519 | (executable-find sendmail-program)) | 518 | (executable-find sendmail-program)) |
| 520 | '(("The system's mail transport agent" | 519 | '(("transport" . sendmail-send-it))) |
| 521 | . sendmail-send-it))))) | 520 | ("smtp" . smtpmail-send-it))) |
| 522 | (choice | 521 | (choice |
| 523 | ;; Query the user. | 522 | ;; Query the user. |
| 524 | (with-temp-buffer | 523 | (with-temp-buffer |
| 525 | (rename-buffer "*Mail Help*" t) | 524 | (rename-buffer "*Emacs Mail Setup Help*" t) |
| 526 | (insert "Emacs has not been set up for sending mail.\n | 525 | (insert "\ |
| 527 | It can be told to send mail either via your favorite mail client, | 526 | Emacs is about to send an email message, but it has not been |
| 528 | or via the system's mail transport agent (\"sendmail\"), if any, | 527 | configured for sending email. To tell Emacs how to send email: |
| 529 | or it can send email on its own by configuring the SMTP parameters.\n | 528 | |
| 530 | To change your decision later, customize `send-mail-function'.\n") | 529 | - Type `" |
| 530 | (propertize "mail client" 'face 'bold) | ||
| 531 | "' to start your default email client and | ||
| 532 | pass it the message text.\n\n") | ||
| 533 | (and sendmail-program | ||
| 534 | (executable-find sendmail-program) | ||
| 535 | (insert "\ | ||
| 536 | - Type `" | ||
| 537 | (propertize "transport" 'face 'bold) | ||
| 538 | "' to invoke the system's mail transport agent | ||
| 539 | (the `" | ||
| 540 | sendmail-program | ||
| 541 | "' program).\n\n")) | ||
| 542 | (insert "\ | ||
| 543 | - Type `" | ||
| 544 | (propertize "smtp" 'face 'bold) | ||
| 545 | "' to send mail directly to an \"outgoing mail\" server. | ||
| 546 | (Emacs may prompt you for SMTP settings). | ||
| 547 | |||
| 548 | Emacs will record your selection and will use it thereafter. | ||
| 549 | To change it later, customize the option `send-mail-function'.\n") | ||
| 531 | (goto-char (point-min)) | 550 | (goto-char (point-min)) |
| 532 | (display-buffer (current-buffer)) | 551 | (display-buffer (current-buffer)) |
| 533 | (let ((completion-ignore-case t)) | 552 | (let ((completion-ignore-case t)) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 8a74782250d..ff175288445 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -540,11 +540,13 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line." | |||
| 540 | ;; be `mouse-1', whereas if this did move the mouse, it should be | 540 | ;; be `mouse-1', whereas if this did move the mouse, it should be |
| 541 | ;; a `drag-mouse-1'. In any case `on-link' would have been nulled | 541 | ;; a `drag-mouse-1'. In any case `on-link' would have been nulled |
| 542 | ;; above if there had been any significant mouse movement. | 542 | ;; above if there had been any significant mouse movement. |
| 543 | (when (and on-link (eq 'mouse-1 (car-safe event))) | 543 | (when (and on-link |
| 544 | (eq 'mouse-1 (car-safe (car unread-command-events)))) | ||
| 544 | ;; If mouse-2 has never been done by the user, it doesn't | 545 | ;; If mouse-2 has never been done by the user, it doesn't |
| 545 | ;; have the necessary property to be interpreted correctly. | 546 | ;; have the necessary property to be interpreted correctly. |
| 546 | (put 'mouse-2 'event-kind 'mouse-click) | 547 | (put 'mouse-2 'event-kind 'mouse-click) |
| 547 | (push (cons 'mouse-2 (cdr event)) unread-command-events)))))) | 548 | (setcar unread-command-events |
| 549 | (cons 'mouse-2 (cdar unread-command-events)))))))) | ||
| 548 | 550 | ||
| 549 | (defun mouse-drag-mode-line (start-event) | 551 | (defun mouse-drag-mode-line (start-event) |
| 550 | "Change the height of a window by dragging on the mode line." | 552 | "Change the height of a window by dragging on the mode line." |
diff --git a/lisp/mpc.el b/lisp/mpc.el index 251e1864927..40ccb456400 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el | |||
| @@ -1996,12 +1996,14 @@ This is used so that they can be compared with `eq', which is needed for | |||
| 1996 | (list (get-text-property (point) 'mpc-file) | 1996 | (list (get-text-property (point) 'mpc-file) |
| 1997 | posn)))) | 1997 | posn)))) |
| 1998 | (let* ((plbuf (mpc-proc-cmd "playlist")) | 1998 | (let* ((plbuf (mpc-proc-cmd "playlist")) |
| 1999 | (re (concat "^\\([0-9]+\\):" (regexp-quote song-file) "$")) | 1999 | (re (if song-file |
| 2000 | (concat "^\\([0-9]+\\):" (regexp-quote song-file) "$"))) | ||
| 2000 | (sn (with-current-buffer plbuf | 2001 | (sn (with-current-buffer plbuf |
| 2001 | (goto-char (point-min)) | 2002 | (goto-char (point-min)) |
| 2002 | (when (re-search-forward re nil t) | 2003 | (when (and re (re-search-forward re nil t)) |
| 2003 | (match-string 1))))) | 2004 | (match-string 1))))) |
| 2004 | (cond | 2005 | (cond |
| 2006 | ((null re) (posn-set-point posn)) | ||
| 2005 | ((null sn) (error "This song is not in the playlist")) | 2007 | ((null sn) (error "This song is not in the playlist")) |
| 2006 | ((null (with-current-buffer plbuf (re-search-forward re nil t))) | 2008 | ((null (with-current-buffer plbuf (re-search-forward re nil t))) |
| 2007 | ;; song-file only appears once in the playlist: no ambiguity, | 2009 | ;; song-file only appears once in the playlist: no ambiguity, |
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index 0c3d0285f91..e27b4541ab5 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -218,7 +218,7 @@ functionality. | |||
| 218 | (resulting-type 'plain) | 218 | (resulting-type 'plain) |
| 219 | (builtin-starttls (and (fboundp 'gnutls-available-p) | 219 | (builtin-starttls (and (fboundp 'gnutls-available-p) |
| 220 | (gnutls-available-p))) | 220 | (gnutls-available-p))) |
| 221 | starttls-command error) | 221 | starttls-available starttls-command error) |
| 222 | 222 | ||
| 223 | ;; First check whether the server supports STARTTLS at all. | 223 | ;; First check whether the server supports STARTTLS at all. |
| 224 | (when (and capabilities success-string starttls-function) | 224 | (when (and capabilities success-string starttls-function) |
| @@ -227,10 +227,11 @@ functionality. | |||
| 227 | ;; If we have built-in STARTTLS support, try to upgrade the | 227 | ;; If we have built-in STARTTLS support, try to upgrade the |
| 228 | ;; connection. | 228 | ;; connection. |
| 229 | (when (and starttls-command | 229 | (when (and starttls-command |
| 230 | (or builtin-starttls | 230 | (setq starttls-available |
| 231 | (and (or require-tls | 231 | (or builtin-starttls |
| 232 | (plist-get parameters :use-starttls-if-possible)) | 232 | (and (or require-tls |
| 233 | (starttls-available-p))) | 233 | (plist-get parameters :use-starttls-if-possible)) |
| 234 | (starttls-available-p)))) | ||
| 234 | (not (eq (plist-get parameters :type) 'plain))) | 235 | (not (eq (plist-get parameters :type) 'plain))) |
| 235 | ;; If using external STARTTLS, drop this connection and start | 236 | ;; If using external STARTTLS, drop this connection and start |
| 236 | ;; anew with `starttls-open-stream'. | 237 | ;; anew with `starttls-open-stream'. |
| @@ -298,9 +299,13 @@ functionality. | |||
| 298 | ;; support, or no gnutls-cli installed. | 299 | ;; support, or no gnutls-cli installed. |
| 299 | (eq resulting-type 'plain)) | 300 | (eq resulting-type 'plain)) |
| 300 | (setq error | 301 | (setq error |
| 301 | (if require-tls | 302 | (if starttls-available |
| 302 | "Server does not support TLS" | 303 | "Server does not support TLS" |
| 303 | "Server supports STARTTLS, but Emacs does not have support for it")) | 304 | (concat "Emacs does not support TLS, and no external `" |
| 305 | (if starttls-use-gnutls | ||
| 306 | starttls-gnutls-program | ||
| 307 | starttls-program) | ||
| 308 | "' program was found"))) | ||
| 304 | (delete-process stream) | 309 | (delete-process stream) |
| 305 | (setq stream nil)) | 310 | (setq stream nil)) |
| 306 | ;; Return value: | 311 | ;; Return value: |
diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el index b466c2cd899..a34458506e2 100644 --- a/lisp/pcmpl-unix.el +++ b/lisp/pcmpl-unix.el | |||
| @@ -185,7 +185,7 @@ Uses both `pcmpl-ssh-config-file' and `pcmpl-ssh-known-hosts-file'." | |||
| 185 | ;;;###autoload | 185 | ;;;###autoload |
| 186 | (defun pcomplete/ssh () | 186 | (defun pcomplete/ssh () |
| 187 | "Completion rules for the `ssh' command." | 187 | "Completion rules for the `ssh' command." |
| 188 | (pcomplete-opt "1246AaCfgKkMNnqsTtVvXxYbcDeFiLlmOopRSw" nil t) | 188 | (pcomplete-opt "1246AaCfgKkMNnqsTtVvXxYbcDeFiLlmOopRSw") |
| 189 | (pcomplete-here (pcmpl-ssh-hosts))) | 189 | (pcomplete-here (pcmpl-ssh-hosts))) |
| 190 | 190 | ||
| 191 | ;;;###autoload | 191 | ;;;###autoload |