GNU bug report logs - #13733
24.2.50; apropos-value will error when encountering a circular strucure

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sun, 17 Feb 2013 10:34:01 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 24.2.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50;
	apropos-value will error when encountering a circular strucure
Date: Sun, 17 Feb 2013 10:32:01 +0000
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.