From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Automatic Suggestion of Packages Date: Fri, 08 Nov 2024 21:14:03 +0530 Message-ID: <87cyj5u3wc.fsf@gmail.com> References: <867ca9shcw.fsf@gnu.org> <7cb15f5c-efd0-4516-8190-a53c0d958eb6@gutov.dev> <86ses8x1po.fsf@gnu.org> <865xp3w64u.fsf@gnu.org> <61171da3-7428-4572-bc13-783766a123b5@gutov.dev> <86v7x2u7rz.fsf@gnu.org> <877c9hizof.fsf@web.de> <86cyj9u71k.fsf@gnu.org> <8734k5ipx3.fsf@web.de> <868qtxtx2p.fsf@gnu.org> <87a5ed605a.fsf@posteo.net> <87y11xh4cy.fsf@web.de> <87ikt1ust4.fsf@posteo.net> <87pln8hfh6.fsf@web.de> <87ttcjt9ht.fsf_-_@posteo.net> <87ttcjt4cu.fsf@gmail.com> <87v7wyhfwo.fsf@posteo.net> <87ldxutl71.fsf@gmail.com> <87msi9hlhv.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 16:51:19 2024 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 1t9RGY-0007Su-Of for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 16:51:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9R9p-0005Ox-5O; Fri, 08 Nov 2024 10:44:21 -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 1t9R9f-0004ej-C3 for emacs-devel@gnu.org; Fri, 08 Nov 2024 10:44:11 -0500 Original-Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9R9d-0005a4-OI for emacs-devel@gnu.org; Fri, 08 Nov 2024 10:44:11 -0500 Original-Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-720d5ada03cso2301737b3a.1 for ; Fri, 08 Nov 2024 07:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731080647; x=1731685447; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=El9YIrNeGmL1XxhE0A7PqtmxfvESqpVot61uDUxG3hY=; b=NLVw7N+rgxidykHmjH7VlPfrK1o9feSGCP037Floe0RXGcPhsULLDdDyuVZAdY4uw+ DH6WyW3MXPyXbhfmkLaUpKe6mELA/GOaCCbEGBoxlENeZnaZOLT8Jlc3/kYSzhRsiYZP kZuovtX2MTNxyAhhjhcecjOj5zmXp19Htdq+xEafzK0K/SrDOzXYOZ8YofTPy2/qQNu0 4gSTu6lOAeAoXWlkbkNPRWs4OAIZc3hA/maEAzFTchB/lEZvJ78ORQ0aBIkZ/jdDKuD1 WaZYBEIdo+CGSLsV1tguHxoI+6wf3At4g4jK6Kr+5QM/0Fia2DxFkn9G/d95PvhJgl9i nTJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731080647; x=1731685447; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=El9YIrNeGmL1XxhE0A7PqtmxfvESqpVot61uDUxG3hY=; b=j9DE8JGvq9bTp+FuFSQdQibhnICv/nqQb3XtNZFeIbpJmXrbbS5rZSG8IfX9MS2hi5 3fCAWE+i2wGjhTeqCQNoEZxFohhRQSgTuEF/ondT7r3aOmg9IUcPkN3BNDoEr9goYGpr cjKlN+6onP70D2FpnI2n7Kg/zOnuMoF2jy1NUdPVyYrCkT2FWGS6cid5hXgX1hvPpXXJ xPj1j24oT0XrcROLI4drd4+IDvFwbv6XZMbtXqjZnieFStUMFUiSE0L8KPKxc8Sx/MpK xX3GHux4Q1Lzb8ydqGeqxJEYfgfhcHJO+o3HBsE6+YxD3hHDcPkTI3bw3DJNsEjB2Jmn Ysig== X-Gm-Message-State: AOJu0YxjT/SuqE2vH8bKZFw7UY53UiThM3aQSEGTPlvvsAugvT0UffKZ Cmj0DPhr7ML/qMh7N2n6K4DuA5utoIuOmp7Na1rJvesAyw0JIbUZ X-Google-Smtp-Source: AGHT+IGr2hrVUjBKsxKzzTJwx7UAMSB2k/2gjiWIXOt5TQGjf6wDWisaZA89zbJA39meYce8xqCUXw== X-Received: by 2002:a05:6a00:1486:b0:71e:5b92:b036 with SMTP id d2e1a72fcca58-72413373586mr4413194b3a.22.1731080647033; Fri, 08 Nov 2024 07:44:07 -0800 (PST) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724078a433esm3871651b3a.42.2024.11.08.07.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 07:44:06 -0800 (PST) In-Reply-To: <87msi9hlhv.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 08 Nov 2024 14:02:20 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x443.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:325293 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=A8=E0=AE=B5= =E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 08, 2024] Philip Kaludercic w= rote: >>> [...] >>> Perhaps it makes sense to always present a message if the minor mode >>> is enabled, and add a separate option to enable the mode-line button? >> >> I would be happy with this (though I would turn the mode-line button on >> by default). > > The issue with enable-by-default in the current implementation is that > we would have to load package.el by default, which is currently avoided > to reduce the startup time (see `package-enable-at-startup'). I see. > > We could extract the autosuggest logic into a separate file and suggest > loading that by default. > > We could also consider not using the mode line, but the menu bar to hint > at package suggestions, but that might be easy to miss especially if a > lot of people advise disabling the menu bar. That is a good idea too. >> BTW, I looked at the code to see what it does when there's multiple >> packages suggested for a single (e.g., racket: racket-mode and >> geiser-racket). It seems to install and enable only the first >> suggestion: should we instead prompt the user about it? But asking the >> user would defeat the purpose of the feature, which helps in assisting >> her in setting up her environment for her work. > > No the current implementation would just install everything. Neither of > the two solutions are really ideal. Perhaps we need to pop up a buffer > with clickable elements to present the package suggestions and propose > installing one of them? It would help the user decide between the packages if some kind of popularity metric is shown. If they cannot decide between the options, they could at least pick the most popular one and go with that. I think the current one shown in the GNU ELPA website should be sufficient for most cases. Although I dislike the idea myself personally, "last updated time" might be a good indication too. [ I dislike it because stable packages don't need to get updated. After all, they just work. ]