From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: [PATCH] add some things to pure-fns Date: Sun, 24 Sep 2017 12:55:21 -0400 Message-ID: <20170924165521.7o45m5msrrdikyes@logos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1506272141 15347 195.159.176.226 (24 Sep 2017 16:55:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2017 16:55:41 +0000 (UTC) User-Agent: NeoMutt/20170912-13-728bb5 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 24 18:55:36 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 1dwABp-00037J-J3 for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2017 18:55:33 +0200 Original-Received: from localhost ([::1]:38786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwABq-00089H-Sx for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2017 12:55:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwABk-000898-CB for emacs-devel@gnu.org; Sun, 24 Sep 2017 12:55:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwABg-0006Pt-VZ for emacs-devel@gnu.org; Sun, 24 Sep 2017 12:55:28 -0400 Original-Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:43254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwABg-0006Oe-Px for emacs-devel@gnu.org; Sun, 24 Sep 2017 12:55:24 -0400 Original-Received: by mail-qt0-x235.google.com with SMTP id i50so4951123qtf.0 for ; Sun, 24 Sep 2017 09:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=VjfpAv0eUM6WtzVhsf6xFudUucFSdVKrahCUFwMipJc=; b=gapg8neKodqgvDF64bwESo1UlAzslVMrebrejZ0NYT1O+G3QmurWcr2LIZUMUVlcSV Eo77FkpoVE3GvlpJJghlvITPlkMAZqAj9R6x0Kv12LIOynyxfgjkZQIDXlzMYrzZeAHu 7JC2MvFi/0QyyVQJNv76dgKFh3XuxN7g3/NKikJR469xeZQWsKKV3R/kQo3KieApjWzy 2n3wuzNUVorNp272GkKrxULYXuJrS2PjGEcMbxxbwp+hjG+CZzZwVnSB5y3XG1c3+MJo A6ZU9TGnb+oo/J9thIPzmU2NETW6mmCvb2psooWSx97F6jH7NvX8YE9mWvji8cZAWl3n 2zNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=VjfpAv0eUM6WtzVhsf6xFudUucFSdVKrahCUFwMipJc=; b=A7PIymRexupAn9PAfdahjJXFxw7HgPVZ7VJmOHMvMuNeshxZM5ynhoM+xOfXO8/hUJ 9KvSDOho66UHqorgoZ6bux1PV/Li+Rz83Mi31YjK0RRvBRDq5UGoru99d1it/iA8gomN OvcLI2P6THRaICPY8m4H1QhGshiYI7OH7ZvgHw1maSmiac+r3ieh/KcqXPIKhBfCkLAV 70vApQA4TZduShV7nnQx21LH7vhiToPQWf9jLMNcFB36h+82U1nS1RWd6y7NjB5LWdhC bWYk2+TCY3K4vSbZRPhuvmB8qDrtEMQPRI7vtZ4hoFD647f5L1KEZgG4gxAEpRjTykVJ Mfag== X-Gm-Message-State: AHPjjUhtoAsuPGOwPJh5afo7yA091/Xgv+1UbovtBovIfedr1sPj1qzX gjdy/5fi/KRjt6yBOQsiOSzRjzIig6I= X-Google-Smtp-Source: AOwi7QAXTjbJfZpfgUqHf58wuZWXnETN3tvtc586sU4fiqS11hPLQ/uhYRBjO/6jUI7wrddHW3lusg== X-Received: by 10.237.34.56 with SMTP id n53mr7913782qtc.140.1506272122451; Sun, 24 Sep 2017 09:55:22 -0700 (PDT) Original-Received: from logos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id o17sm3662151qkl.14.2017.09.24.09.55.21 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 09:55:21 -0700 (PDT) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::235 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:218750 Archived-At: Based on the discussion here: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00953.html which also continues this month, the following shouldn't make anything explode, since all these functions return integers. diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 962a7ae5cd..297e43884f 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -1281,7 +1281,10 @@ byte-optimize-set ;; errors to compile time. (let ((pure-fns - '(concat symbol-name regexp-opt regexp-quote string-to-syntax))) + '(concat symbol-name regexp-opt regexp-quote string-to-syntax + string-to-char + ash lsh logb lognot logior logxor + ceiling floor))) (while pure-fns (put (car pure-fns) 'pure t) (setq pure-fns (cdr pure-fns)))