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: [External] : Turning on savehist-mode by default Date: Mon, 20 Nov 2023 16:05:09 +0200 Message-ID: <83wmucikq2.fsf@gnu.org> References: <87wmufm7r7.fsf@catern.com> <87edgmq601.fsf@posteo.net> <87jzqeybz8.fsf@posteo.net> <86cyw6wb27.fsf@mail.linkov.net> <83bkbqkv2u.fsf@gnu.org> <8734x0rbrp.fsf@ledu-giraud.fr> <83zfz8ipex.fsf@gnu.org> <87fs10pnv7.fsf@ledu-giraud.fr> 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="19838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yuri.v.khan@gmail.com, juri@linkov.net, drew.adams@oracle.com, philipk@posteo.net, sbaugh@catern.com, emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 20 15:07:08 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 1r54va-0004t2-O4 for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Nov 2023 15:07:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r54ud-0008AR-Fl; Mon, 20 Nov 2023 09:06: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 1r54uP-0008A0-Ms for emacs-devel@gnu.org; Mon, 20 Nov 2023 09:05:56 -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 1r54uM-0000SL-Gx; Mon, 20 Nov 2023 09:05:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=LpWBiooPSMpPiIZ3sBy73Iwt82b0gSohes2LUKsc2VI=; b=o0wX6FVjfKOcRY7S+twd W8KhKZi7hnp6sqAgKA5FSMZzy9cxZkolQYcjbe/wQJWEKmCEP9PAN5hyo+TysZRWH2xzqCAegnWzI G01NfG5FR0jgJtXHMkDzg4bZhyGgE4QdmN4Fx3ii5IzgoBOGVJYi0zMSnIvenyTCWeQ9a5n3Ddqw3 szHckZvH4nBJ0lXnUSR071dVF2DoX7Mq56tgLrciXjp3CgJpHLusmf/xMZ857e0UnRfktFMhzOolk nnsAmC5xOw8pQ4ZKmRV01PHKvYNUJcWfJf9CGonCcV7WBfkNy+6vez7Ya/y/k+jtbhxBoE5dL88LN ejtKd0yroVI0ZQ==; In-Reply-To: <87fs10pnv7.fsf@ledu-giraud.fr> (message from Manuel Giraud on Mon, 20 Nov 2023 14:15:24 +0100) 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:313046 Archived-At: > From: Manuel Giraud > Cc: yuri.v.khan@gmail.com, juri@linkov.net, drew.adams@oracle.com, > philipk@posteo.net, sbaugh@catern.com, emacs-devel@gnu.org > Date: Mon, 20 Nov 2023 14:15:24 +0100 > > Eli Zaretskii writes: > > > I customize desktop-globals-to-save. It has file-name-history by > > default, and I add other history variables to it. > > Thanks, I'll try to do that. BTW, maybe this requires a paragraph in > info. The "(emacs) Saving Emacs Sessions" node, only refers to the > savehist library. Maybe. Let me think about it. > >> I am currently using desktop-save *and* savehist but I could use > >> just desktop-save? > > > > I didn't study savehist too deeply, but it sounds like these > > functionalities are equivalent, yes. > > Looking at my ".emacs.d/history" file, it seems that savehist comes with > lots of history saved by default: erc, eww, gnus-search, query-replaceā€¦ > just to name a few. If you really want all or most of the history variables, then savehist is easier and more convenient, since you don't have to name every variable you want to save. Me, I want to save only a small number of them, the rest are useless for me.