From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dr Rainer Woitok Newsgroups: gmane.emacs.help Subject: Re: Box cursor at EoL Date: Sun, 9 Oct 2022 17:31:55 +0200 Message-ID: <25410.59755.350465.901619@tux.local> References: <25405.40924.299467.425535@tux.local> <25407.58176.221509.11918@tux.local> <83pmf3opll.fsf@gnu.org> <25408.15924.69822.546181@tux.local> <83k05bmypp.fsf@gnu.org> <25409.15569.845188.675783@tux.local> <83edvillw7.fsf@gnu.org> <25409.17643.579815.406872@tux.local> 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="28745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 09 17:32:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ohYI3-0007Jw-8h for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Oct 2022 17:32:31 +0200 Original-Received: from localhost ([::1]:47054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohYI1-0001fy-Q8 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Oct 2022 11:32:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohYHZ-0001dx-AY for help-gnu-emacs@gnu.org; Sun, 09 Oct 2022 11:32:01 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:40770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohYHX-0002Df-DS for help-gnu-emacs@gnu.org; Sun, 09 Oct 2022 11:32:00 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id x59so12919993ede.7 for ; Sun, 09 Oct 2022 08:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=zb9eqZihf5ZEA/FkStis1DgLMCkvuMLnerK3h/SgNG8=; b=QL2fYZMy4Tuli4wkkfNP3aOPKxyOp+FCgZLb6KF7+4Z6k50deYYMZuNS9GuO5oCZrx coIAD0Td+D2wClgSmbTQ6qhwT7lsRhjMuHq7sCcikeRb2v8Neaj0FCenBjRC2JJMuK6f o2iu/XcgavUYGyNXvcHeXkhqm8TkKbMPsc4pu7wOzBdVqnuOZsFIYUSxaxVwZALEGQE4 uuRrUW/bPgJCiA4JDQvnCuxPGjOkh452IvKMPka6L8baNMl6ARSa6IWhHzA5O2ZCLcrm 7PeTD24elWyNWqRCgOcpRGc1lHxgyj4pc76KniALoJTeOxO/mjXPgkPYak46Kpna7smT 8BWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=zb9eqZihf5ZEA/FkStis1DgLMCkvuMLnerK3h/SgNG8=; b=fMh5uPq3Y+s0YpnjqHRwW0t0yR9f+nIn6/VwI6DQombi09okNtlqhv3wxIHYljvY76 kHZ12jDkWaaU6PLer30wC6tfhQZExOZJxZDJV770SgW36xq/qVw5Ad2bifp3A2RPJJjP ZmP4DmaC9wloqrNBg2+yM32Dg4i41Wg3QznJ6jQtlNC+Na47oLGv7n7iD13Zh2w2gJ2X o4HMeDoTmY+2bXyW3Rbbik2bs45HNaop9aA0tCFEP2yZklFHEPuzdpQ29AqU8VU3xXuL TfXt2q5H/Uj+EDY8PQzRRJKXVMe+arxgfFbFB9W5CEq3IZ1fdtVZCOSJbsK4hDgHTObZ IlBA== X-Gm-Message-State: ACrzQf3+AFVT3m5cjFqw0UxYY8UFwK4RZdBpgu0q4kkhzLBpEXJ9M/gy iQaAv66NdmU/Fq3bF6SuhAY= X-Google-Smtp-Source: AMsMyM4OrLSV/7N1j3yTRGkCZ3E2p64U5rQYyo2DMcLjJmmWlINJWDs32pRvz3CKseuuaSf7/eF3KQ== X-Received: by 2002:a05:6402:28ca:b0:43b:5235:f325 with SMTP id ef10-20020a05640228ca00b0043b5235f325mr13626887edb.320.1665329517350; Sun, 09 Oct 2022 08:31:57 -0700 (PDT) Original-Received: from gmail.com (p200300df07034b7f0aafa1730fac43e4.dip0.t-ipconnect.de. [2003:df:703:4b7f:aaf:a173:fac:43e4]) by smtp.gmail.com with ESMTPSA id rn14-20020a170906d92e00b0078d9c2c8250sm1946127ejb.84.2022.10.09.08.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Oct 2022 08:31:56 -0700 (PDT) X-Google-Original-From: Dr Rainer Woitok In-Reply-To: Msg of 2022-10-08 09:18:03 -0400 from help-gnu-emacs@gnu.org X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" XEmacs Lucid (x86_64-pc-linux) Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=rainer.woitok@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -59 X-Spam_score: -6.0 X-Spam_bar: ------ X-Spam_report: (-6.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-3.934, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139775 Archived-At: Stefan, On Saturday, 2022-10-08 09:18:03 -0400, you wrote: > ... > > Does that mean that even though there is a way to maintain a frame spe- > > cific cursor appearance there is no way to maintain a window specific > > one? :-( > > Exactly: both the `cursor-type` variable and the `cursor-type` > frame-parameters are used by the redisplay code to decide how to draw > the cursor. But the redisplay code does not look at any > window-parameter for that, so you can't change the cursor-shape on > a "per window" basis :-( > > Maybe it's time for `M-x report-emacs-bug` and request a new feature. Well, before I request a feature more or less only benefitting me but turning out to require a total redesign of Emacs I'd like to first con- tinue this discussion here :-) 1. Am I correct in assuming that when I request to display a buffer in a new frame this will also create a new window in that new frame? If this were true, I could forget frames and just search for a way to make use of the `cursor-type´ windows parameter, because this would also solve the "same buffer in another frame" case. 2. Running `C-h v cursor-type´ returns cursor-type is a variable defined in `C source code´. Its value is t Cursor to use when this buffer is in the selected window. Values are interpreted as follows: t use the cursor specified for the frame nil don't display a cursor box display a filled box cursor (box . SIZE) display a filled box cursor, but make it hollow if cursor is under masked image larger than SIZE pixels in either dimension. hollow display a hollow box cursor bar display a vertical bar cursor with default width (bar . WIDTH) display a vertical bar cursor with width WIDTH hbar display a horizontal bar cursor with default height (hbar . HEIGHT) display a horizontal bar cursor with height HEIGHT ANYTHING ELSE display a hollow box cursor WIDTH and HEIGHT can't exceed the frame’s canonical character size. When the buffer is displayed in a non-selected window, the cursor's appearance is instead controlled by the variable `cursor-in-non-selected-windows´. Automatically becomes buffer-local when set. You can customize this variable. Probably introduced at or before Emacs version 21.1. That clearly states that this buffer local variable either allows to use no cursor, a locally defined cursor specification or the cursor specification for the frame, but nothing else. So I'd suggest extending the above list of special values for buffer lo- cal variable `cursor-type´ with frame use the cursor specified for the frame (same as t but with improved documentation value for hu- man readers) window use the cursor specified for the window and to add these two additional alternatives for the value of buffer lo- cal variable `cursor-type´ to every relevant evaluation of it. But since buffer local variable `cursor-type´ is defined in `C source code´, there is no easy way for me to receive an impression of how much effort this change would require. Comments anybody? Sincerely, Rainer