From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: DWIM region (was: Re: count regexp hits) Date: Thu, 04 Jan 2018 23:14:12 +0000 Message-ID: References: <86shbmcldx.fsf@zoho.com> <86d12pcvgj.fsf@zoho.com> <86d12pb988.fsf_-_@zoho.com> <868tddb50j.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1515107590 12901 195.159.176.226 (4 Jan 2018 23:13:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2018 23:13:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 05 00:13:06 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1eXEgy-0002WM-Rn for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jan 2018 00:12:56 +0100 Original-Received: from localhost ([::1]:51460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXEiy-0000YW-6r for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jan 2018 18:15:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXEiO-0000Xx-Ps for help-gnu-emacs@gnu.org; Thu, 04 Jan 2018 18:14:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXEiN-0007Eo-LO for help-gnu-emacs@gnu.org; Thu, 04 Jan 2018 18:14:24 -0500 Original-Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:45601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXEiN-0007EM-EE for help-gnu-emacs@gnu.org; Thu, 04 Jan 2018 18:14:23 -0500 Original-Received: by mail-yw0-x234.google.com with SMTP id y187so1172693ywd.12 for ; Thu, 04 Jan 2018 15:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SbZy0zUEusBi3vWKrI4Db4dc9lYi4GA1msbn3JjzB/4=; b=SnmUjTtPPqydyLlWMfJrcjPiNY9yWiIK6htIpWp6HX3pH0/2B1rt9Iw7X0rieAJo+L Bny6pdOQmQ+skRDzM7wQplwrSqSm+R+cx8zKMd/osXpKf45K6JaaU5P2cgVZDmGCxFvC 9ngsRERRSsXlxs/1v8KVrUSNkvEqVbOarOFSmV9LSMTUf6khVUBMKoSQvnSNcuEnG9eO 0TcwVYmPjELvemAqRN+LJT+97UVaRC/64qG4EwremJE3qFoLRNeB1zMLs7RXxFipDaDM n02nnn4l1RrLFoq6kfoH6wgLFwgw3cL8Co/EmfdCcBjNJkCXh/0kafst+ejucABa+2Mj 4gPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SbZy0zUEusBi3vWKrI4Db4dc9lYi4GA1msbn3JjzB/4=; b=qO6EjIwAoer9UeBaFcu/yTXuqpqXaF1wqK1EnYWjQp8Yk9cqR7uz8NE6FxTYDRcwlB k89+ncPouiV3e+dEzHUEwy9DdqFRNUxi54Ye2IxoIDV/bl3Wv6utMJxeIowy4zZxVLko KAV4DGGnGXSjUjmAHlxwJ/kaGHwqM92YSpUsm/0PtJVnoAAJsBgOvdRB6Ww61kpECprs xrwyS3Umf3M9KS9XMUvy0y8H9FMo2FB1B1CL9+cFBUT5hlr8T00jzCVwv8gSrgvVznK3 AXQDqhUqtRMzI/KeRKgSCeBgNov7G++JVwbcVH9skUJK2imguJyMTOcRNfh85Z82/Zo6 lqEQ== X-Gm-Message-State: AKGB3mIjCvXZBf48vPi+ZGfVoMao1zsNY91UxfCWA8PdNChEE3/UHaeG viwzkaPaaNELnlFktNonHDPPYmZQrPZbEhh6IyI= X-Google-Smtp-Source: ACJfBov1cckI9eublMSFbV7hszUSKCoQr4c8sbn16Jxd5XQo5UWS64KijrrSSxPBhYEdoEzWE44xql1+SvFRlmni+r0= X-Received: by 10.13.236.135 with SMTP id v129mr1086406ywe.289.1515107662600; Thu, 04 Jan 2018 15:14:22 -0800 (PST) In-Reply-To: <868tddb50j.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::234 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:115584 Archived-At: On Thu, Jan 4, 2018 at 6:05 PM Emanuel Berg wrote: > Sweet heaven! Advices make you crazy sooner > rather than later... And especially for this > simple task I dare not imagine how the rest of > your system ever sticks together. But TEHO, of > course... > Advices are especially useful for DRY use cases like this one. I prefer setting a solution just once and reuse it rather than rewriting whole functions. Many years ago, I too was scared of advices, but not any more once I started understanding them.. but as you said, TEHO.. I was just trying to help. -- Kaushal Modi