From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Qiang Yu Newsgroups: gmane.emacs.help Subject: Is any extension in Emacs can shrink and expand a block of code Date: Fri, 10 Aug 2012 22:55:26 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec54ee62cccd61804c6ea8892 X-Trace: dough.gmane.org 1344613544 25565 80.91.229.3 (10 Aug 2012 15:45:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 15:45:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 17:45:45 2012 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 1SzrPE-0004Wo-BH for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 17:45:44 +0200 Original-Received: from localhost ([::1]:40010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrPD-0001rR-GN for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 11:45:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szqcc-0005b2-Lw for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 10:55:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szqca-0007b2-OE for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 10:55:30 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:58129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szqca-0007ao-GK for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 10:55:28 -0400 Original-Received: by lahd3 with SMTP id d3so928466lah.0 for ; Fri, 10 Aug 2012 07:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8ZoMcb1nv1VPSLcZDSlTv+BiCEEZlZ2lkd63C0FA/Ac=; b=okPRrrIYFqdvqVfTtm0eF1b1Ui0BTP553SAoOjF6Jf1+CQXikrZV1r9JJeRHw5IQYv GjM3jfM6J/PsfTUc9xO98kCcXrYzpF/dJnvghfsTp4E9+1KafzxfcQUG0e5wfRem49JJ YH2n9fypjd5PchEA2ePPPMA8U3PTVKMw6tdRTAtcsH2zeD8DjkZj6g9Eghvc75w8PF+x TyOzeu+p04SpPaUTbSZcqTIyFgNmTitnRCwfL1HZM2lJ0s5a+qYue7Fp4cQFfqp92BFt C8NYJLLC5z2ihDimWVkGLekkiECjD438oU/OqitUg2rhmBbvZFAPuRPL9htMltdymYiV eorw== Original-Received: by 10.152.109.166 with SMTP id ht6mr3166185lab.46.1344610526614; Fri, 10 Aug 2012 07:55:26 -0700 (PDT) Original-Received: by 10.112.98.169 with HTTP; Fri, 10 Aug 2012 07:55:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 X-Mailman-Approved-At: Fri, 10 Aug 2012 11:45:38 -0400 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:86293 Archived-At: --bcaec54ee62cccd61804c6ea8892 Content-Type: text/plain; charset=ISO-8859-1 Hi all, Is there any extension in Emacs can shrink and expand a block of code? For example: int foo() { return 0; } the content in "{}" can be shrunk to like: int foo() {...} and I can expand it back. Regards, yuq --bcaec54ee62cccd61804c6ea8892 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

Is there any extension in Emacs can shrink and expand a bloc= k of code?

For example:

int foo()
{
=A0=A0=A0 return 0;=
}

the content in "{}" can be shrunk to like:

in= t foo()
{...}

and I can expand it back.

Regards,
yuq
--bcaec54ee62cccd61804c6ea8892--