From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#33375: 27.0.50; Nested function definitions Date: Wed, 14 Nov 2018 11:06:52 +0100 Message-ID: References: <3de36fb2-d7e6-347e-79ec-c38950aca174@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1542189630 28525 195.159.176.226 (14 Nov 2018 10:00:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2018 10:00:30 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 33375@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 11:00:26 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMryC-0007Ik-M7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2018 11:00:24 +0100 Original-Received: from localhost ([::1]:59158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMs0I-00005D-Ou for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2018 05:02:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMs01-0008Uq-KQ for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:02:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMrzo-0008UT-4P for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:02:15 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMrzm-0008T5-3I for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gMrzl-00039h-S7 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2018 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33375 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.154218968512078 (code B ref -1); Wed, 14 Nov 2018 10:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Nov 2018 10:01:25 +0000 Original-Received: from localhost ([127.0.0.1]:50949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMrzB-00038k-0W for submit@debbugs.gnu.org; Wed, 14 Nov 2018 05:01:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMrzA-00038Y-3F for submit@debbugs.gnu.org; Wed, 14 Nov 2018 05:01:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMrz3-0007kD-B4 for submit@debbugs.gnu.org; Wed, 14 Nov 2018 05:01:18 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMrz3-0007k5-7r for submit@debbugs.gnu.org; Wed, 14 Nov 2018 05:01:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMrz0-0008ES-Qp for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:01:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMryw-0007h4-QR for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:01:14 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.73]:43357) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMryw-0007U3-Hf for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 05:01:10 -0500 Original-Received: from [192.168.178.35] ([88.130.96.103]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MmD2M-1fehWc3dL6-00iCeC for ; Wed, 14 Nov 2018 11:01:07 +0100 In-Reply-To: <3de36fb2-d7e6-347e-79ec-c38950aca174@easy-emacs.de> Content-Language: en-US X-Provags-ID: V03:K1:ujxlje8k1c+4/zyFwfCbqToPMnKkBYcWd10t9ccwPxwHX1fNb7t sEAh5alV58sm76gRMEGfhYdPXn70a3HUdsiOenGINctcqz5NCvHIYHirJMxSd/rgA5Blkqq Ez54K2snXhuD5lmIg7xXvoVP74nUKd6s2bMEg8/psGLliY0pDO92m8+gA5nvrtUplBdm4hQ gg2I8pQne8eL5ZLu1L0Rg== X-UI-Out-Filterresults: notjunk:1;V01:K0:LtAZi1Doofs=:NWv0YAgyO1UvhgU2ehLKrO 3486OOyj26R90a1ocxkS8b6rBLA374cGthzGXbxMZAzbWoKiyBJimx6hfGNrhZSCzgcSfDL2q jVYA5Dr9YTpZvVwjKe3FlJ/pfLLSSoDtW0yEh6s8nvh6mNcncFQt3ofgwIo8yuUKdCrKomzOc asfoC3P+n78rxh0JhRPKhOECofWaEaljn6DArQmT3nvsICATcdVJErCS1/10IXBobnXuQPjQ3 cwWRTDx3/qbkmEGyAV6JV9WpIUVhQpFvKCfL3X+WsS4+DMVkEmMMn58HPkuuKexxMCHwtLf5w G19rjFleikd5rMRTwoWsO89qRXAWbPpW0pjc7DWq9ZEgJHAZWTso7yHSLHuqTv89F1pywec1G SgB0Q99duM2KUECRyDCR8bc/oQYki+5fyFtfnKHtA14GIY1aKyuScIOTJPDCTR68s14SKmLPA OeP0tsa/9lAA7h/9xOIaHHqoChXsdYZtYjtqe03LfIg998BwZhVqKb4cFC2q3fZJ2QhEvqKM+ tO6TPrs5YQvDIbFLrEHIsWi/B77QoQvrxp6vjX3kf2IjhOIaNgAdUSb4ACHbuPw8YcQ31VJIs eVSLd3zxPHhH1qczo2ALgyF8Nj1dV/uZT3UoZ4ZXIQJBUp7DQ6MHm/SCkPYIEhgu11Tr8af1t kIxXq0DfjLS6oDD8IB56m4W3UJ1kPbElVCpP8I9R9vV07M4ynlUQUXWINZzA1KutI9nvPKNkS yC88uSbgKFSj0pYOY8BhWGwDLRviG+/bXxJ25P07IlO4kEYow+HJoYmcMIOMWJEy5+WHfuWz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:152378 Archived-At: On 14.11.2018 10:39, Andreas Röhler wrote: > > In GNU Emacs 27.0.50 (build 2, i686-pc-linux-gnu, GTK+ Version 3.14.5) >  of 2018-11-09 > > > > (defun foo1 () >   "[Some docu] > > (defun other-foo " >   (interactive) >   ;; defining another function inside >   (defun foo2 () >     (interactive) >     (message "%s"   "Foo2") > ;; another syntactically correct function just badly indented > (defun foo3 () >   (interactive) >   (message "%s" Foo3)) >       ) >   (message "%s" "Foo1")) > > ;;;; > Results of evaluation: > > (foo1) ==> "Foo1" > (foo2) ==> foo3 ? > (foo3) ==> Debugger entered--Lisp error: (void-variable Foo3) >   (message "%s" Foo3) >   foo3() >   eval((foo3) nil) >   elisp--eval-last-sexp(nil) >   eval-last-sexp(nil) >   funcall-interactively(eval-last-sexp nil) >   call-interactively(eval-last-sexp nil nil) >   command-execute(eval-last-sexp) > > Also strange: M-x foo2 RET messages the correct "Foo2" > > Cheers, > Andreas > GNU Emacs 27.0.50 (build 2, i686-pc-linux-gnu, GTK+ Version 3.14.5) of > 2018-11-09 > > > > Repository revision: 4f0e54223a60a34818365475440e023747eab7e9 > Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 > System Description: Debian GNU/Linux 8 (jessie) > > Recent messages: > "Foo1" > Foo2 > foo3 > Entering debugger... > Mark set > Saved text from "Debugger entered--Lisp error: (void-vari" > Mark set > Saving file /home/speck/foo.el... > Wrote /home/speck/foo.el > Foo2 > > Configured using: >  'configure --with-modules --enable-checking >  --enable-check-lisp-object-type --with-mailutils' > > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB > NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB > TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS GMP > > Important settings: >   value of $LANG: de_DE.utf8 >   value of $XMODIFIERS: @im=ibus >   locale-coding-system: utf-8-unix > > Major mode: Emacs-Lisp > > Minor modes in effect: >   tooltip-mode: t >   global-eldoc-mode: t >   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 >   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 message rmc puny seq byte-opt gv > bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml > mml-sec password-cache epa derived epg epg-config gnus-util rmail > rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse > rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 > ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print > debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib > elec-pair 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 threads dbusbind > inotify dynamic-setting system-font-setting font-render-setting > move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) > > Memory information: > ((conses 8 158015 10577) >  (symbols 24 34540 1) >  (strings 16 57691 2348) >  (string-bytes 1 1065410) >  (vectors 8 15056) >  (vector-slots 4 522266 19972) >  (floats 8 54 150) >  (intervals 28 437 232) >  (buffers 528 13) >  (heap 1024 41340 869)) > > > Update: there where missing string-quotes, error changed: (defun foo1 () "[Some docu] (defun other-foo " (interactive) ;; defining another function inside (defun foo2 () (interactive) (message "%s" "Foo2") ;; another syntactically correct function just badly indented (defun foo3 () (interactive) (message "%s" "Foo3")) ) (message "%s" "Foo1")) ;;;; Results of evaluation: (foo1) ==> "Foo1" (foo2) ==> foo3 ? (foo3) ==> "Foo3"