From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#13422: 24.2.91; Feature request: Add a macro always expanding to nil Date: Sat, 12 Jan 2013 18:58:00 +0100 Message-ID: <87ip72jnbr.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358013483 19527 80.91.229.3 (12 Jan 2013 17:58:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 17:58:03 +0000 (UTC) To: 13422@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 18:58:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Tu5LS-0005ez-16 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2013 18:58:14 +0100 Original-Received: from localhost ([::1]:48148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5LC-0001rh-4a for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2013 12:57:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5L4-0001qu-Kh for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:57:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu5L3-0005gk-6N for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:57:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5L3-0005gg-4B for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:57:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tu5LG-0004WV-DL for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jan 2013 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13422 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135801344417340 (code B ref -1); Sat, 12 Jan 2013 17:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2013 17:57:24 +0000 Original-Received: from localhost ([127.0.0.1]:57187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tu5Kd-0004Vd-RE for submit@debbugs.gnu.org; Sat, 12 Jan 2013 12:57:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42199) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tu5Kb-0004VQ-HJ for submit@debbugs.gnu.org; Sat, 12 Jan 2013 12:57:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu5KF-0005XU-79 for submit@debbugs.gnu.org; Sat, 12 Jan 2013 12:57:02 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:55980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5KF-0005XQ-4e for submit@debbugs.gnu.org; Sat, 12 Jan 2013 12:56:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5KA-0000uW-Pp for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:56:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu5K6-0005VP-JN for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:56:54 -0500 Original-Received: from mout.web.de ([212.227.15.3]:62835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu5K6-0005Uu-AU for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 12:56:50 -0500 Original-Received: from drachen.dragon ([89.204.154.121]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Lhedd-1T7Fyp2CVF-00miR2 for ; Sat, 12 Jan 2013 18:56:48 +0100 X-Provags-ID: V02:K0:7+29YMGm6NCA1LLhwPfJiBG3jhw9tqO6LstorDF/6iJ tcVBUW0mGWHQ3viRg8knWkdZyKUs5UiCroTQdrCAj3/jkJ0vVi L8mD3aEZpK1voJHZ/4V71C0Qp5I910uzND6bbYSAN3GiKrsIm9 KILFxzSNyr8FmZZLkucWllWjcNL2Yl/zac12dgM9TTdKXTllaW G2tMfLaQaZqnK7fjm1XR+KcRFMsMH6LHifDBtSDviA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69673 Archived-At: Hi, I want to request to add something like this to subr.el or similar: (defmacro-safe discard (&rest args) "Do nothing, do not even eval ARGS, and return nil." nil) I.e., a counterpart of `ignore', as a macro. What at first might seem a silly idea is indeed useful: I use it as a possibility to uncomment code. Compared with normal uncommenting (M-;), it has several advantages: 1. You can search for occurrences of `discard' to find such uncommented code. Searching for "^;" would also give you text comments. 2. Paren matching, moving by sexps and such things, still work normally. 3. The code inside the `discard' is still font-locked. 4. It is easy to copy and paste parts of discarded code. Inside real comments, you always copy the commenting characters (;) along with the code and have to remove it manually, which is annoying. Just an idea. But it's IMHO useful for the end user, as a mean of editing the Emacs init file. Of course, it would be easy to define it in the init file itself, but I doubt that many people would have the idea to do so. Thanks, Michael. In GNU Emacs 24.2.91.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-12-30 on drachen Bzr revision: rgm@gnu.org-20121230122326-m6gw29pkwjgwqf9d Windowing system distributor `The X.Org Foundation', version 11.0.10707000 System Description: Debian GNU/Linux testing (wheezy) Configured using: `configure '--prefix=/usr/local/built/'' Important settings: value of $LC_ALL: de_DE.utf8 value of $LC_TIME: C value of $LANG: de_DE.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t