From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#16184: 24.3.50; edebug and eval-when-compiler don't work together Date: Wed, 18 Dec 2013 11:58:23 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c245fa8398b504edcceca9 X-Trace: ger.gmane.org 1387364343 16819 80.91.229.3 (18 Dec 2013 10:59:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2013 10:59:03 +0000 (UTC) To: 16184@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 11:59:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VtEqK-0003a9-Bp for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 11:59:08 +0100 Original-Received: from localhost ([::1]:38115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEqK-0000O0-0Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2013 05:59:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEqF-0000Nf-Uf for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:59:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtEqE-00023i-6Y for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:59:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEqE-00023e-2z for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VtEqD-0006Uo-R3 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2013 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16184 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138736431424928 (code B ref -1); Wed, 18 Dec 2013 10:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Dec 2013 10:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:56632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtEpk-0006Tz-VH for submit@debbugs.gnu.org; Wed, 18 Dec 2013 05:58:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34480) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtEpj-0006Tr-Bq for submit@debbugs.gnu.org; Wed, 18 Dec 2013 05:58:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtEph-00021u-Dk for submit@debbugs.gnu.org; Wed, 18 Dec 2013 05:58:31 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEph-00021q-A5 for submit@debbugs.gnu.org; Wed, 18 Dec 2013 05:58:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEpf-0000Mn-J9 for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:58:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtEpd-00020n-PZ for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:58:27 -0500 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:43768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtEpd-00020j-Cu for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2013 05:58:25 -0500 Original-Received: by mail-wi0-f169.google.com with SMTP id hn6so4879440wib.2 for ; Wed, 18 Dec 2013 02:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NHZAUlW66cxL25Ibq7lgpNLBlhXzKMgWlcVfBdSQghw=; b=CEa+27IrWlxrjp5jS5qWVTCvNn/+KRp0HIsW1VfkfmFMAbduQTFY8dVTpcT8oDuVhf I+kRRRDiMqK9Z4P7YvUUM4VNbgAptKTghrRw5G9uvob/x2YXWL7hsMqtEKXa7dze8/P8 r2p0FqEP861uIN5na04j+zLm64ThjpgTVCj0na3BeQvxVmuh9Jr8zoGA7sB0NIoiEVpB tMUPX7u/oBfa9vPK2RKy+GM8z/9cq2R3sDsBS15WB4TOQxRWW0esw7loEy+UMYBaMp0l nnG8PS2/GQUNnu1+Vls6DB1DzzRyB+meaWlyrWHn4BsRBbvAlp4acGrmNG7rA70MAXm7 xkAg== X-Received: by 10.180.9.74 with SMTP id x10mr7523231wia.56.1387364303999; Wed, 18 Dec 2013 02:58:23 -0800 (PST) Original-Received: by 10.216.223.140 with HTTP; Wed, 18 Dec 2013 02:58:23 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82181 Archived-At: --001a11c245fa8398b504edcceca9 Content-Type: text/plain; charset=ISO-8859-1 Hi! The construct 'eval-when-compile' seems to throw debug off. When pressing C-u C-M-x on the following, an error is issued. This worked correctly in 24.3. This makes it hard to use edebug on functions in cc-mode (like c-font-lock-declarations), as it makes heavy use of eval-when-compile. (defun test (limit) (eval-when-compile (boundp 'parse-sexp-lookup-properties))) Sincerely, Anders Lidgren In GNU Emacs 24.3.50.2 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-12-17 on macpro.lan Bzr revision: 115421 monnier@iro.umontreal.ca-20131208081150-4bq2y1cgta14nfmj Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --with-ns' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-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 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 Recent input: C-u C-M-x C-SPC w s-f s-f f f d d d d C-a C-x C-s s-f t e s t C-u C-M-x C-x C-s C-a C-SPC C-g C-SPC w Recent messages: Saving file /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.el... Wrote /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.el Beginning of buffer Edebug: test edebug-enter: Symbol's value as variable is void: limit Saving file /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.el... Wrote /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.el Mark activated Quit Mark activated Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch edebug easymenu cl-loaddefs cl-lib vc-dispatcher vc-svn time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) --001a11c245fa8398b504edcceca9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi!

The construct 'eval-= when-compile' seems to throw debug off. When pressing C-u C-M-x on the = following, an error is issued. This worked correctly in 24.3. This makes it= hard to use edebug on functions in cc-mode (like=A0c-font-lock-declaration= s), as it makes heavy use of eval-when-compile.

(defun test (limit)
=A0 (eval-when-compi= le
=A0 =A0 (boundp 'parse-sexp-lookup-properties)))

Sincerely,
=A0 =A0 Anders Lidgren


In GNU Emacs 24.3.50.2 (x86_64-apple-darwin13.0.0, NS a= pple-appkit-1265.00)
=A0of 2013-12-17 on macpro.lan
Bzr revision: 115421 monnier@iro.umontreal.ca-20131208081150-4bq2y1cgt= a14nfmj
Windowing system distributor `Apple', version 10.3.12= 65
Configured using:
=A0`configure --with-ns'

Important settings:
=A0 value of $LC_CTYPE: U= TF-8
=A0 locale-coding-system: utf-8-unix
=A0 default e= nable-multibyte-characters: t

Major mode: Emacs-Li= sp

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

Recent input:
C-u C-M-x C-SPC <down> <down> <down> <escape>= w <up>=A0
<up> <up> <up> s-f s-f <esc= ape> f <escape> f <escape>=A0
d <escape> d <escape> d <escape> d <down> C-a = C-x C-s=A0
<up> <up> s-f <right> <right> = <right> <right> <right>=A0
<right> <ri= ght> <right> <right> <right> <backspace>=A0
<backspace> <backspace> t e s t <down> <down> = <up>=A0
C-u C-M-x C-x C-s <up> C-a C-SPC C-g C-SPC &l= t;down> <down>=A0
<down> <escape> w <menu= -bar> <help-menu> <send-ema
cs-bug-report>

Recent messages:
= Saving file /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.el...=
Wrote /Users/anders/emacs/src/misc/bug-edebug-eval-when-compile.= el
Beginning of buffer
Edebug: test
edebug-enter: Sym= bol's value as variable is void: limit
Saving file /Users/and= ers/emacs/src/misc/bug-edebug-eval-when-compile.el...
Wrote /User= s/anders/emacs/src/misc/bug-edebug-eval-when-compile.el
Mark activated
Quit
Mark activated

<= /div>
Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message form= at-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch edebug easymenu cl-loa= ddefs
cl-lib vc-dispatcher vc-svn time-date tooltip electric uniquify
<= div>ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset<= /div>
image regexp-opt fringe tabulated-list newcomment lisp-mode prog-= mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
=
jit-lock font-lock syntax facemenu font-core frame cham georgian
=
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abb= rev
minibuffer nadvice loaddefs button faces cus-face macroexp fi= les
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-proces= s
cocoa ns multi-tty emacs)

--001a11c245fa8398b504edcceca9--