emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 92de67829ca 1/3: Prefer 'setopt' in browse-url docs


From: Stefan Kangas
Subject: emacs-30 92de67829ca 1/3: Prefer 'setopt' in browse-url docs
Date: Mon, 8 Jul 2024 06:28:17 -0400 (EDT)

branch: emacs-30
commit 92de67829ca18b4957cb995a1442f2ccac80847c
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Prefer 'setopt' in browse-url docs
    
    * lisp/net/browse-url.el:
    (browse-url-filename-alist): Doc fix; prefer 'setopt'.
---
 lisp/net/browse-url.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index f22aa19f5e3..3048b8f6c22 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -113,10 +113,10 @@
 
 ;; Use the Emacs Web Wowser (EWW) when not running under X11:
 ;;     (or (eq window-system 'x)
-;;         (setq browse-url-browser-function #'eww-browse-url))
+;;         (setopt browse-url-browser-function #'eww-browse-url))
 
 ;; To always save modified buffers before displaying the file in a browser:
-;;     (setq browse-url-save-file t)
+;;     (setopt browse-url-save-file t)
 
 ;; To invoke different browsers/tools for different URLs, customize
 ;; `browse-url-handlers'.  In earlier versions of Emacs, the same
@@ -419,14 +419,14 @@ value converts ange-ftp-style file names into ftp URLs 
and prepends
 `file:' to any file name beginning with `/'.
 
 For example, adding to the default a specific translation of an ange-ftp
-address to an HTTP URL:
-
-    (setq browse-url-filename-alist
-         \\='((\"/webmaster@webserver:/home/www/html/\" .
-             \"https://www.example.org/\";)
-            (\"^/\\(ftp@\\|anonymous@\\)?\\([^:/]+\\):/*\" . \"ftp://\\2/\";)
-            (\"^/\\([^:@/]+@\\)?\\([^:/]+\\):/*\" . \"ftp://\\1\\2/\";)
-           (\"^/+\" . \"file:/\")))"
+address to an HTTPS URL:
+
+    (setopt browse-url-filename-alist
+            \\='((\"/webmaster@webserver:/home/www/html/\" .
+               \"https://www.example.org/\";)
+              (\"^/\\(ftp@\\|anonymous@\\)?\\([^:/]+\\):/*\" . \"ftp://\\2/\";)
+              (\"^/\\([^:@/]+@\\)?\\([^:/]+\\):/*\" . \"ftp://\\1\\2/\";)
+              (\"^/+\" . \"file:/\")))"
   :type '(repeat (cons :format "%v"
                        (regexp :tag "Regexp")
                        (string :tag "Replacement")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]