all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jude DaShiell <jdashiel@panix.com>
To: help-gnu-emacs@gnu.org
Subject: .emacs warning
Date: Tue, 11 Jul 2017 00:26:30 -0400 (EDT)	[thread overview]
Message-ID: <alpine.NEB.2.20.1707110023410.15347@panix1.panix.com> (raw)

Symbols variable is void on following code.

cut here.
(setq calendar-location-name "Ottsville, PA")
(defalias 'gk-urls-external-browser 'browse-url-xdg-open)

(defun gk-browse-url (&rest args)
   "Prompt for whether or not to browse with EWW, if no browse
with external browser."
   (apply
    (if (y-or-n-p "Browse with EWW? ")
        'eww-browse-url
      'gk-urls-external-browser)
    args))

(setq browse-url-browser-function #'gk-browse-url)

    The code should be self-explanatory, but let me save you the read: it'll make a y-or-n prompt asking whether or not to
    use EWW to browse, if you hit n, it invokes your default browser.


cut here.
I'm using emacs 26 and once emacs starts up the code appears to work.
What is needed to clear the warning?

-- 




             reply	other threads:[~2017-07-11  4:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11  4:26 Jude DaShiell [this message]
2017-07-12 17:52 ` .emacs warning Michael Heerdegen
2017-07-12 17:58   ` Jude DaShiell
2017-07-12 18:10     ` Michael Heerdegen

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=alpine.NEB.2.20.1707110023410.15347@panix1.panix.com \
    --to=jdashiel@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.