From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomer Newsgroups: gmane.emacs.help Subject: Re: folding-mode question Date: Wed, 22 Sep 2010 02:47:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291871957 18800 80.91.229.12 (9 Dec 2010 05:19:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:19:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 06:19:13 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 1PQYuO-0003dM-5J for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:19:12 +0100 Original-Received: from localhost ([127.0.0.1]:43993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYuN-000402-Bw for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:19:11 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!w4g2000vbh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 212.179.23.140 Original-X-Trace: posting.google.com 1285148849 3648 127.0.0.1 (22 Sep 2010 09:47:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 22 Sep 2010 09:47:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w4g2000vbh.googlegroups.com; posting-host=212.179.23.140; posting-account=NuEtcAoAAADUxiHpeF0Pumy7gc4ekCfm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181417 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:76727 Archived-At: On Sep 22, 10:44=A0am, Marc Mientki wrote: > Am 22.09.2010 08:58, schrieb tomer: > > > Is it possbile to fold partial line ,line for example: > > > the folding mark is //<<< > > > not folded: > > if (a=3D=3Db) { //<<< > > a=3D1 > > b=3D2 > > }//>>> > > > is it possbile to fold it like this: > > if (a=3D=3Db) {... > > Yes (even without special marks like //<<<), try hideshow.el. > > ;; * Commands provided > ;; > ;; This file provides Hideshow Minor Mode. =A0When active, nine commands > ;; are available, implementing block hiding and showing. =A0They (and the= ir > ;; keybindings) are: > ;; > ;; =A0 hs-hide-block =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0C-c @ C-h > ;; =A0 hs-show-block =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0C-c @ C-s > ;; =A0 hs-hide-all =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0C-c @ C= -M-h > ;; =A0 hs-show-all =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0C-c @ C= -M-s > ;; =A0 hs-hide-level =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0C-c @ C-l > ;; =A0 hs-toggle-hiding =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 C-c @ C-c > ;; =A0 hs-mouse-toggle-hiding =A0 =A0 =A0 =A0 =A0 =A0 [(shift mouse-2)] > ;; =A0 hs-hide-initial-comment-block > ;; > ;; Blocks are defined per mode. =A0In c-mode, c++-mode and java-mode, the= y > ;; are simply text between curly braces, while in Lisp-ish modes parens > ;; are used. =A0Multi-line comment blocks can also be hidden. =A0Read-onl= y > ;; buffers are not a problem, since hideshow doesn't modify the text. > ;; > ;; The command `M-x hs-minor-mode' toggles the minor mode or sets it > ;; (similar to other minor modes). > > HTH > regards > Marc Thanks for the answer I work with a language called "e" (hardware verification langauge) it looks like C but not exactly. am I still able to use hideshow ?