all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: xraysmalevich@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: "push" creating circular objects
Date: Thu, 21 Aug 2008 07:25:14 -0700 (PDT)	[thread overview]
Message-ID: <97aa1e64-e971-4f9a-9498-3564df1af73e@a1g2000hsb.googlegroups.com> (raw)
In-Reply-To: 4990de62-178c-478a-9362-cedc660f9335@j22g2000hsf.googlegroups.com

On Aug 21, 10:12 am, Charles Sebold <cseb...@gmail.com> wrote:
> On Aug 20, 4:50 pm, weber <hug...@gmail.com> wrote:
>
>
>
> > Minor variation:
>
> > (defun test2 (str)
> >   (let (my-list)
> >         (with-temp-buffer
> >           (insert str)
> >           (goto-char (point-min))
> >           (while (not (eobp))
> >                 (cond
> >                   ((= (char-after) ?#)
> >                    (push "ol" my-list))
> >                   ((= (char-after) ?*)
> >                    (push "ul" my-list)))
> >                 (forward-char 1)))
> >         my-list))
>
> > no need to bind my-list to nil too :)
>
> Useful tip, thanks.
>
> Astoundingly I'm still having the same problem, when I run this in the
> context of the larger program.  Against the string "** " it returns
> the circular list (#1="ul" #1#).  In the scratch buffer it works (same
> as with my function earlier).
>
> So, I must be rebinding something else in a bad way, but heck if I
> know how.  I'm going to try to trim the whole problem down to a bare
> minimum test case and then if I can't figure it out I'll post the
> whole thing and ask people to eval and see what they can come up
> with.  Thanks for your time.
>
> Charlie

To check if you've rebound a function, try running emacs without the
init file (emacs -q) and see if that changes this behavior.


  reply	other threads:[~2008-08-21 14:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 13:25 "push" creating circular objects Charles Sebold
2008-08-20 16:27 ` Charles Sebold
2008-08-20 19:07   ` Charles Sebold
2008-08-20 21:47     ` weber
2008-08-20 21:50     ` weber
2008-08-21 14:12       ` Charles Sebold
2008-08-21 14:25         ` xraysmalevich [this message]
2008-08-21 15:23           ` Charles Sebold
2008-08-21 18:41         ` Pascal J. Bourguignon
2008-08-21 20:25           ` Charles Sebold
2008-08-21 16:14 ` John Paul Wallington
2008-08-21 16:49   ` Charles Sebold
2008-08-23 11:43     ` Nikolaj Schumacher
2008-08-23 12:17     ` Pascal J. Bourguignon

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=97aa1e64-e971-4f9a-9498-3564df1af73e@a1g2000hsb.googlegroups.com \
    --to=xraysmalevich@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.