From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jude DaShiell Newsgroups: gmane.emacs.help Subject: .emacs warning Date: Tue, 11 Jul 2017 00:26:30 -0400 (EDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1499747229 21143 195.159.176.226 (11 Jul 2017 04:27:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 04:27:09 +0000 (UTC) User-Agent: Alpine 2.20 (NEB 67 2015-01-07) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 06:27:05 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUmlG-0004qB-Mp for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 06:26:58 +0200 Original-Received: from localhost ([::1]:44085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUmlJ-0008Om-08 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 00:27:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUmku-0008OR-NN for help-gnu-emacs@gnu.org; Tue, 11 Jul 2017 00:26:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUmkp-0002w6-OQ for help-gnu-emacs@gnu.org; Tue, 11 Jul 2017 00:26:36 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:55804) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dUmkp-0002uq-JT for help-gnu-emacs@gnu.org; Tue, 11 Jul 2017 00:26:31 -0400 Original-Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id AB005109D8 for ; Tue, 11 Jul 2017 00:26:30 -0400 (EDT) Original-Received: by panix1.panix.com (Postfix, from userid 20712) id 7B59614B9D; Tue, 11 Jul 2017 00:26:30 -0400 (EDT) Original-Received: from localhost (localhost [127.0.0.1]) by panix1.panix.com (Postfix) with ESMTP id 77E7214B98 for ; Tue, 11 Jul 2017 00:26:30 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy] X-Received-From: 166.84.1.89 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113750 Archived-At: 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? --