From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24269: 24.5; Add optional arg to `eval-buffer' and `eval-region' to ignore invisible text Date: Sat, 27 Jul 2019 09:46:19 -0700 (PDT) Message-ID: <4ef0b71d-11b6-4d2f-b417-b9a5024635c1@default> References: <16737e44-5706-4721-bec2-001866a0aa02@default> <87blxffrri.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250862"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 24269@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 18:47:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrPqe-00139i-JU for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 18:47:08 +0200 Original-Received: from localhost ([::1]:46628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrPqc-0004pV-VV for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 12:47:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46364) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrPqZ-0004pA-1G for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 12:47:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrPqY-0000nS-1N for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 12:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrPqX-0000my-TB for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 12:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrPqX-0004xu-PW for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 12:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24269 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 24269-submit@debbugs.gnu.org id=B24269.156424599117532 (code B ref 24269); Sat, 27 Jul 2019 16:47:01 +0000 Original-Received: (at 24269) by debbugs.gnu.org; 27 Jul 2019 16:46:31 +0000 Original-Received: from localhost ([127.0.0.1]:45316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrPq2-0004YR-J2 for submit@debbugs.gnu.org; Sat, 27 Jul 2019 12:46:30 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrPq1-0004Sl-3A for 24269@debbugs.gnu.org; Sat, 27 Jul 2019 12:46:29 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6RGiGxo004866; Sat, 27 Jul 2019 16:46:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=3bSxc9eAHmiHFDJFPxLMMqin6OuR+6VZyHeUznOwa1c=; b=waR+k0V5oGgjoeyua9F9Q5tX2m+sahqpAs7w7Ok88sDkaU+eQxI8xnleo2UErk1UaApl XIo80/nwNubstot2oIjAQIVxae96E5MJ1H7TVKwBFtDiv/35srZE4e4EGNhf1MtK3tFe jrTtK7HIEI+WARghYBfK3pRQl/8rsflKREccL9CQ4oi9gkofE836H7XEg7QASqPUSRwS QuVt7msLFbgohbGc8mHHQnJL8vjRNkUJ+K+nmE7nZaOlQq8QeDEkrf1eZ/5mWCNOiOXS QoJX7TDVZiNmMJChbbccBUpXyuPUlAiuE9ANtVanfhvkz7SzdLNZAF583ldk2XTtKdYM sw== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2u0e1t9qmx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Jul 2019 16:46:22 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6RGhBTO088936; Sat, 27 Jul 2019 16:46:22 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2u0bqsvtdd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Jul 2019 16:46:22 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6RGkK19015291; Sat, 27 Jul 2019 16:46:21 GMT In-Reply-To: <87blxffrri.fsf@mouse.gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907270210 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907270210 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: 209.51.188.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:163901 Archived-At: > > Enhancement request. Add an optional argument to `eval-buffer' and > > `eval-region'. When it is non-nil, ignore text that is invisible. > > > > More generally, maybe: if a (non-nil) symbol, interpret the symbol as > a > > text property, and ignore any text that has a non-nil value of that > > property. >=20 > I don't think that sounds like a clean interface for these functions. > If you need stuff like this, it sounds like you should just write > functions that do this for you. Closing. It's not about me (or anyone) _needing_ this behavior. It's about the _use cases_ of these two commands. It just _makes sense_ for these existing commands to let you ignore certain zones of text. They already do that (naturally) for sexps in comments. Instead of commenting out a zone to have it ignored, you could well want to eval only specific zones of text. That's in fact the _only_ use case of `eval-region': it ignores text outside the region. Without this command you would need to narrow the buffer and then use `eval-buffer'. Would you argue, using your same logic, that we should get rid of `eval-region' because you can always just narrow and use `eval-buffer'?