diff options
| author | Paul Eggert | 2011-10-14 12:11:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-10-14 12:11:46 -0700 |
| commit | 42dbaa0c43d5a6a1d03cdd046de448cf8a671015 (patch) | |
| tree | 36ccc1cd700a5404983013aa465adc84a1682ca7 /lisp | |
| parent | 91107bd98003435fbeead3325ce694248863da39 (diff) | |
| parent | 3d1337be7b53c158b3b6c4959fa9a7ed8f6f4ed6 (diff) | |
| download | emacs-42dbaa0c43d5a6a1d03cdd046de448cf8a671015.tar.gz emacs-42dbaa0c43d5a6a1d03cdd046de448cf8a671015.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 33 | ||||
| -rw-r--r-- | lisp/mouse.el | 6 | ||||
| -rw-r--r-- | lisp/mpc.el | 6 | ||||
| -rw-r--r-- | lisp/pcmpl-unix.el | 2 |
5 files changed, 48 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 68a85a43387..7f4462179ec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2011-10-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * pcmpl-unix.el (pcomplete/ssh): SSH does allow ganging. | ||
| 4 | |||
| 5 | * mpc.el (mpc-songs-jump-to): Don't burp if the user clicks in an | ||
| 6 | empty buffer. | ||
| 7 | |||
| 8 | * mouse.el (mouse-drag-mode-line-1): Modify the end-event we pushed on | ||
| 9 | unread-command-events rather than pushing yet-another event. | ||
| 10 | |||
| 11 | 2011-10-14 Eli Zaretskii <eliz@gnu.org> | ||
| 12 | |||
| 13 | * mail/sendmail.el (sendmail-query-once): Improve the wording of | ||
| 14 | the explanation of the possible choices. Make the options passed | ||
| 15 | to completing-read shorter. | ||
| 16 | |||
| 1 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> | 17 | 2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es> |
| 2 | 18 | ||
| 3 | * textmodes/flyspell.el (flyspell-large-region): Make sure | 19 | * textmodes/flyspell.el (flyspell-large-region): Make sure |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4557bf0fb3f..d685b8b3e70 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -513,21 +513,34 @@ 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 | '(("Mail transport agent" . sendmail-send-it))) |
| 521 | . sendmail-send-it))))) | 520 | ("SMTP server" . 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. However, it was not configured |
| 528 | or via the system's mail transport agent (\"sendmail\"), if any, | 527 | for sending email. You can instruct Emacs to send email in one of the |
| 529 | or it can send email on its own by configuring the SMTP parameters.\n | 528 | following ways: |
| 530 | To change your decision later, customize `send-mail-function'.\n") | 529 | |
| 530 | - Start your default mail client and pass to it the message text. | ||
| 531 | Type \"Mail client\" at the prompt below to select this option.\n\n") | ||
| 532 | (if (and sendmail-program | ||
| 533 | (executable-find sendmail-program)) | ||
| 534 | (insert "\ | ||
| 535 | - Invoke the system's mail transport agent (\"sendmail\"). | ||
| 536 | Type \"Mail transport agent\" at the prompt below to select this option.\n\n")) | ||
| 537 | (insert "\ | ||
| 538 | - Send mail directly by communicating with your mail server | ||
| 539 | (this requires setting up SMTP parameters). | ||
| 540 | Type \"SMTP server\" at the prompt below to select this option. | ||
| 541 | |||
| 542 | Emacs will record your selection and will use it thereafter. To change | ||
| 543 | your selection later, customize the option `send-mail-function'.\n") | ||
| 531 | (goto-char (point-min)) | 544 | (goto-char (point-min)) |
| 532 | (display-buffer (current-buffer)) | 545 | (display-buffer (current-buffer)) |
| 533 | (let ((completion-ignore-case t)) | 546 | (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/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 |