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: [PATCH] Filter registers before preview Date: Mon, 31 Jul 2023 14:45:51 +0300 Message-ID: <838raw2tjk.fsf@gnu.org> References: <874jlldzhx.fsf@lipklim.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Evgenii Klimov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 31 13:46:31 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 1qQRM6-0008nO-JE for ged-emacs-devel@m.gmane-mx.org; Mon, 31 Jul 2023 13:46:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQRLS-0000DJ-UQ; Mon, 31 Jul 2023 07:45:50 -0400 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 1qQRLR-0000Cc-OL for emacs-devel@gnu.org; Mon, 31 Jul 2023 07:45:49 -0400 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 1qQRLR-0007E5-3y; Mon, 31 Jul 2023 07:45:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dLDHf0tx8nIfQGLHUee4y5Hm74lcqg6q1dTebdKlezY=; b=dhnPqOmPWPKn 1IyMFXZRAhWXkUjCURA/fvGjMbezh/S8OunaKxSOwtyKgzRSxXtmUfM47rThHUpNsr8E6gk2Ox8Pk EZNe/LUzAbHY+AWmVUzwR1yI5KW6SolORnKSSEKXM0+EAFB959j/dhqcW4Ozq748R/z+WIdfyq1D0 Gjxwcg0HyX8eHlIe+d0HR1MGB59tIJqTVtcz2//abFpxQ8A7gV3nJtvgdRtBAFbARYVejO/P10uIB 2UYK/2rYbqD0LAoJAUhZi4/lcLInjLhKc5d6G2++Z6wIfuAjEM/4ups0UU+yyQVJXhXF4cMkPQ7ZY 72AkETwHTK/aUvYRniWmpg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQRLQ-0007C9-CJ; Mon, 31 Jul 2023 07:45:48 -0400 In-Reply-To: <874jlldzhx.fsf@lipklim.org> (message from Evgenii Klimov on Sun, 30 Jul 2023 19:27:09 +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:308218 Archived-At: > From: Evgenii Klimov > Date: Sun, 30 Jul 2023 19:27:09 +0100 > > Hi, I find registers very useful (especially with elaborate > `register-preview-function'), but as they become more and more numerous, > it gets difficult to select the right one, because every command > (`jump-to-register', `insert-register', etc.) shows every register in > the preview buffer, even if the register is not applicable in this > context. > > The following is my attempt to deal with this issue. If you find this > idea interesting then I can rewrite this patch to conform with > the surrounding code (cl-defgeneric/cl-defmethod) and your remarks. Can you describe the idea in a few words? And do I understand correctly that with this change it will be impossible to preview all of the registers? If so, I think we should provide that as well, in some way. Thanks.