all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjenkner@inode.at>
To: Glenn Morris <rgm@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	han@boetes.org, 22614@debbugs.gnu.org
Subject: bug#22614: 25.1.50; ../../emacs/lisp/net/eww.el:29:1:Error: Symbol’s value as variable is void: image-map
Date: Thu, 11 Feb 2016 16:29:16 +0100	[thread overview]
Message-ID: <85oabnl0w8.fsf@iznogoud.viz> (raw)
In-Reply-To: <868u2s1ydw.fsf@boetes.org>

On Wed, Feb 10 2016, Glenn Morris wrote:

> Wolfgang Jenkner wrote:
>
>> --- a/lisp/net/shr.el
>> +++ b/lisp/net/shr.el
>> @@ -189,6 +189,8 @@ shr-map
>>      (define-key map "\r" 'shr-browse-url)
>>      map))
>>  
>> +(defvar image-map nil)                  ;in case image.el is not pre-loaded
>> +
>
> This (ie, defining something from image.el in shr.el just to stop a void
> variable error) seems sub-optimal to me. Can't shr use something like
> "(when (featurep 'image) ...)" instead?

Well, you still get `image-map' as an interned symbol and I think it's
actually better to explicitly give it a nil value since the value it is
given in image.el is not too useful in an emacs where image.el is not
pre-loaded, i.e. compiled without graphical support (actually, it seems
to be completely useless, see other messages in this bug report).

Obviously, I considered your (and also Andreas') suggestion as well,
I decided otherwise, but I don't care (much).

Wolfgang





  parent reply	other threads:[~2016-02-11 15:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 13:35 bug#22614: 25.1.50; ../../emacs/lisp/net/eww.el:29:1:Error: Symbol’s value as variable is void: image-map Han Boetes
2016-02-10 16:45 ` Wolfgang Jenkner
2016-02-10 23:16   ` Glenn Morris
2016-02-11  3:50     ` Lars Ingebrigtsen
2016-02-11  9:59       ` Andreas Schwab
2016-02-12  2:18         ` Lars Ingebrigtsen
2016-02-11 15:29     ` Wolfgang Jenkner [this message]
     [not found] ` <handler.22614.D22614.145512272411264.notifdone@debbugs.gnu.org>
2016-02-10 16:52   ` bug#22614: closed (Re: bug#22614: 25.1.50; ../../emacs/lisp/net/eww.el:29:1:Error: Symbol’s value as variable is void: image-map) Han Boetes
2016-02-10 17:05     ` Wolfgang Jenkner
2016-02-10 21:09       ` Wolfgang Jenkner
2016-02-11  3:52         ` Lars Ingebrigtsen

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=85oabnl0w8.fsf@iznogoud.viz \
    --to=wjenkner@inode.at \
    --cc=22614@debbugs.gnu.org \
    --cc=han@boetes.org \
    --cc=larsi@gnus.org \
    --cc=rgm@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.