From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Arbitrary folding in emacs Date: Fri, 28 Mar 2014 14:55:44 +0530 Message-ID: References: <834n2iy9dz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1395998802 10380 80.91.229.3 (28 Mar 2014 09:26:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 09:26:42 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 10:26:52 2014 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 1WTT3q-0001Tr-IE for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 10:26:50 +0100 Original-Received: from localhost ([::1]:57974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTT3q-0006pg-6i for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 05:26:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTT39-0006IR-Ks for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 05:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTT38-0001lC-S7 for help-gnu-emacs@gnu.org; Fri, 28 Mar 2014 05:26:07 -0400 Original-Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:34389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTT37-0001ky-F0; Fri, 28 Mar 2014 05:26:05 -0400 Original-Received: by mail-qc0-f179.google.com with SMTP id m20so5584367qcx.38 for ; Fri, 28 Mar 2014 02:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=IjiN/6fAl6NjM/dw3Nbnb/kHB1gyXCNQgts6wwWRK5k=; b=KR8yn9W7GNUSU6ec5tOGfRjyFK8FlaIFVFKeGI/kyHceKyh1fJu81Mby6LM6QSQ8i/ +oHE8GVgjI3C060bcrDJmGcxUM5/WmbWjJlfaiSNrTLXDBZxbOAsVIphNFqiqy0+YGo3 V01i5W+R7HPDyko1Wqyn+ef7fkB2VEZAkKu/7U0AVUsTVn81uA6tcgbXsgAXvYmyFVKV YL4nByv/4Q9eUxy/DHrqaK3gOHnxO5QhtXSgTVR0zdwC+IGiJPIOrzGqJueRkM5xQ6Rj wcl+GTc4PsB7XWz/8OktpoKaIiPfr+gclavBRU0Gz9MU3Mrmc8l41BoIX8sg/iNDNzFc hKWQ== X-Received: by 10.229.198.2 with SMTP id em2mr677331qcb.21.1395998765056; Fri, 28 Mar 2014 02:26:05 -0700 (PDT) Original-Received: by 10.229.159.211 with HTTP; Fri, 28 Mar 2014 02:25:44 -0700 (PDT) In-Reply-To: <834n2iy9dz.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:96795 Archived-At: Thanks Eli ... however, this does not quite work for me. Among other things - I need to collapse a huge bunch of initializations starting at column 1. What would be great is if I could just select a bunch of lines and apply folding on it! Regards, Kashyap On Fri, Mar 28, 2014 at 2:42 PM, Eli Zaretskii wrote: > > From: C K Kashyap > > Date: Fri, 28 Mar 2014 14:36:47 +0530 > > > > I am trying to go-over a huge c++ file. In vim, I can collapse a huge set > > of lines by simply highlighting it an then doing a zf. I was wondering > if I > > can do something similar in emacs - rather how I can do it in emacs. > > Try "C-x $", giving it an argument that says how deep should a line be > indented before it is replaced by an ellipsis. > >