From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: Narrow/widen in folding.el Date: Tue, 21 Dec 2010 23:00:02 +0100 Message-ID: References: <87mxnz9dd1.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292968846 16637 80.91.229.12 (21 Dec 2010 22:00:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 22:00:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 23:00:41 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVAG7-0000ns-L0 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 23:00:39 +0100 Original-Received: from localhost ([127.0.0.1]:37910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVAG7-0001Yy-A1 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 17:00:39 -0500 Original-Received: from [140.186.70.92] (port=52151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVAFm-0001Yo-VB for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 17:00:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVAFl-0006TV-JE for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 17:00:18 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:44782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVAFl-0006TI-C1 for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 17:00:17 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PVAFj-0000bJ-HM for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 23:00:15 +0100 Original-Received: from ip1-201.halifax.rwth-aachen.de ([137.226.108.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 23:00:15 +0100 Original-Received: from andrea.crotti.0 by ip1-201.halifax.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 23:00:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip1-201.halifax.rwth-aachen.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:ZIFR66gXqmfwGNjcdL1u1cjTty8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77756 Archived-At: Tassilo Horn writes: > > But org-mode doesn't work for source code files, e.g. it's not the right > thing for using folding in C++ files. Aha ok I didn't understand it was for source code. Anyway for C++ with cedet and the function senator-fold-tag it works perfectly for me, not sure if it's what you want... I have this (local-set-key [f6] 'senator-fold-tag-toggle) for the buffers supported by semantic. Now I remember I also tried to do something like this some time ago, but I couldn't stand the fact that I had to use a special syntax for it. So I gave up and now I found senator-fold-tag which works perfectly fine. I think also it would be nice to implement some "fold-everything", "unfold-everything" using this feature.