From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.devel Subject: Re: Mark custom function for interactive use only Date: Mon, 25 Nov 2013 11:41:55 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1385376126 20137 80.91.229.3 (25 Nov 2013 10:42:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 10:42:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 25 11:42:12 2013 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 1VktcG-0002Vn-EV for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 11:42:08 +0100 Original-Received: from localhost ([::1]:51553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VktcG-0006Rj-0N for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 05:42:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vktc9-0006JU-1Q for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:42:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vktc4-00040l-7r for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:42:00 -0500 Original-Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:50495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vktc4-00040f-3g for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:41:56 -0500 Original-Received: by mail-qa0-f50.google.com with SMTP id i13so6492452qae.16 for ; Mon, 25 Nov 2013 02:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eQOX/+2tHJrOCwOBMAvY2lHFekDuruMATJs9XElSNpw=; b=Bwt3K8GjcuMNKfPbwVg3GdthI7VA7OJ0Hu4/Tw0JrW5vdMCy+SKSu/YJFwHBi0sA0D kbP6nGCd+FD24M/vHHC5eRtsrj//1xyHEDZGmK+10iUx+S/mbq8IxF76hEwxltWt/bA+ wIBnpYQkg5IULuo+Pp3NCmUsBzRFsyFxEKMDsf/qupEcScdDAbiL4wK0HuB1SNrA9hFz 4hE41/VakIwwi4qG0B4v3heYa0xLALpECyDRQvcwcM3yZWVtlsnYfDpT4AxYtMn6OPbC k0IfmF46hXXieeL7eZIh91Yfb2j/oYqUFPnIuD0i1xSRLZv3/H34/VwU/rsIALLCpeFd mp3Q== X-Received: by 10.224.40.138 with SMTP id k10mr43092847qae.67.1385376115648; Mon, 25 Nov 2013 02:41:55 -0800 (PST) Original-Received: by 10.224.207.73 with HTTP; Mon, 25 Nov 2013 02:41:55 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::232 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:165685 Archived-At: 2013/11/25 Stefan Monnier : >> I presume I'd just patch `byte-compile-form' in bytecomp.el to also >> look at a corresponding property, e.g. `interactive-use-only`. >> Anything else? > > We should also make byte-compile-interactive-only-functions obsolete and > default it to nil (i.e. move its contents to symbol properties). Attached is a patch to Emacs trunk, which introduces a `interactive-only' symbol property as either a string with a "use instead" message or just t, sets this property on all functions from byte-compile-interactive-only-functions, and makes byte-compile-interactive-only-functions as obsolete. Documentation and tests are missing. If you can point me to the proper places and tell me how to run the Emacs tests, I can add these as well.