all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: E Sabof <esabof@gmail.com>
To: 13733@debbugs.gnu.org
Subject: bug#13733: 24.2.50; apropos-value will error when encountering a circular strucure
Date: Sun, 17 Feb 2013 10:32:01 +0000	[thread overview]
Message-ID: <CAEp6DybY4PCYPAQ5CnKxLS6+EbFqrEjvO6YQAzn+KeGOxQmJZw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

Patching apropos.el in the following manner seems to have fixed the problem.

(defun apropos-value-internal (predicate symbol function)
      (if (funcall predicate symbol)
          (progn
            (setq symbol (or (ignore-errors
                               (prin1-to-string (funcall function symbol)))
                             ""))
            (if (string-match apropos-regexp symbol)
                (progn
                  (if apropos-match-face
                      (put-text-property (match-beginning 0) (match-end 0)
                                         'face apropos-match-face
                                         symbol))
                  symbol)))))

Evgeni

[-- Attachment #2: Type: text/html, Size: 919 bytes --]

             reply	other threads:[~2013-02-17 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-17 10:32 E Sabof [this message]
2013-12-18  4:57 ` bug#13733: 24.2.50; apropos-value will error when encountering a circular strucure Chong Yidong
2014-02-07 17:02   ` E Sabof

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=CAEp6DybY4PCYPAQ5CnKxLS6+EbFqrEjvO6YQAzn+KeGOxQmJZw@mail.gmail.com \
    --to=esabof@gmail.com \
    --cc=13733@debbugs.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.