From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YWrxEF60fl8gYAAAWB0awg (envelope-from ) for ; Thu, 08 Oct 2020 02:40:30 -0400 Received: by simark.ca (Postfix, from userid 112) id 37BC11EF6F; Thu, 8 Oct 2020 02:40:30 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7D3401E58C for ; Thu, 8 Oct 2020 02:40:29 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E5E3386F47A; Thu, 8 Oct 2020 06:40:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E5E3386F47A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1602139229; bh=Vpz19WLdjPj97ndT+4p8ZRfElJB27d3WNGkbETNqzUo=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=cS7ZRC5dkWFLQczJXdo0LVLGKeSOsndkwp64lRLCoNfPEMbMGVVrokpJxyupeW0r/ TYlDqKlXmw8cELPMANnJeqoVwPMqMuueNy08A333l3c71K//vyXanUyhstJbj1+CHI Zy7Eg/uyZ2LJxc/lGCQ7xKG1NV77+4Mq0O8AaUzU= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id F3A6E386F47A for ; Thu, 8 Oct 2020 06:40:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F3A6E386F47A Received: from fencepost.gnu.org ([2001:470:142:3::e]:59372) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQPbG-0008SA-Hu; Thu, 08 Oct 2020 02:40:26 -0400 Received: from [176.228.60.248] (port=2529 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kQPbG-0005Gf-6X; Thu, 08 Oct 2020 02:40:26 -0400 Date: Thu, 08 Oct 2020 09:40:35 +0300 Message-Id: <83h7r58bks.fsf@gnu.org> To: Andrew Burgess In-Reply-To: (message from Andrew Burgess on Wed, 7 Oct 2020 21:05:10 +0100) Subject: Re: [PATCH 6/7] Let the user control the startup style References: X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: tom@tromey.com, gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" > From: Andrew Burgess > Date: Wed, 7 Oct 2020 21:05:10 +0100 > Cc: Tom Tromey > > diff --git a/gdb/NEWS b/gdb/NEWS > index bd3aca84d51..d72d51b18b6 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -132,6 +132,13 @@ show exec-file-mismatch -- Show exec-file-mismatch handling (ask|warn|off). > executable file; if 'warn', just display a warning; if 'off', don't > attempt to detect a mismatch. > > +set style startup foreground COLOR > +set style startup background COLOR > +set style startup intensity VALUE > + Control the styling of startup text. This saves the setting into > + a special configuration file, so that it can be read during startup > + and applied. The second sentence is unclear: do you mean that setting the style saves the setting into a file? Isn't that true only if such saving was enabled by specifying the name of that file? > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 66b87608b89..f11948e8c4f 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -25880,6 +25880,21 @@ > @code{set style address} family of commands. By default, this style's > foreground color is blue. > > +@item startup > +Control the styling of some text that is printed at startup. These > +are managed with the @code{set style startup} family of commands. By > +default, this style's foreground color is magenta and it has bold > +intensity. Changing these settings will cause them to automatically > +be saved in a special configuration file, which is read by > +@value{GDBN} early in its startup. Same comment here. > +The directory in which this file appears depends on the host platform. > +On most systems, the file is in the @file{gdb} subdirectory of the > +directory pointed to by the @env{XDG_CONFIG_HOME} environment > +variable, if it is defined, else in the @file{.config/gdb} > +subdirectory of your home directory. However, on some systems, the > +default may differ according to local convention. This seems to describe (in less detail) what was already described in another place in the manual. Please replace this text (sans the first sentence) with a cross-reference to that other place. Thanks.