From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: modularity, code for yourself and possibly others Date: Tue, 02 Apr 2019 00:22:25 +0200 Message-ID: <86wokd9xi6.fsf@zoho.eu> References: <86wokiqznt.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23053"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 02 00:48:41 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 1hB5jN-0005sA-28 for ged-emacs-devel@m.gmane.org; Tue, 02 Apr 2019 00:48:41 +0200 Original-Received: from localhost ([127.0.0.1]:38746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB5jL-0003wk-Vf for ged-emacs-devel@m.gmane.org; Mon, 01 Apr 2019 18:48:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB5Kb-00045b-O4 for emacs-devel@gnu.org; Mon, 01 Apr 2019 18:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hB5KZ-00039y-Rx for emacs-devel@gnu.org; Mon, 01 Apr 2019 18:23:05 -0400 Original-Received: from [195.159.176.226] (port=60124 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hB5KZ-0002xu-1v for emacs-devel@gnu.org; Mon, 01 Apr 2019 18:23:03 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hB5KA-000kTc-A0 for emacs-devel@gnu.org; Tue, 02 Apr 2019 00:22:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Followup-To: gmane.emacs.devel,gmane.emacs.help Mail-Copies-To: never Cancel-Lock: sha1:rwXz8m9Q9bxywn2IOtIDDTubYis= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:234850 gmane.emacs.help:119819 Archived-At: Tadeus Prastowo wrote: > Why not firing `whitespace-cleanup' instead? OK, I didn't know about it. Thank you. But it doesn't change the general situation. > 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. All my stuff are already sorted into files according to what they do. E.g., for Emacs-w3m [1], I have bookmarks.el dl.el history.el search.el w3m-keys.el w3m-my.el w3m-tabs.el w3m-unisearch.el so it is all neatly sorted. But hardly none of it is/can be used independently. Moving one function from edit.el to some other file would require the user to `require' that file instead, and that file would `require' yet another file(s), and so on. How would that be any different? In the extreme case, for someone else to use a single of my .el files, s/he would have to use my entire Elisp system! [OFF TOPIC] Hint: RFC 3676, section 4.3 (Usenet Signature Convention) https://www.ietf.org/rfc/rfc3676.txt [1] http://user.it.uu.se/~embe8573/emacs-init/w3m/ -- underground experts united http://user.it.uu.se/~embe8573