diff options
| author | Karoly Lorentey | 2004-11-06 17:52:02 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-11-06 17:52:02 +0000 |
| commit | 65ea79492334e2ef7b5b4e0d23b6f68ba2f4d0bb (patch) | |
| tree | 853cf391ca1abda4f4ccd6fe8e7bb43f7c86ee08 /lisp/net | |
| parent | e0bc17abe6979d607e8de4684dddb96e53c60065 (diff) | |
| parent | 392cf16dd0ee9358f8af0cd0d8048b822456bbeb (diff) | |
| download | emacs-65ea79492334e2ef7b5b4e0d23b6f68ba2f4d0bb.tar.gz emacs-65ea79492334e2ef7b5b4e0d23b6f68ba2f4d0bb.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-653
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-654
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-655
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-656
Update from CVS: lisp/man.el (Man-xref-normal-file): Fix help-echo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-657
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-658
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-659
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-660
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-661
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-662
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-663
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-664
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-665
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-666
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-667
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-668
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-669
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-670
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-671
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-64
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-65
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-66
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-67
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-68
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-264
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/browse-url.el | 7 | ||||
| -rw-r--r-- | lisp/net/eudc.el | 142 | ||||
| -rw-r--r-- | lisp/net/tls.el | 3 |
3 files changed, 79 insertions, 73 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 1dbd97f0073..c5a2218e36e 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -596,10 +596,11 @@ for use in `interactive'." | |||
| 596 | (not (eq (null browse-url-new-window-flag) | 596 | (not (eq (null browse-url-new-window-flag) |
| 597 | (null current-prefix-arg))))) | 597 | (null current-prefix-arg))))) |
| 598 | 598 | ||
| 599 | ;; interactive-p needs to be called at a function's top-level, hence | 599 | ;; called-interactive-p needs to be called at a function's top-level, hence |
| 600 | ;; the macro. | 600 | ;; this macro. We use that rather than interactive-p because |
| 601 | ;; use in a keyboard macro should not change this behavior. | ||
| 601 | (defmacro browse-url-maybe-new-window (arg) | 602 | (defmacro browse-url-maybe-new-window (arg) |
| 602 | `(if (not (interactive-p)) | 603 | `(if (or noninteractive (not (called-interactively-p))) |
| 603 | ,arg | 604 | ,arg |
| 604 | browse-url-new-window-flag)) | 605 | browse-url-new-window-flag)) |
| 605 | 606 | ||
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el index 6d12d5e6364..bcdd1d195bf 100644 --- a/lisp/net/eudc.el +++ b/lisp/net/eudc.el | |||
| @@ -462,73 +462,73 @@ attribute name ATTR." | |||
| 462 | "Display the record list RECORDS in a formatted buffer. | 462 | "Display the record list RECORDS in a formatted buffer. |
| 463 | If RAW-ATTR-NAMES is non-nil, the raw attribute names are displayed | 463 | If RAW-ATTR-NAMES is non-nil, the raw attribute names are displayed |
| 464 | otherwise they are formatted according to `eudc-user-attribute-names-alist'." | 464 | otherwise they are formatted according to `eudc-user-attribute-names-alist'." |
| 465 | (let ((buffer (get-buffer-create "*Directory Query Results*")) | 465 | (let (inhibit-read-only |
| 466 | inhibit-read-only | ||
| 467 | precords | 466 | precords |
| 468 | (width 0) | 467 | (width 0) |
| 469 | beg | 468 | beg |
| 470 | first-record | 469 | first-record |
| 471 | attribute-name) | 470 | attribute-name) |
| 472 | (switch-to-buffer buffer) | 471 | (with-output-to-temp-buffer "*Directory Query Results*" |
| 473 | (setq buffer-read-only t) | 472 | (with-current-buffer standard-output |
| 474 | (setq inhibit-read-only t) | 473 | (setq buffer-read-only t) |
| 475 | (erase-buffer) | 474 | (setq inhibit-read-only t) |
| 476 | (insert "Directory Query Result\n") | 475 | (erase-buffer) |
| 477 | (insert "======================\n\n\n") | 476 | (insert "Directory Query Result\n") |
| 478 | (if (null records) | 477 | (insert "======================\n\n\n") |
| 479 | (insert "No match found.\n" | 478 | (if (null records) |
| 480 | (if eudc-strict-return-matches | 479 | (insert "No match found.\n" |
| 481 | "Try setting `eudc-strict-return-matches' to nil or change `eudc-default-return-attributes'.\n" | 480 | (if eudc-strict-return-matches |
| 482 | "")) | 481 | "Try setting `eudc-strict-return-matches' to nil or change `eudc-default-return-attributes'.\n" |
| 483 | ;; Replace field names with user names, compute max width | 482 | "")) |
| 484 | (setq precords | 483 | ;; Replace field names with user names, compute max width |
| 485 | (mapcar | 484 | (setq precords |
| 486 | (function | ||
| 487 | (lambda (record) | ||
| 488 | (mapcar | 485 | (mapcar |
| 489 | (function | 486 | (function |
| 490 | (lambda (field) | 487 | (lambda (record) |
| 491 | (setq attribute-name | 488 | (mapcar |
| 492 | (if raw-attr-names | 489 | (function |
| 493 | (symbol-name (car field)) | 490 | (lambda (field) |
| 494 | (eudc-format-attribute-name-for-display (car field)))) | 491 | (setq attribute-name |
| 495 | (if (> (length attribute-name) width) | 492 | (if raw-attr-names |
| 496 | (setq width (length attribute-name))) | 493 | (symbol-name (car field)) |
| 497 | (cons attribute-name (cdr field)))) | 494 | (eudc-format-attribute-name-for-display (car field)))) |
| 498 | record))) | 495 | (if (> (length attribute-name) width) |
| 499 | records)) | 496 | (setq width (length attribute-name))) |
| 500 | ;; Display the records | 497 | (cons attribute-name (cdr field)))) |
| 501 | (setq first-record (point)) | 498 | record))) |
| 502 | (mapcar | 499 | records)) |
| 503 | (function | 500 | ;; Display the records |
| 504 | (lambda (record) | 501 | (setq first-record (point)) |
| 505 | (setq beg (point)) | 502 | (mapcar |
| 506 | ;; Map over the record fields to print the attribute/value pairs | 503 | (function |
| 507 | (mapcar (function | 504 | (lambda (record) |
| 508 | (lambda (field) | 505 | (setq beg (point)) |
| 509 | (eudc-print-record-field field width))) | 506 | ;; Map over the record fields to print the attribute/value pairs |
| 510 | record) | 507 | (mapcar (function |
| 511 | ;; Store the record internal format in some convenient place | 508 | (lambda (field) |
| 512 | (overlay-put (make-overlay beg (point)) | 509 | (eudc-print-record-field field width))) |
| 513 | 'eudc-record | 510 | record) |
| 514 | (car records)) | 511 | ;; Store the record internal format in some convenient place |
| 515 | (setq records (cdr records)) | 512 | (overlay-put (make-overlay beg (point)) |
| 516 | (insert "\n"))) | 513 | 'eudc-record |
| 517 | precords)) | 514 | (car records)) |
| 518 | (insert "\n") | 515 | (setq records (cdr records)) |
| 519 | (widget-create 'push-button | 516 | (insert "\n"))) |
| 520 | :notify (lambda (&rest ignore) | 517 | precords)) |
| 521 | (eudc-query-form)) | 518 | (insert "\n") |
| 522 | "New query") | 519 | (widget-create 'push-button |
| 523 | (widget-insert " ") | 520 | :notify (lambda (&rest ignore) |
| 524 | (widget-create 'push-button | 521 | (eudc-query-form)) |
| 525 | :notify (lambda (&rest ignore) | 522 | "New query") |
| 526 | (kill-this-buffer)) | 523 | (widget-insert " ") |
| 527 | "Quit") | 524 | (widget-create 'push-button |
| 528 | (eudc-mode) | 525 | :notify (lambda (&rest ignore) |
| 529 | (widget-setup) | 526 | (kill-this-buffer)) |
| 530 | (if first-record | 527 | "Quit") |
| 531 | (goto-char first-record)))) | 528 | (eudc-mode) |
| 529 | (widget-setup) | ||
| 530 | (if first-record | ||
| 531 | (goto-char first-record)))))) | ||
| 532 | 532 | ||
| 533 | (defun eudc-process-form () | 533 | (defun eudc-process-form () |
| 534 | "Process the query form in current buffer and display the results." | 534 | "Process the query form in current buffer and display the results." |
| @@ -709,34 +709,36 @@ server for future sessions." | |||
| 709 | (eudc-save-options))) | 709 | (eudc-save-options))) |
| 710 | 710 | ||
| 711 | ;;;###autoload | 711 | ;;;###autoload |
| 712 | (defun eudc-get-email (name) | 712 | (defun eudc-get-email (name &optional error) |
| 713 | "Get the email field of NAME from the directory server." | 713 | "Get the email field of NAME from the directory server. |
| 714 | (interactive "sName: ") | 714 | If ERROR is non-nil, report an error if there is none." |
| 715 | (interactive "sName: \np") | ||
| 715 | (or eudc-server | 716 | (or eudc-server |
| 716 | (call-interactively 'eudc-set-server)) | 717 | (call-interactively 'eudc-set-server)) |
| 717 | (let ((result (eudc-query (list (cons 'name name)) '(email))) | 718 | (let ((result (eudc-query (list (cons 'name name)) '(email))) |
| 718 | email) | 719 | email) |
| 719 | (if (null (cdr result)) | 720 | (if (null (cdr result)) |
| 720 | (setq email (eudc-cdaar result)) | 721 | (setq email (eudc-cdaar result)) |
| 721 | (error "Multiple match. Use the query form")) | 722 | (error "Multiple match--use the query form")) |
| 722 | (if (interactive-p) | 723 | (if error |
| 723 | (if email | 724 | (if email |
| 724 | (message "%s" email) | 725 | (message "%s" email) |
| 725 | (error "No record matching %s" name))) | 726 | (error "No record matching %s" name))) |
| 726 | email)) | 727 | email)) |
| 727 | 728 | ||
| 728 | ;;;###autoload | 729 | ;;;###autoload |
| 729 | (defun eudc-get-phone (name) | 730 | (defun eudc-get-phone (name &optional error) |
| 730 | "Get the phone field of NAME from the directory server." | 731 | "Get the phone field of NAME from the directory server. |
| 731 | (interactive "sName: ") | 732 | If ERROR is non-nil, report an error if there is none." |
| 733 | (interactive "sName: \np") | ||
| 732 | (or eudc-server | 734 | (or eudc-server |
| 733 | (call-interactively 'eudc-set-server)) | 735 | (call-interactively 'eudc-set-server)) |
| 734 | (let ((result (eudc-query (list (cons 'name name)) '(phone))) | 736 | (let ((result (eudc-query (list (cons 'name name)) '(phone))) |
| 735 | phone) | 737 | phone) |
| 736 | (if (null (cdr result)) | 738 | (if (null (cdr result)) |
| 737 | (setq phone (eudc-cdaar result)) | 739 | (setq phone (eudc-cdaar result)) |
| 738 | (error "Multiple match. Use the query form")) | 740 | (error "Multiple match--use the query form")) |
| 739 | (if (interactive-p) | 741 | (if error |
| 740 | (if phone | 742 | (if phone |
| 741 | (message "%s" phone) | 743 | (message "%s" phone) |
| 742 | (error "No record matching %s" name))) | 744 | (error "No record matching %s" name))) |
diff --git a/lisp/net/tls.el b/lisp/net/tls.el index 5f57c084f9b..1b58760c17c 100644 --- a/lisp/net/tls.el +++ b/lisp/net/tls.el | |||
| @@ -67,18 +67,21 @@ after successful negotiation." | |||
| 67 | 67 | ||
| 68 | (defcustom tls-process-connection-type nil | 68 | (defcustom tls-process-connection-type nil |
| 69 | "*Value for `process-connection-type' to use when starting TLS process." | 69 | "*Value for `process-connection-type' to use when starting TLS process." |
| 70 | :version "21.4" | ||
| 70 | :type 'boolean | 71 | :type 'boolean |
| 71 | :group 'tls) | 72 | :group 'tls) |
| 72 | 73 | ||
| 73 | (defcustom tls-success "- Handshake was completed" | 74 | (defcustom tls-success "- Handshake was completed" |
| 74 | "*Regular expression indicating completed TLS handshakes. | 75 | "*Regular expression indicating completed TLS handshakes. |
| 75 | The default is what GNUTLS's \"gnutls-cli\" outputs." | 76 | The default is what GNUTLS's \"gnutls-cli\" outputs." |
| 77 | :version "21.4" | ||
| 76 | :type 'regexp | 78 | :type 'regexp |
| 77 | :group 'tls) | 79 | :group 'tls) |
| 78 | 80 | ||
| 79 | (defcustom tls-certtool-program (executable-find "certtool") | 81 | (defcustom tls-certtool-program (executable-find "certtool") |
| 80 | "Name of GnuTLS certtool. | 82 | "Name of GnuTLS certtool. |
| 81 | Used by `tls-certificate-information'." | 83 | Used by `tls-certificate-information'." |
| 84 | :version "21.4" | ||
| 82 | :type '(repeat string) | 85 | :type '(repeat string) |
| 83 | :group 'tls) | 86 | :group 'tls) |
| 84 | 87 | ||