From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Line wrap reconsidered Date: Sat, 15 Aug 2020 21:47:02 +0300 Message-ID: <83v9hjiw61.fsf@gnu.org> References: <83tux4jmup.fsf@gnu.org> <83lfigj6tt.fsf@gnu.org> <2E390DEE-47E6-418A-8FD2-27C6D69262DC@gmail.com> <83364nkdiy.fsf@gnu.org> <84D68543-FE50-497E-BF03-17668C2F8972@gmail.com> 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="19073"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 15 20:48:21 2020 Return-path: Envelope-to: ged-emacs-devel@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 1k71E5-0004t4-GV for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Aug 2020 20:48:21 +0200 Original-Received: from localhost ([::1]:42380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k71E4-00045A-Jk for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Aug 2020 14:48:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k71D6-0003dr-GL for emacs-devel@gnu.org; Sat, 15 Aug 2020 14:47:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53233) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k71D6-0003Qy-6i; Sat, 15 Aug 2020 14:47:20 -0400 Original-Received: from [176.228.60.248] (port=4644 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k71D5-000658-3N; Sat, 15 Aug 2020 14:47:20 -0400 In-Reply-To: <84D68543-FE50-497E-BF03-17668C2F8972@gmail.com> (message from Yuan Fu on Sat, 15 Aug 2020 14:00:16 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253813 Archived-At: > From: Yuan Fu > Date: Sat, 15 Aug 2020 14:00:16 -0400 > Cc: larsi@gnus.org, > emacs-devel@gnu.org > > On Aug 15, 2020, at 1:46 PM, Eli Zaretskii wrote: > > (which should offer that as an optional feature). > > I don’t know what does that look like, is there a custom option that I can look at as an example? What I had in mind is to have a special value of word-wrap-by-category that would load kinsoku by calling a setup function. You can use the :set keyword of the defcustom to arrange for the setup function. And example of using :set in cus-start.el is cursor-in-non-selected-windows (and many other options).