From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" Newsgroups: gmane.emacs.devel Subject: Re: Adding olivetti to GNU ELPA Date: Mon, 20 May 2019 23:14:13 +1000 Message-ID: References: <83tvemzcn2.fsf@gnu.org> <9bb5fc63-61ae-44dc-a8d5-b67803eab1e5@www.fastmail.com> <83h8amz24g.fsf@gnu.org> <24cca761-36ea-4c16-bce1-e3651aad52c8@www.fastmail.com> <83ftq6yx5o.fsf@gnu.org> <83ftppii16.fsf@gnu.org> <875d1b0c-7f44-ba5d-4660-84637533b8f3@gmx.at> <90355909-e254-a616-a3a0-6d09d550a67d@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59861"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.2 Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 20 15:14: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 1hSi7i-000FND-B5 for ged-emacs-devel@m.gmane.org; Mon, 20 May 2019 15:14:39 +0200 Original-Received: from localhost ([127.0.0.1]:35592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSi7h-00056J-8U for ged-emacs-devel@m.gmane.org; Mon, 20 May 2019 09:14:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSi7V-00055D-Qa for emacs-devel@gnu.org; Mon, 20 May 2019 09:14:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSi7U-0003Qp-Sv for emacs-devel@gnu.org; Mon, 20 May 2019 09:14:25 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36297) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hSi7T-0003NE-CR; Mon, 20 May 2019 09:14:23 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 06841391; Mon, 20 May 2019 09:14:21 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 20 May 2019 09:14:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulwrankin.com; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=8pscbL8yxWKUCrZCT3tlYyUc/p 9ZOppx6iKWYSsgS0s=; b=biRQfg3xDRqG7rhYxmxNIvBhBejRNPoDTkwOdOTzo2 EH1IHIiU/XTZ3ZynEZcM8k8V9Ua2DUXQatDUmz6ZePuV0DtEm9RLw8MQTIWR+XWw aANWmIV/Hi88YMmEbJRTUCo6zFxxBeU+WMzrWRtY52oy8Vygu4xPZKg5LNYB9DEJ NJlHhJN42/JS2326T0bx3EUVl8eHVieRFARXvFldvMbuwxmpTKqp4mWdkxI2t5nd KCwVeZIO7SRZ+1pgwMxuK54VoPoKeYtzmOePpKD9yLQDSEWRwfZwImqrOM5inS+q oZQvsUewZEsR2Fht+riux+HTsQOqyuVv7uaKh2MtiQJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8pscbL 8yxWKUCrZCT3tlYyUc/p9ZOppx6iKWYSsgS0s=; b=WnxWClRaGKsaJFGoUN2n6Y Sm5AY7zgUrcSCjabadEIyyHaNxDegQu9oof9v1fh4nffy+Kw18l+hE0/izzG7XT1 KKZQlEQSGSgobfmbYlVWCniGdf7MbWLQDIYNodJYBu9yqDVIqT+jc3GrMkVZok5S DwpUvwEO52M9w7d2hBoJ/lm8L2R6/xhLKuyD2LDvdod3aGNqj0vBxy8QtxAcy2Es gVXUyKeYzv87g9yu4YfExX0kUzjg+U+HBBtldyyH9guYhPs2V5czAKp1mvfuQajR tE7xgRHLIUQt42koaNiJhKz/vSnVFllk74SOJLQ6d1aoD28gqScJR0S6abPEy1qg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtkedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpedfrfgruhhl ucghrdcutfgrnhhkihhnfdcuoehhvghllhhosehprghulhifrhgrnhhkihhnrdgtohhmqe enucffohhmrghinhepphgruhhlfihrrghnkhhinhdrtghomhenucfkphepuddvtddrvddv rdduieegrddufedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhvghllhhosehprghulh ifrhgrnhhkihhnrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from localhost (unknown [120.22.164.130]) by mail.messagingengine.com (Postfix) with ESMTPA id C450780059; Mon, 20 May 2019 09:14:19 -0400 (EDT) In-reply-to: <90355909-e254-a616-a3a0-6d09d550a67d@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.147.123.20 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:236790 Archived-At: On Mon, May 20 2019, martin rudalics wrote: > Always resetting the margins is bad. I'd suggest you devise a > special > 'olivetti-split-window' function and set the 'split-window' > parameter > of every window displaying a buffer in olivetti mode to that > function. > > 'olivetti-split-window' would reset the margins iff the window > shall > be split side-by-side, set the window's 'split-window' parameter > temporarily to nil, call 'split-window' and assign the > 'split-window' > parameter again for all windows in question. Hmm this isn't it, the code already works this way (see L#191). -- https://www.paulwrankin.com