aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/comint.el6
-rw-r--r--lisp/net/rcirc.el21
3 files changed, 32 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2785d5ed315..e153fc7da77 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -21,6 +21,22 @@
21 customization groups. Initialize value to 'unset. 21 customization groups. Initialize value to 'unset.
22 (display-buffer-reuse-window): Quote lambda with #'. 22 (display-buffer-reuse-window): Quote lambda with #'.
23 23
242011-06-05 Andreas Schwab <schwab@linux-m68k.org>
25
26 * comint.el (comint-dynamic-complete-as-filename)
27 (comint-dynamic-complete-filename): Correctly call
28 completion-in-region.
29
302011-06-05 Deniz Dogan <deniz@dogan.se>
31
32 * net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced
33 in last change.
34
352011-06-05 Deniz Dogan <deniz@dogan.se>
36
37 * net/rcirc.el (rcirc-prompt-for-encryption): New function.
38 (rcirc): Use it to prompt for encryption.
39
242011-06-05 Roland Winkler <winkler@gnu.org> 402011-06-05 Roland Winkler <winkler@gnu.org>
25 41
26 * textmodes/bibtex.el (bibtex-search-buffer): New variable. 42 * textmodes/bibtex.el (bibtex-search-buffer): New variable.
diff --git a/lisp/comint.el b/lisp/comint.el
index e4bc530f361..5548d19ad30 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -3035,7 +3035,8 @@ Returns t if successful."
3035 (when (comint--match-partial-filename) 3035 (when (comint--match-partial-filename)
3036 (unless (window-minibuffer-p (selected-window)) 3036 (unless (window-minibuffer-p (selected-window))
3037 (message "Completing file name...")) 3037 (message "Completing file name..."))
3038 (apply #'completion-in-region (comint--complete-file-name-data)))) 3038 (let ((data (comint--complete-file-name-data)))
3039 (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)))))
3039 3040
3040(defun comint-filename-completion () 3041(defun comint-filename-completion ()
3041 "Return completion data for filename at point, if any." 3042 "Return completion data for filename at point, if any."
@@ -3152,7 +3153,8 @@ in the same way as TABLE completes strings of the form (concat S2 S)."
3152(defun comint-dynamic-complete-as-filename () 3153(defun comint-dynamic-complete-as-filename ()
3153 "Dynamically complete at point as a filename. 3154 "Dynamically complete at point as a filename.
3154See `comint-dynamic-complete-filename'. Returns t if successful." 3155See `comint-dynamic-complete-filename'. Returns t if successful."
3155 (apply #'completion-in-region (comint--complete-file-name-data))) 3156 (let ((data (comint--complete-file-name-data)))
3157 (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data))))
3156(make-obsolete 'comint-dynamic-complete-as-filename 3158(make-obsolete 'comint-dynamic-complete-as-filename
3157 'comint-filename-completion "24.1") 3159 'comint-filename-completion "24.1")
3158 3160
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index bd9d6846a4b..70190867e89 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -455,15 +455,7 @@ If ARG is non-nil, instead prompt for connection parameters."
455 :channels) 455 :channels)
456 " ")) 456 " "))
457 "[, ]+" t)) 457 "[, ]+" t))
458 (encryption 458 (encryption (rcirc-prompt-for-encryption server-plist)))
459 (intern (completing-read "Encryption (default plain): "
460 '("plain" "tls")
461 nil t
462 (let ((choice (plist-get server-plist
463 :encryption)))
464 (when choice
465 (symbol-name choice)))
466 nil "plain"))))
467 (rcirc-connect server port nick user-name 459 (rcirc-connect server port nick user-name
468 rcirc-default-full-name 460 rcirc-default-full-name
469 channels password encryption)) 461 channels password encryption))
@@ -596,6 +588,17 @@ If ARG is non-nil, instead prompt for connection parameters."
596 (time-to-seconds (current-time)) 588 (time-to-seconds (current-time))
597 (float-time))) 589 (float-time)))
598 590
591(defun rcirc-prompt-for-encryption (server-plist)
592 "Prompt the user for the encryption method to use.
593SERVER-PLIST is the property list for the server."
594 (let ((msg "Encryption (default %s): ")
595 (choices '("plain" "tls"))
596 (default (or (plist-get server-plist :encryption)
597 'plain)))
598 (intern
599 (completing-read (format msg default)
600 choices nil t nil nil (symbol-name default)))))
601
599(defun rcirc-keepalive () 602(defun rcirc-keepalive ()
600 "Send keep alive pings to active rcirc processes. 603 "Send keep alive pings to active rcirc processes.
601Kill processes that have not received a server message since the 604Kill processes that have not received a server message since the