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: Fri, 7 Oct 2022 16:56:52 +0200 Message-ID: <25408.15924.69822.546181@tux.local> References: <25405.40924.299467.425535@tux.local> <25407.58176.221509.11918@tux.local> <83pmf3opll.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1834"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 17:48:30 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 1ogpaQ-0000Lq-Bs for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 17:48:30 +0200 Original-Received: from localhost ([::1]:44426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogpaP-0004BI-AS for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 11:48:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogomZ-0002TQ-UW for help-gnu-emacs@gnu.org; Fri, 07 Oct 2022 10:57:00 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:41894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogomX-0001rl-5k; Fri, 07 Oct 2022 10:56:59 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id z97so7393408ede.8; Fri, 07 Oct 2022 07:56:56 -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=HU/0uHXHbfS2q/rqYr4DqUNUyUadcQySFNeAkP3ZTYU=; b=p76VUUvEN9U/5oFNxsxSEmgMnOfAGKzaTdEZcf1hzbBxFP5sLGclHpbQRz/vDaLREZ FTuST8mupeuEbtP7BkQPwrp57wDGjvCoiyfpffy1KVY+oTo5IIUv7oAOO8O+niUKEtNR kLG4adapwLboignXoys+Bo+kIdCph83XDhZNpTVKJXMeSBsChQaJ73Li1AKA7QYDsYZl BriebNHt1+Wj+ZcUtIwaty6b1EmoK+N8f19Hjw3elvwH9EtiyUdoHKlojn7BNHkMrySp 4ZH6GSHwFrxkpKYLqK9B6OFU5d/zfOMgPkV8flAbvQdjU30tnSAxIj+mRzgRu9gqzyDn zUkw== 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=HU/0uHXHbfS2q/rqYr4DqUNUyUadcQySFNeAkP3ZTYU=; b=F1uTgCCXzezhvCuW3GGMsamX594vPnKv7V5DiTQjbzEMPXUkajWhfYOVd1A4w2Sa2K 5Oqwc2+MH40eoBw5IZ++RBh81fbYu0WqvXGDr9wFUI6wXlsLFt9UdCLo1+soIDkNbsSH 8jXCZUFqixxf2qGR6GjT78psiOErVoTRzCnxdO13b9YLQvq2/9WDKlgi+udd3ccfUKN/ vXpQl5lCARsBNL6ub/LksCU/AMrOXXcT9IM8Jrddu8DtGI9MC2doozjtMAw83cOzYrWy xY9DffZ5IGgwLN66fj2l9ZVvI5If75KTLEsl7C+6eFEvCko/Hn4ssVI/kXO1HhLNAT8H Hflg== X-Gm-Message-State: ACrzQf0fCxD7WaewXBIytBmE2XdjcJQ7SvS4S7IscnPWZFOknFpzg2QM gs7PMxMCNXvv9OeUUh1JEHDvdAnYXqetnw== X-Google-Smtp-Source: AMsMyM6KJNYHA0duDqtnnxREoT9hRwXu5LEQdQnpcqdgZbL1VbgkZPAZl6YGJ2PE88nM/u0lDFYhFw== X-Received: by 2002:a05:6402:35c7:b0:459:80e6:2f72 with SMTP id z7-20020a05640235c700b0045980e62f72mr4925685edc.415.1665154614921; Fri, 07 Oct 2022 07:56:54 -0700 (PDT) Original-Received: from gmail.com (p200300df07034b72fa64589fbb3a8e18.dip0.t-ipconnect.de. [2003:df:703:4b72:fa64:589f:bb3a:8e18]) by smtp.gmail.com with ESMTPSA id y6-20020a170906070600b00764a76d5888sm1351296ejb.27.2022.10.07.07.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 07:56:54 -0700 (PDT) X-Google-Original-From: Dr Rainer Woitok In-Reply-To: Msg <83pmf3opll.fsf@gnu.org> of 2022-10-07 14:11:34 +0300 from eliz@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::535; envelope-from=rainer.woitok@gmail.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -47 X-Spam_score: -4.8 X-Spam_bar: ---- X-Spam_report: (-4.8 / 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=-2.699, 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:139746 Archived-At: Eli, On Friday, 2022-10-07 14:11:34 +0300, you wrote: > ... > > Well, I'm rarely using windows, normally I would open the same file in a > > different frame, so the question arises: is there such a concept as a > > FRAME-local variable? > > Yes: frame parameters can be used to that effect. Ok, so I changed my hook function to (lambda () (while-no-input (set-frame-parameter nil ; Current frame. 'cursor-type ; Variable name. (if (eolp) EoL-Cursor ; EoL value. Cursor ; Nrm value. ) ) ) ) That works in different frames, but of course not in different windows within the same frame. However replacing function `set-frame-parameter´ with `set-window-parameter´ prevented the hook function from working at all, so `cursor-type´ doesn't seem to be a legal window parameter :-( Can't I use window parameters to store cursor specific information? Sincerely, Rainer