GNU bug report logs - #32748
26.1; EDEBUG eval error

Previous Next

Package: emacs;

Reported by: Live System User <nyc4bos <at> aol.com>

Date: Mon, 17 Sep 2018 03:53:02 UTC

Severity: minor

Tags: notabug

Found in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32748 in the body.
You can then email your comments to 32748 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32748; Package emacs. (Mon, 17 Sep 2018 03:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Live System User <nyc4bos <at> aol.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Sep 2018 03:53:02 GMT) Full text and rfc822 format available.

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

From: Live System User <nyc4bos <at> aol.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; EDEBUG eval error
Date: Sun, 16 Sep 2018 23:51:31 -0400
[Message part 1 (text/plain, inline)]
Hi,

        While using/learning edebug, I ran into the following
        error when eval'ing:

[edebug-error.txt (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
        Eval'ing the same way in Emacs 25.2 yielded the expected:

predicate’s value is shown below.

Documentation:
Not documented as a variable.

Value: (lambda nil
  (and
   (stringp parse-time-elt)
   (=
    (length parse-time-elt)
    8)
   (=
    (aref parse-time-elt 2)
    58)
   (=
    (aref parse-time-elt 5)
    58)))


    Thannks.
    


In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.20.10)
 of 2018-08-31 built on localhost.localdomain
Windowing system distributor 'Fedora Project', version 11.0.11803000
Recent messages:
Accepting certificate for news.gmane.org:nntp this session only
auth-source-search: found 1 backends matching (:max 1 :host ("news.gmane.org" "news") :port ("119" "nntp" "nntp" "563" "nntps" "snews"))
Making completion list...

Configured using:
 'configure 'CFLAGS=-DMAIL_USE_LOCKF -O0 -ggdb3 -pipe -Wall
 -Werror=format-security -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
 LDFLAGS=-Wl,-z,relro --disable-dependency-tracking
 --prefix=/tmp/emacs-26.1 --with-dbus
 --with-gif --with-jpeg --with-png --with-rsvg --with-lcms2 --with-tiff
 --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=yes
 --with-xwidgets --with-modules

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  gnus-desktop-notify-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug timezone network-stream nsm gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache gnus-demon
nntp gnus-desktop-notify notifications dbus xml epa-file nnreddit json
rx map gnus-art mm-uu mml2015 sieve sieve-mode sieve-manage starttls
sasl sasl-anonymous sasl-login sasl-plain advice nnir gnus-sum
gnus-group mm-url gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source imap tls gnutls utf7 netrc parse-time gnus-spec gnus-int
gnus-range gnus-win gnus message rmc puny seq dired desktop frameset
edmacro kmacro dired-loaddefs subr-x format-spec rfc822 mml url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp
byte-compile cconv eieio-core eieio-loaddefs url-vars mm-view mml-smime
smime dig mailcap mml-sec password-cache epa epg cl-extra help-mode
easymenu epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev sendmail derived gmm-utils mailheader wid-edit nnoo nnheader
gnus-util rmail dframe rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils cl misearch multi-isearch elec-pair cl-seq
easy-mmode cl-macs inline cl-loaddefs cl-lib gv pcase time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting xwidget-internal
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 713549 27856)
 (symbols 48 125281 0)
 (miscs 40 69 217)
 (strings 32 102951 1953)
 (string-bytes 1 3940653)
 (vectors 16 10628)
 (vector-slots 8 550092 13500)
 (floats 8 261 220)
 (intervals 56 303 56)
 (buffers 992 21)
 (heap 1024 74130 2223))

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32748; Package emacs. (Mon, 17 Sep 2018 12:19:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Live System User <nyc4bos <at> aol.com>
Cc: 32748 <at> debbugs.gnu.org
Subject: Re: bug#32748: 26.1; EDEBUG eval error
Date: Mon, 17 Sep 2018 08:18:21 -0400
Live System User <nyc4bos <at> aol.com> writes:

>         While using/learning edebug, I ran into the following
>         error when eval'ing:

If you eval `predicate' just after the expression for its value (where I
put the first "!" in the code below), it hasn't been bound yet, so you
get this error.  It should work fine it you're inside the let though
(e.g., at the second "!").  It should also work in subsequent `let*'
(though not `let') bindings, but in this case, there is no such stop
point.

    (defun parse-time-string (string)
      [...]
              (let* ((rule (pop rules))
                     (slots (pop rule))
                     (predicate (pop rule)!)
                     (parse-time-val))
                !(when (and (not (nth (car slots) time)) ;not already set
                  [...]




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32748; Package emacs. (Thu, 04 Oct 2018 01:16:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Live System User <nyc4bos <at> aol.com>
Cc: 32748 <at> debbugs.gnu.org
Subject: Re: bug#32748: 26.1; EDEBUG eval error
Date: Wed, 03 Oct 2018 21:15:00 -0400
tags 32748 notabug
close 32748
quit

Live System User <nyc4bos <at> aol.com> writes:

>         Eval'ing the same way in Emacs 25.2 yielded the expected:
>
> predicate’s value is shown below.
>
> Documentation:
> Not documented as a variable.
>
> Value: (lambda nil
[...]

Your error backtrace suggests you used edebug-eval, but this output
suggests you used describe-variable.  The latter will not work in
emacs-26 because parse-time.el switched to lexical-binding, so that
predicate's symbol-value is no longer affected.

As mentioned in my other message, edebug-eval from within the let BODY
should work regardless, and I don't think there is a bug here, so I'm
closing this report.




Added tag(s) notabug. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 04 Oct 2018 01:16:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 32748 <at> debbugs.gnu.org and Live System User <nyc4bos <at> aol.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 04 Oct 2018 01:16:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Nov 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 237 days ago.

Previous Next


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