From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.tangents Subject: Re: Question: what is Emacs mode? Date: Sat, 24 Apr 2021 07:22:49 +0300 Message-ID: References: <5D47B4B9-87F5-40EA-A689-2618E3B8C6CE@mit.edu> <79668953-FBBB-4843-A5FD-C39E08B50CCC@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: "emacs-tangents@gnu.org" To: Qiantan Hong Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Sat Apr 24 06:26:33 2021 Return-path: Envelope-to: get-emacs-tangents@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1la9sH-0003HO-HO for get-emacs-tangents@m.gmane-mx.org; Sat, 24 Apr 2021 06:26:33 +0200 Original-Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1la9sG-0002R2-79 for get-emacs-tangents@m.gmane-mx.org; Sat, 24 Apr 2021 00:26:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la9s5-0002Qk-KU for emacs-tangents@gnu.org; Sat, 24 Apr 2021 00:26:21 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:44819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la9s3-0007eC-Ew for emacs-tangents@gnu.org; Sat, 24 Apr 2021 00:26:21 -0400 Original-Received: from localhost ([::ffff:41.202.241.57]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000002BEA5.0000000060839DE8.000057D2; Fri, 23 Apr 2021 21:26:15 -0700 Content-Disposition: inline In-Reply-To: <79668953-FBBB-4843-A5FD-C39E08B50CCC@mit.edu> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-tangents" Xref: news.gmane.io gmane.emacs.tangents:628 Archived-At: * Qiantan Hong [2021-04-24 01:05]: > 1. Do we want node-local modes? > That looks very natural to have. We may edit our code using sexp-mode, > but inside docstring, we could use doc-mode locally. > This also covers lots of thing in Emacs that were done using text-properties. > E.g. bold-mode and background-color-mode (not sure if they’re > good idea though). TECHNOLOGY TEMPLATE PROJECT OHS Framework https://www.dougengelbart.org/content/view/110/460/ I suggest that you also look at Doug Engelbart's work. Your plan seem that text will become s-exp, chunked, and this may allow very fine elementary objects to be incorporated, further you can read in that reference what else could be done. That type of s-exp text could become so much more than Hyperlinked text. > 3. Suppose we now have node-local variables and node-local modes, what’s the relation > between those of parent nodes and child nodes? > It seems natural to let child node inherit modes and variables from parent nodes. > E.g., I might just turn on outline-mode on the ‘((Section title-A …)) node in > (defun very-complex-function-that-require-a-paper () > ‘((Section title-A > (Paragraph lorem ipsum) > (Section subtitle-B > (Paragraph lorem ipsum)))) > *code*) > And it affects the whole sub-tree. > However, are there cases that one don’t want a whole subtree to inherit a mode/variable? > Can we safely assume they all get inherited? I will say something what may not look possible, I rather think it is possible. It would be good if each of those nodes would have its unique ID, as then it becomes possible to have someting similar as OPML able to reference those parts of text even if the node change its position. Maybe is not feasible. When thinking about modes, they are turned on automatically in Emacs based on some factors of recognition like extension or magic headers or else. Your each different node could have a different mode, why not, that is liberty then. Question is the speed. Will that system have extension language and which one? Will it be Emacs Lisp or different? -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/