From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: Emacs 26.0.50 (Git@head) Nested defsubst fails Date: Fri, 24 Feb 2017 09:36:58 -0800 Message-ID: <22704.28474.463705.935796@retriever.mtv.corp.google.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1487958956 28215 195.159.176.226 (24 Feb 2017 17:55:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 17:55:56 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: raman@google.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 24 18:55:52 2017 Return-path: Envelope-to: ged-emacs-devel@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 1chK5s-0006af-Hd for ged-emacs-devel@m.gmane.org; Fri, 24 Feb 2017 18:55:48 +0100 Original-Received: from localhost ([::1]:38970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chK5y-0000BB-81 for ged-emacs-devel@m.gmane.org; Fri, 24 Feb 2017 12:55:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chJuD-0002Vm-6H for emacs-devel@gnu.org; Fri, 24 Feb 2017 12:43:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chJu9-0003je-0r for emacs-devel@gnu.org; Fri, 24 Feb 2017 12:43:45 -0500 Original-Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:36738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chJu8-0003jU-Qs for emacs-devel@gnu.org; Fri, 24 Feb 2017 12:43:40 -0500 Original-Received: by mail-pg0-x22f.google.com with SMTP id s67so13920779pgb.3 for ; Fri, 24 Feb 2017 09:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=nr4lF62/6PP6Y4YbBCcXtCrxlyV+mfDcPHHI5228m8s=; b=KwVW6m9hbNHE/vSScgLMAn8nNqDMu7n7Cy4vaaGRUMcFWM9QXVMAe90FvN6JsqzT6h QnliBoo/ewdeSoc/6A4kCfZkmUr3gk1wDgmdMbd35FUdGhjmXHerI7CZyepLVota4MPb TzOgRSdUGwbMPVWyK5p7QFkXZQaapi8cMQx1+URk53r7He3Von0dsfSWkx8Et261PySB rKh5PWuFck4fv9YjgcF91EQ79kcaMlNEFk1U0Wt4yNpiuAMYz+fTbpGkq02tlEr6fmp0 Brqy8yaD7HL+8dydlD7qQZf2BK/+CQr8LvbH37SSdDAIr1YHpoecQJQ1aYDLr9oPR2sK LCXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=nr4lF62/6PP6Y4YbBCcXtCrxlyV+mfDcPHHI5228m8s=; b=UjY/uKmiorvcgcq9djBTSchOYYtYsqL24cfGnROzVfhmBO8I5KT0QQ98TxgzP/Icwn 3VkS63KA60MlbYorZ3KbvXie0/3JwKseu/8gwbmVVMW8ALy72ZpW8Z10/qPnmg3Uk5Vf mdoTyi+pN7w8rjE63HTBnbd1Edzw9bJKGVbI95/g10jl4JnZ96mfnhBiQPDLO1XJ/0S2 35ir4DpALm/XpEKZxbibmqtIDdZt4nZ+KdqBeU1VULR99uokEOiPPsbapBuoo+K0fmng aPOUH18Gfm13FNYxW4DMUpFG0LU0Ss9rB0v3uZ/CUedu3/0eWvmxyHKtXSu/pRIe6bt4 R/nw== X-Gm-Message-State: AMke39lYhaUONOs4SUC3ghGD0vszXGuD9e/jzlUrgy67hqAfnVb9Dv3P5AN2E/6iazrO+kib X-Received: by 10.84.172.1 with SMTP id m1mr5408377plb.5.1487957822939; Fri, 24 Feb 2017 09:37:02 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([100.98.8.138]) by smtp.gmail.com with ESMTPSA id f66sm12615500pfj.132.2017.02.24.09.37.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Feb 2017 09:37:02 -0800 (PST) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 4C74A1A1190; Fri, 24 Feb 2017 09:37:00 -0800 (PST) In-Reply-To: X-Mailer: VM 8.1.1 under 25.2.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212575 Archived-At: Here's a sample file demonstrating the problem. ;;; byte compiling this with emacs 26 fails. ;;; Changing outer defsubst to defun succeeds (defvar test-bc-null-char (format "%c" 0) "Null char.") (defsubst inner (mode) "Remove null-char C-@." (declare (special test-bc-null-char)) (goto-char (point-min)) (cond ((eq mode 'all) (while (search-forward test-bc-null-char nil t) (replace-match " control at "))) (t (while (search-forward test-bc-null-char nil t) (replace-match ""))))) (defsubst outer(mode) "Clean-up text before sending it out." (let ((inhibit-read-only t)) (test-bc-fix-null-char mode))) -- --