From: Kevin Ryde <user42@zip.com.au>
To: 4531@emacsbugs.donarmstrong.com
Subject: bug#4531: closed by Glenn Morris <rgm@gnu.org> (Re: bug#4531: 23.1; browse-url with unknown func in browse-url-browser-function)
Date: Thu, 08 Oct 2009 11:14:15 +1100 [thread overview]
Message-ID: <87y6nmlp2g.fsf@blah.blah> (raw)
In-Reply-To: <handler.4531.D4531.125446747923800.notifdone@emacsbugs.donarmstrong.com> (Emacs bug Tracking System's message of "Fri, 02 Oct 2009 07:20:06 +0000")
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
Glenn Morris <rgm@gnu.org> writes:
>
> applied
Actually Stefan proposed "consp && not functionp" to identify the alist
case. I might apply something like below when I double check it.
(It's all been in slow motion for me lately :-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: browse-url.el.consp.diff --]
[-- Type: text/x-diff, Size: 1095 bytes --]
--- browse-url.el.~1.83.~ 2009-10-08 11:09:10.000000000 +1100
+++ browse-url.el 2009-10-08 11:09:57.000000000 +1100
@@ -780,9 +780,9 @@
(setenv "DISPLAY" (frame-parameter (selected-frame) 'display)))
;; Send any symbol to `apply', not just fboundp ones, since void-function
;; from apply is clearer than wrong-type-argument from dolist.
- (if (or (symbolp browse-url-browser-function)
- (functionp browse-url-browser-function))
- (apply browse-url-browser-function url args)
+ (if (and (consp browse-url-browser-function)
+ (not (functionp browse-url-browser-function)))
+
;; The `function' can be an alist; look down it for first match
;; and apply the function (which might be a lambda).
(catch 'done
@@ -791,7 +791,9 @@
(apply (cdr bf) url args)
(throw 'done t)))
(error "No browse-url-browser-function matching URL %s"
- url)))))
+ url))
+
+ (apply browse-url-browser-function url args))))
;;;###autoload
(defun browse-url-at-point (&optional arg)
prev parent reply other threads:[~2009-10-08 0:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <x2eipmuv6y.fsf@fencepost.gnu.org>
2009-09-23 1:22 ` bug#4531: 23.1; browse-url with unknown func in browse-url-browser-function Kevin Ryde
2009-10-02 7:20 ` bug#4531: marked as done (23.1; browse-url with unknown func in browse-url-browser-function) Emacs bug Tracking System
[not found] ` <handler.4531.D4531.125446747923800.notifdone@emacsbugs.donarmstrong.com>
2009-10-08 0:14 ` Kevin Ryde [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6nmlp2g.fsf@blah.blah \
--to=user42@zip.com.au \
--cc=4531@emacsbugs.donarmstrong.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.