From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: byte-compiler does *not* complain about missing case or loop Date: Sat, 08 Mar 2014 08:59:26 +0530 Message-ID: <878uslmkq1.fsf@gmail.com> References: <87siqwslfm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1394249205 18307 80.91.229.3 (8 Mar 2014 03:26:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2014 03:26:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 04:26:54 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WM7uX-00023I-Lz for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2014 04:26:53 +0100 Original-Received: from localhost ([::1]:39204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM7uW-0002wc-M0 for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2014 22:26:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM7uP-0002wP-2n for emacs-devel@gnu.org; Fri, 07 Mar 2014 22:26:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WM7uJ-0006ZO-P0 for emacs-devel@gnu.org; Fri, 07 Mar 2014 22:26:45 -0500 Original-Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:55057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM7uJ-0006ZJ-HR for emacs-devel@gnu.org; Fri, 07 Mar 2014 22:26:39 -0500 Original-Received: by mail-pd0-f177.google.com with SMTP id g10so4760860pdj.8 for ; Fri, 07 Mar 2014 19:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=5ab7wgUlfglCrUuonz44K5lv5sfzwl4dXVV17Ufhaqk=; b=0zcG/WqKvfGxPES5p+qRUm3TkIk96twNlrGsQr4W8HeKfLdI56Hkg/lH5B1G3RLNS5 e/HSEt4qe34/0jIu0397xo3g0sXr9gVX1mDlVZsOm14fOwfV3Wwr5BLP+HdsefGHdZcr T7TfHxWrhBIADRI5kRWb7gfbWUYTgyuYB21Hw8xz/jj7dKauKfUJctPOL+Rpng+nzoua Gmtl2Ymo/bqjwhSZ3KuIewSEM0zWRQ15EONEdi965qSCefexOlEZT+CKAUkA7EmyhaZ2 UnOEivTV55ybAwML2QjRvEcExmNrWdvVofjdnaLE+dEBK0yGiLEOCI9eSMSIrDWnj3jd R5NQ== X-Received: by 10.66.142.233 with SMTP id rz9mr26248304pab.71.1394249198290; Fri, 07 Mar 2014 19:26:38 -0800 (PST) Original-Received: from debian-6.05 ([101.63.198.199]) by mx.google.com with ESMTPSA id z3sm19339498pas.15.2014.03.07.19.26.33 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 07 Mar 2014 19:26:36 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 07 Mar 2014 15:03:38 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170218 Archived-At: --=-=-= Content-Type: text/plain Stefan Monnier writes: >> Why is the byte-compiler silent about the "missing" `case' and `loop'? > > AFAIK it does report them as missing, at the end of the compilation > (it can't report them right away because `loop' and `case' might be > defined as functions further down in the file). Try the attached test.el (with emacs -Q). 1. The compiler doesn't get to "the end of data" ritual. 2. How would I interpret the error? 1:40 ends points to param line but the actual error report - the `marker' variable - is elsewhere. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=test.el Content-Transfer-Encoding: quoted-printable (defun hx-org-text-markup (text-markup info) (let* ((type (hx-element-type text-markup)) (marker (loop for (types . marker) in hx-org--element-type->mark when (member type types) return marker))) (format "%s%s%s" marker (hx-export (hx-element-contents text-markup) in= fo) marker))) ;; ;; Compiling file /home/kjambunathan/test.el at Sat Mar 8 08:39:18 2014 ;; test.el:1:40:Error: Wrong type argument: sequencep, marker --=-=-=--