From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: customize hideshow.el? Date: Sun, 13 Aug 2017 23:58:39 +0700 Message-ID: References: <861sofza80.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1502643587 18590 195.159.176.226 (13 Aug 2017 16:59:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 16:59:47 +0000 (UTC) Cc: emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 13 18:59:40 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgwEg-00045D-AW for ged-emacs-devel@m.gmane.org; Sun, 13 Aug 2017 18:59:34 +0200 Original-Received: from localhost ([::1]:41056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgwEm-0000FP-Ig for ged-emacs-devel@m.gmane.org; Sun, 13 Aug 2017 12:59:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgwE9-0000EF-Bg for emacs-devel@gnu.org; Sun, 13 Aug 2017 12:59:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgwE8-0000tU-JG for emacs-devel@gnu.org; Sun, 13 Aug 2017 12:59:01 -0400 Original-Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:37875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgwE8-0000sw-EM for emacs-devel@gnu.org; Sun, 13 Aug 2017 12:59:00 -0400 Original-Received: by mail-io0-x22c.google.com with SMTP id c74so32841132iod.4 for ; Sun, 13 Aug 2017 09:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2ZYEbN3RBqT00oWAqZnIq/LaeF899QRFA4h75aY09O4=; b=ciNa0KIFiQc0DRKaVrW8ieW45blPpBs7P/2BpdM2mlBIHSHBNPQqe5nU/34uzpaWap UTR+Rod3fkQBPWFyepdUj42uM1bHGYtHZCiSrOrrAsHSTGz4hYQC/Si95cdccU9/RpcQ HCxHd/Tsa06nyUFcuYEJVSp9yKFj4KwfRF/CqFvwigoUO72W0tZQhIu/40fy5LAuyoJr m+Ft8QSD18UswP+1YtPrRJApRNJfao4d57eDREzLmeFGBdj7Nh1fGBUtWZnAQvM/yMo8 WicD6yzN7DQtK5sJwZNPyk80QnVbAd5JPVUiX0SKKcLuYQc3/3N9JP5hl5Cpuo0HQ3Fp Q7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2ZYEbN3RBqT00oWAqZnIq/LaeF899QRFA4h75aY09O4=; b=O4EkwfxbqOTg+xFV7C9uN4dARrNtUgQymKkbkGvuy5wQTD3asm2zktnMOXS1MCTUBA 15ZV5Agxd2KMfH4R1VLKuYg6TybP3BXs45Qqy6PAXBT3xlE4iZ1TeqD2Qicgch6jkgE3 twO5G+n7qDFkI9WZaCrWuYVrhSc7kRcJaSL2d/4fkILW8ulaAjOl95VCy8DQs157Jikm 3YIsXG0lH6XMuLBNAJ2Pm6ZEFVucYEjCyapPF3Xs0Tk1+EwPUAAP+7Wpse14XkXgD/4V xgS8NZNaYrvSj64zEG9oF6zZ7eG+kpFKYmc5uLdtTio77FLBREIhD6tvlih+Xdkbl/3Z CpoA== X-Gm-Message-State: AHYfb5im9R9S/KHLIZyPtLONdC81VO2AIeq23mulzyQ5q2eouwD1nrqo p5/YUMa2FE6aruB6aeAtIGWdAs6t8w== X-Received: by 10.107.142.74 with SMTP id q71mr17254392iod.77.1502643539671; Sun, 13 Aug 2017 09:58:59 -0700 (PDT) Original-Received: by 10.79.144.208 with HTTP; Sun, 13 Aug 2017 09:58:39 -0700 (PDT) In-Reply-To: <861sofza80.fsf@stephe-leake.org> X-Google-Sender-Auth: 0tfaGYFerZBLV9jkYW_oIE59yJk X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217513 Archived-At: On Sun, Aug 13, 2017 at 11:46 PM, Stephen Leake wrote: > If all the code fits in one window, this is not hard. But if the "if > then else" is long, I'd like to hide it, so I can easily delete the > "declare begin" and "exception end". The pain you are experiencing is an indicator of a problem. Specifically, the code you are dealing with is too complex. You can treat the symptom with a painkiller such as hideshow. But the root cause is better treated by extracting a function/procedure/subroutine.