From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: Editing comments Date: Sun, 7 Jun 2015 18:47:05 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <87sia525d8.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433703024 16090 80.91.229.3 (7 Jun 2015 18:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2015 18:50:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 07 20:50:19 2015 Return-path: Envelope-to: geh-help-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 1Z1feD-0001o3-Rh for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 20:50:17 +0200 Original-Received: from localhost ([::1]:54991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1feD-0006vc-8x for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 14:50:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: hxUJfCiLyVO9iJhINUh4eg.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:212528 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104813 Archived-At: >> Andreas Röhler writes: >>> commented code might need some edits too. In that case some basic >>> commands like forward-sexp are not available. >>> >>> Is there a minor-mode, un-commenting temporarily, writing back the result? You can always disable a block of code by an if(false). The emacs major mode will work fine that way and reactivating the code is just changing 0 by 1. Python if(0): ... C with preprocessor directives #if 0 ... #endif TeX \iffalse ... \fi LaTeX with the comment environment in the verbatim package. \begin{comment} ... \end{comment}