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 09:59:51 +0530 Message-ID: <87h68itkjk.fsf@gmail.com> References: <10864c02-4bfd-41c3-bb45-6fe1155f9676@gutov.dev> <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> 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="30850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "Dr. Arne Babenhauserheide" , Eli Zaretskii , dmitry@gutov.dev, johan.myreen@gmail.com, 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 05:30:51 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 1t9Ge3-0007vE-8H for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 05:30:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9GdF-0001zQ-NC; Thu, 07 Nov 2024 23:30:01 -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 1t9GdD-0001xU-5D for emacs-devel@gnu.org; Thu, 07 Nov 2024 23:29:59 -0500 Original-Received: from mail-oa1-x41.google.com ([2001:4860:4864:20::41]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9GdB-0006ac-3p; Thu, 07 Nov 2024 23:29:58 -0500 Original-Received: by mail-oa1-x41.google.com with SMTP id 586e51a60fabf-2689e7a941fso1150342fac.3; Thu, 07 Nov 2024 20:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731040196; x=1731644996; 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=nRW7fnOZf4lvHEWwdGlmYZCOvnzjH5q/Xs/07nMbTG8=; b=h94VwOhTNq6jBwQfMvgkFeUWVZX/EkdBJhhhNLVZXdMDM22JTBNhLtQvGWd3hI8cuA 9O+kkten2FP6wf+oYcC6p28UMrrqS1qmi77gogKppZsgpBc7abHpZWh4GPrmXsPfxjFd 3x3uaAGfT5Y6/bczJ6p3Rr6jbvzddDfs7/LADEAsvr+JznXNmnZN25Cz2HSMVCQ817QL CrTNlDse2jIaDN5BOsO/q/Pb8QruRUB6r5IFki05hJZmmZfDWTsJ1X1KAbf32k+B1T38 bd1+t3BctK1MPOu51b7tZM+zVV6gsW5h9sIP4j2LYlUOS/XM5wM8LK4IquxfWdSWI7ot CNOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731040196; x=1731644996; 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=nRW7fnOZf4lvHEWwdGlmYZCOvnzjH5q/Xs/07nMbTG8=; b=nxqWllTxh13zJasxw4l6ot/UOziGYG+V+9r5JcP1EwW2+UPanD+6j8x9vHLLzDIrgh rHkQMmdwHdD8CT8x3oWvK50r9iwHCqlx+Bc3XPimaJerqjvOr8wi3+HAYcxOeqBZLg7V yJgh49NZ07gV9xEogp5Rba4Ie9OQa8/bpDcWulf9YVWeRjas5MlvRj82hIqxmtEndLck FCB36SjT/898N60KSiSJWL8sT+nQyrJ7vbpz9fq8gAYrilw/BuYeFz3+MzTkfqcZS/3g syi5PZldpE+BM9EJeD5vn7jZaTE9JtUycjMVtzo+/vqp5FLI1rEb/cKHCsRe9G5Qtv5T U3Dg== X-Forwarded-Encrypted: i=1; AJvYcCW1lX0lEDQkiOcT+kqKxSyNB6Hk1OoGsfxzWeRQHyCY7gt0zW02J1m1Y20MuG4mll3I1I5G@gnu.org, AJvYcCWG5f45Lat8DKwbzyossE4XdcePG1MCjN3BlPgaywhUiYvokG2SLxiOeVBGSI4Oqco+HeulueWY8JAts8I=@gnu.org X-Gm-Message-State: AOJu0Yxdlegb72CQ5lBWfybEHmE+TECviHp+zwxbslgGnGRdmpNINc3y TJFtMlWfdRZ1bcXeRqleOGf3MbdR7gzH/ymcRGru9b8qab7pPeleK9rSNnxMtBU= X-Google-Smtp-Source: AGHT+IG2x6zJUer2SQtexP8uBJ1pggVqaRsiS/qrnGwrGIpKpvb7RDaZxY5LCQX+YOr+wwy1VVpyLg== X-Received: by 2002:a05:6870:eca6:b0:287:7f4d:8891 with SMTP id 586e51a60fabf-2956028114amr1485625fac.28.1731040195588; Thu, 07 Nov 2024 20:29:55 -0800 (PST) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f41f2e98d1sm2431733a12.0.2024.11.07.20.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 20:29:55 -0800 (PST) In-Reply-To: <87ldxutl71.fsf@gmail.com> (Visuwesh's message of "Fri, 08 Nov 2024 09:45:46 +0530") Received-SPF: pass client-ip=2001:4860:4864:20::41; envelope-from=visuweshm@gmail.com; helo=mail-oa1-x41.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:325251 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] Visuwesh wrote: > [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE= =A8=E0=AE=B5=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 07, 2024] Philip = Kaludercic wrote: > >>> Can we have an user option to both `message' the user and have a button >>> in the mode-line? I usually don't notice changes in the mode-line >>> often, but notice messages in the echo-area. Just having `message' >>> would lose the convenient mode-line button to auto-install the suggested >>> package. >> >> We can do that, it might be worth discussing if the user option should >> be re-designed. The current styles of presenting suggestions are: >> >> 1. A button in the mode-line (default) >> 2. A message with a hint to use `package-autosuggest' (which I think is >> convenient enough) >> 3. A `yes-or-no-p'-prompt to install a package (either every time a >> suggestion is available or only once per package) >> >> I don't know if the last one makes sense to have, as it is pretty >> aggressive. > > Indeed, I agree that it feels very un-Emacsy to be up in the face like > that. > >> 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). 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.