From: Hong Xu <hong@topbug.net>
To: Matthew Carter <m@ahungry.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>, emacs-devel@gnu.org
Subject: Re: Unnecessary variable shr-start
Date: Sun, 04 Dec 2016 12:01:57 -0800 [thread overview]
Message-ID: <87pol78nuy.fsf@topbug.net> (raw)
In-Reply-To: <87lgvx7bae.fsf@ahungry.com>
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
On 2016-12-02 Fri 22:54 GMT-0800, Matthew Carter <m@ahungry.com> wrote:
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> Hong Xu <hong@topbug.net> writes:
>>
>>> In the current master branch, it seems that the variable shr-start has
>>> never been used in any sensible way: Every time its value is referred,
>>> it is bound to nil. Should it be considered to be removed?
>>
>> Are you sure it is always bound to nil when referenced in `shr-tag-a'?
>> I would expect it can be changed by side effect in the body, and the
>> let-binding is there to make that change temporary.
>>
>>
>> Michael.
>>
>
> It looks like it's bound at the top defvar level (and changed via setq
> in the img function), so those let's to nil in certain functions are
> likely to inhibit the current setting when those functions begin to
> run.
That's exactly what I meant: Every time it is referred, it is bound to
nil by a let.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-12-04 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 18:35 Unnecessary variable shr-start Hong Xu
2016-12-02 22:26 ` Michael Heerdegen
2016-12-03 6:54 ` Matthew Carter
2016-12-04 20:01 ` Hong Xu [this message]
2016-12-05 8:25 ` Katsumi Yamaoka
2016-12-05 8:32 ` Hong Xu
2016-12-05 12:11 ` Tino Calancha
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=87pol78nuy.fsf@topbug.net \
--to=hong@topbug.net \
--cc=emacs-devel@gnu.org \
--cc=m@ahungry.com \
--cc=michael_heerdegen@web.de \
/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.