all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Le Wang <l26wang@gmail.com>
To: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: weird Emacs bug
Date: Wed, 7 Sep 2011 17:42:02 +0800	[thread overview]
Message-ID: <CAM=K+ipCh48GFTbfid-SetuyUW23WbTpazmCt+XTL+7TdFFmXg@mail.gmail.com> (raw)

Hi all,

I've come across a weird bug with this line:

   (push '(:temp-file-pos . 0) e-sink-data-alist)

'(:temp-file-pos . 4) was already in the list.  Now if I <C-h v>
e-sink-data-alist, it shows (:temp-file-pos . 4) at the head of the
list instead of (:temp-file-pos . 0).

If I change the line to:

   (push `(:temp-file-pos . ,(+ 0 0)) e-sink-data-alist)

it works fine.

If I run the code step-by-step in edebug, it works fine.

The relevant context is here if anyone wants to take a look:

https://github.com/lewang/e-sink/commit/36cfbcaada1a0ccab3e47ab8d67237dfde6d6e26#e-sink.el

-- 
Le



                 reply	other threads:[~2011-09-07  9:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAM=K+ipCh48GFTbfid-SetuyUW23WbTpazmCt+XTL+7TdFFmXg@mail.gmail.com' \
    --to=l26wang@gmail.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.