From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tadeus Prastowo Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: modularity, code for yourself and possibly others Date: Fri, 29 Mar 2019 11:43:17 +0100 Message-ID: References: <86wokiqznt.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156554"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org, emacs-devel To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 29 11:44:32 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9ozu-000eai-Tp for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2019 11:44:31 +0100 Original-Received: from localhost ([127.0.0.1]:50298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9ozt-0007UW-RY for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2019 06:44:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9ozA-0007UH-9z for emacs-devel@gnu.org; Fri, 29 Mar 2019 06:43:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9oz3-0001v0-K9 for emacs-devel@gnu.org; Fri, 29 Mar 2019 06:43:41 -0400 Original-Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:42042) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9oyy-0001rY-Tb for emacs-devel@gnu.org; Fri, 29 Mar 2019 06:43:34 -0400 Original-Received: by mail-io1-xd2e.google.com with SMTP id c4so1316481ioh.9 for ; Fri, 29 Mar 2019 03:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unitn.it; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tt8sciry7JnR8/7ws/fEi1FuIWO6BKBPlnuX2DLAGxI=; b=gWwZO6Gq+nqmRIj3jl7xym1ee2fqOeNs/u+3Q3xsE3XlTAaDKXM+dslZ28HMN3Dtr0 Ob9Yx5xIr4fC9PntYQJiVBNZ0DV7Qk+7k8FKYjgtwewoHYZPdi41BRCL5YiB+527ykK4 noVfQI9YTFVm0x/wHUrIiVEzO+b0Wa0ggQR8g= 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=Tt8sciry7JnR8/7ws/fEi1FuIWO6BKBPlnuX2DLAGxI=; b=MHszhn7afZqF+TejI0LsjwCG0zInxCAx0vT8wcJ/qpvCOEksHXd694EXsIN315DMF2 j/N924qt8WP/RPO9sRaTyS+9EO+gFuNELPTpYK0tdMfegOeXRV1pOHAiDVaZ4d81uAfv b0haFVqOR3DO1GdkppOL1UASH0V08vMEQqJkVbv6dX+sTUp+Yn+XfDx8NES6EVjwFmMv lSqp8wS/szgGL0BxXu2M+iIg2hYoDWhL8kUko2DVJyOYsvvQld5VjnElaYGbgGGr4yO5 ROIcCAIT9JPDq3Go7f2c3t9OLljGE02IKjS5PwFImtzgw/NMHongjeRBPAGRjWM0dvT/ J2Jg== X-Gm-Message-State: APjAAAXraWiLzWgqbrsExiu+or0A1wz8W1HGpQgkGt61Ka2fGYEB/0ti pca8darqk1Uaq4iHLCxJnt+UNGNpceAKCUAgBASh X-Google-Smtp-Source: APXvYqygeN3dHadJ/qc90vDzZn33YAhV1NQaNIWiHvDXSD0Hao2/mEc4ArzL2co9O74mNJIGy5aKMZErdefLosae06Q= X-Received: by 2002:a5e:aa07:: with SMTP id s7mr31641879ioe.139.1553856208254; Fri, 29 Mar 2019 03:43:28 -0700 (PDT) In-Reply-To: <86wokiqznt.fsf@zoho.eu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2e 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:234810 gmane.emacs.help:119780 Archived-At: On Fri, Mar 29, 2019 at 1:47 AM Emanuel Berg wrote: > How do I remove all blank lines from a buffer? > I.e. `delete-blank-lines' en masse? Why not firing `whitespace-cleanup' instead? [...] > But because that is a function of generic value > and use, I have it in another file [2]. So now > todo-did.el has to `require' that file. Oh, no! > > In todo-did.el, I put it like this: > > > (require 'edit) ; http://user.it.uu.se/~embe8573/emacs-init/edit.el > [...] > (delete-all-blank-lines) ; http://user.it.uu.se/~embe8573/emacs-init/edit.el > > > However that really won't help as in edit.el, > I have > > > (require 'tabs) > (require 'sudo-user-path) > (require 'window-new) Why don't you put that function in another file other than edit.el? You are basically dealing with a common problem in software engineering that can be solved by refactoring. > -- > underground experts united > http://user.it.uu.se/~embe8573 -- Best regards, Tadeus