From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dario Gjorgjevski Newsgroups: gmane.emacs.bugs Subject: bug#35771: [PATCH] Customization type of recentf-max-saved-items Date: Fri, 17 May 2019 14:22:02 +0200 Message-ID: <87pnohb79x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266419"; mail-complaints-to="usenet@blaine.gmane.org" To: 35771@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 14:34:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1hRc4g-0017BB-7i for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 14:34:58 +0200 Original-Received: from localhost ([127.0.0.1]:47951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRc4f-0008Ku-2x for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 08:34:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRc3p-0007mi-0b for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRc3n-0007Rf-5W for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:34:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRc3l-0007QQ-SI for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRc3l-0000rZ-PP for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dario Gjorgjevski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 May 2019 12:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15580964183280 (code B ref -1); Fri, 17 May 2019 12:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 May 2019 12:33:38 +0000 Original-Received: from localhost ([127.0.0.1]:57708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRc3N-0000qq-VS for submit@debbugs.gnu.org; Fri, 17 May 2019 08:33:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRc3M-0000qe-Uq for submit@debbugs.gnu.org; Fri, 17 May 2019 08:33:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53227) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRc3H-0006yJ-M5 for submit@debbugs.gnu.org; Fri, 17 May 2019 08:33:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRc3G-0007Uq-Ll for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:33:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRbsF-0000qd-JH for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:22:08 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRbsF-0000om-BH for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 08:22:07 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id c5so6876088wrs.11 for ; Fri, 17 May 2019 05:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=N3UOPi5LmkbW5Kr81cZCF3jZhZA6oGq8fvAfTc8+/x8=; b=Cp7LLmDBL8IvUFdMt6GrOSyjFEVbAqq97fLdm4serTjslz9q6bDArMlzfY0dRm2su7 ZVgP0ouvq1Y4z5ZyjrVPI/r8KAEw1GTx+pC6qXkSmkVIbcZKdVKU1p9q87XPYv2SyP7r HlrrveuReaKZWtbP20zEB8916xwI3o6NOTAgwkoMr9ahP++CuzNecGU9eYnUC0+uvkX8 JXWAFjLFy4jI47bbXu4SWL/fPtyrzqegkBmxXTYh9IdTDEtouh5aJegnS3dbg4Mh2UCH 8MVK2hesfki/fYgoyDM1eaAT5cw68i+V1bJIhBkEtKBFSw4W5P/1QY4atmXrXt8jwsQR OQIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=N3UOPi5LmkbW5Kr81cZCF3jZhZA6oGq8fvAfTc8+/x8=; b=bD+yZmfXUNYMWhgBqV189f3u/ytjomYOjYr7xWFZB1CrDKGwUOaMYxNGy4zzpN8BL8 Hdr099dWxa/kC2V6SOGU/nMJvklZcIsoyI3REZcVbgkNYmQEtdTa7QeVabZhIO+NVa/9 YNS8ee3U65FGNoVByy+8zstoXwnNJOYg4K/vuTTy16vadveNNZHEIfdJp8Wr5AW+S/Lf f97mY7ysxed5VNMDSFy8SftOsdWux6B3D2vjXs4JYDekZ6ROIUg7ybkZqLCO73rNJwo+ 2nHANAjpPQ9T8p5bhB9uk5sOaTVBggohhUFa+kZVjihmK8H9vrZmcXFq3sTI7+VTzOH2 eptQ== X-Gm-Message-State: APjAAAVG3cAYInZHs//WLgHipQn/n0flGZlvkKe8pMW8uRHq+fGN2F2s 6OyZrCJqyzF9g8XtPIG3PS4intP6pDk= X-Google-Smtp-Source: APXvYqw8NrVesjZi4Oz+8dkTh8j1LTxCYb3uIdeO467vQwmngJlNBhYPo/K0eQ90M7/FWC5T55+BxA== X-Received: by 2002:a5d:4d46:: with SMTP id a6mr36396029wru.142.1558095725080; Fri, 17 May 2019 05:22:05 -0700 (PDT) Original-Received: from dario-XPS-13-9370.gmail.com (p4FE1B137.dip0.t-ipconnect.de. [79.225.177.55]) by smtp.gmail.com with ESMTPSA id 19sm6997730wmk.3.2019.05.17.05.22.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 05:22:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159444 Archived-At: --=-=-= Content-Type: text/plain The customization type of recentf-max-saved-items is currently defined as integer, which does not include nil in its domain. However, setting this variable to nil is supported in the code and also documented. This patch changes the customization type to explicitly allow for the variable to be set to nil through the Customization interface and similar. (Please note that I copied the type from save-place-limit in order to be consistent.) --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Customization-type-of-recentf-max-saved-items.patch Content-Description: Change customization type of recentf-max-saved-items to allow for nil >From a62b4c6208f9d64bc49499855e65ae9b9a55b01e Mon Sep 17 00:00:00 2001 From: Dario Gjorgjevski Date: Fri, 17 May 2019 11:46:54 +0200 Subject: [PATCH] Customization type of recentf-max-saved-items --- lisp/recentf.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/recentf.el b/lisp/recentf.el index 9b70017a38..4112b44e48 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el @@ -67,7 +67,8 @@ You should define the options of your own filters in this group." A nil value means to save the whole list. See the command `recentf-save-list'." :group 'recentf - :type 'integer) + :type '(choice (integer :tag "Entries" :value 1) + (const :tag "No Limit" nil))) (defcustom recentf-save-file (locate-user-emacs-file "recentf" ".recentf") "File to save the recent list into." -- 2.20.1 --=-=-= Content-Type: text/plain -- Dario Gjorgjevski :: dario.gjorgjevski@gmail.com :: +389 (0)70 784 142 --=-=-=--