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: master d9b5f618baa 2/4: Eglot: introduce eglot-events-buffer-config Date: Wed, 27 Dec 2023 18:46:42 +0200 Message-ID: <83le9f8ufh.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="1315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 27 17:47:52 2023 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 1rIX4S-000064-CR for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Dec 2023 17:47:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIX3k-0005Vy-2p; Wed, 27 Dec 2023 11:47:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIX3c-0005Vd-K3 for emacs-devel@gnu.org; Wed, 27 Dec 2023 11:47:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIX3b-0003ri-JE; Wed, 27 Dec 2023 11:46:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:To:From:Date:in-reply-to: references; bh=FWROgOhiRHFWchM5BhRkC4Xgn1J99DjrrDZgKW3lne4=; b=DFrb1jqmlbqUib U5ZeTpL7HkXdrK2S8fxX+MtiQYuU5d1OQnYO6wCt1xUankQAr5OgU9bQxJW49G58kBk4X2zZsL/71 kozzjp31utLKnldEiRoPgi+AKMxcCoBWseEVwO4h0l7iGuGJGynYIIDH5JGysvDbMsEygBpyLz1li 0LYo6C2ZUPjyX4tlb6dyzIh/BQNOZ5vi+lxdFXYIOIre71lrDTpBPkCnK7pv616lWlKqNP+ded7i/ WoWPczFKmtYL1GKRDKQYJwustVnVh1K0odPx5lKsHA8VqfwhsiUdVYChSy98WLYt9W0oTXaW8Pbup Y1e+9EzKxgHGcPa4pJTQ==; X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314247 Archived-At: > +(defcustom eglot-events-buffer-config > + (list :size (or (bound-and-true-p eglot-events-buffer-size) 2000000) > + :format 'full) > + "Configure the Eglot events buffer. > + > +Value is a plist accepting the keys `:size', which controls the > +size in characters of the buffer (0 disables, nil means > +infinite), and `:format', which controls the shape of each log > +entry (`full' includes the original JSON, `lisp' uses > +pretty-printed Lisp). > + > +For changes on this variable to take effect, you need to restart > +the LSP connection. That can be done by `eglot-reconnect'." Since changing this defcustom needs some code to be run in order to make the changes effective, I wonder whether this defcustom could use :set to run that code automatically? Thanks.