Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 66890) by debbugs.gnu.org; 2 Nov 2023 19:39:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 02 15:39:11 2023 Received: from localhost ([127.0.0.1]:56173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qydX4-0005H0-Nd for submit <at> debbugs.gnu.org; Thu, 02 Nov 2023 15:39:10 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:43187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1qydX2-0005Gb-In for 66890 <at> debbugs.gnu.org; Thu, 02 Nov 2023 15:39:09 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c595f5dc84so25571971fa.0 for <66890 <at> debbugs.gnu.org>; Thu, 02 Nov 2023 12:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698953907; x=1699558707; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=j9E4XhLvoXWMlLwTpqI7MccJx+gtmp71ZduL4L6MR/k=; b=cB9ljjAOMT8sY7+bGAfAnib6kGq36lYqO7vMsitmwOz8n4CcVKUNkiXeq+pKp1iSVH bW+wjyVYOBdzy/QhqmdXiROSMnVj/iPqSPstUx3i6pUS1UBWH2Bas4sixyah9x6HbTbo IFNdU4Xmx+D2iG8Ot9gt8f81yKvMgtSVAGUWj3Kpk/29GXrfvBV8H5jIG2MK6nV3KQt4 vTCpUaVMoIHFGHxEnBlot7yAs1MbJ3Ehza0x3VO7jPD/nhUmI9Hdo9AVbdBDEk0AgJPN X50DYCR6wRT5XdbOqBi9rWnCBzUuqtoMTgh5ob6Om0KLl2LiMwKODYKUP1kLqTe1nSRM YYXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698953907; x=1699558707; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j9E4XhLvoXWMlLwTpqI7MccJx+gtmp71ZduL4L6MR/k=; b=UYvzvaFfAZI+c6c8lxmZQQV+wx7Y67LFLSfyK0nQC0WjYKWRAsWOfgkDVjqDwyTL2N 8IP35AL8N+SbxEEvy7uwHbYkTTC9zCF9V7IkznxWvgQ4D3O4UoD7+tZwaEStdQosBTBq dsPPhOuSWsueQSvxjBG75dxUhbkJ+6a9WoasjAgQi/J7sx4G98WlR2xAuTfhH6yNnDiE A4K5QNB0MGm6+IAFpJyjWcWrC8C5zspP30bYLcDmjX0RFNz1LlFVMjRDzRDfz4sBrUFQ eC0n/u8JEyH+lYh1Y5T79jjevD8JBQq3RiDXG+6VOESB9WOK/nl53HqtxzUzscQhx0zS ohVw== X-Gm-Message-State: AOJu0YwQobaWJeIUGbdyFD4Z71znzUF/TyhTL7iZhhuqOFjoUnz8j5VL 9gqVmBritHmZIXpwzrlOCDSW2zOBfsOp6B64DSE= X-Google-Smtp-Source: AGHT+IGk0N//VGl+AKJa47wr9F2HQ1qwNEVaqUKB/qndGW6nDDsIcuylHxdo40+CPzLgVmEPDS7mLHYiC0+PoxkwQv8= X-Received: by 2002:a2e:990c:0:b0:2c5:dc3:5780 with SMTP id v12-20020a2e990c000000b002c50dc35780mr261930lji.8.1698953907135; Thu, 02 Nov 2023 12:38:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 2 Nov 2023 12:38:26 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <83edh88y2h.fsf@HIDDEN> References: <8734xp77vl.fsf@HIDDEN> <83edh88y2h.fsf@HIDDEN> MIME-Version: 1.0 Date: Thu, 2 Nov 2023 12:38:26 -0700 Message-ID: <CADwFkmnbX6X9T-cz4q_NFot1dZaxpPUY-0WN0r6ZCpMXqUyvXg@HIDDEN> Subject: Re: bug#66890: 29.1; buffer-size should also accept the buffer's name as string argument To: Eli Zaretskii <eliz@HIDDEN>, Daniel Nagy <danielnagy@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66890 Cc: 66890 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) tags 66890 + moreinfo thanks Eli Zaretskii <eliz@HIDDEN> writes: > It's very easy to get the buffer from its name. You could do > > (buffer-size (get-buffer BUFFER-OR-NAME)) > > So I wonder whether it is worth our while to convert more functions to > accept both buffers and names of buffers. > > Stefan, WDYT? I'd lean towards not making the proposed change, as it stands. Perhaps, for the sake of consistency, we should allow buffer names in either none or all buffer-related functions. But the only example given so far is `get-buffer', and I don't really see how we could possibly disallow using strings there. Thus, it's not very convincing. If anyone is interested in making a better case for this change, a single example is not enough. I'd suggest starting with a review of what we have now, for example something like `M-x apropos-function RET ^buffer- RET'. Without such a review, I don't really see that we have grounds for making any changes here. So I'm tagging this bug "moreinfo".
bug-gnu-emacs@HIDDEN
:bug#66890
; Package emacs
.
Full text available.Received: (at 66890) by debbugs.gnu.org; 2 Nov 2023 06:33:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 02 02:33:37 2023 Received: from localhost ([127.0.0.1]:53753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qyRGn-0004GA-FM for submit <at> debbugs.gnu.org; Thu, 02 Nov 2023 02:33:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qyRGi-0004Fr-6O for 66890 <at> debbugs.gnu.org; Thu, 02 Nov 2023 02:33:32 -0400 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 <eliz@HIDDEN>) id 1qyRG2-0002Sa-Lm; Thu, 02 Nov 2023 02:32:47 -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=AM3eeCHRWTR7v2ijQSTwEl5x4IGFw/Mwy906RPjXH1U=; b=K966LMuYO9rU SvQIMhO5PfqaVd+wibEQXuMoc0tojGj1tTMTJuJZweVttn8fP22+ML3jjhfYOxxVn50LV8Jv+dCPi 1NarFESewkdBg5F0GoUp/EU9L5GPORs9oenM+AeWN0QtAIoyn8lXaoHc+4PAbJQZbgk5ezSayP35X TCV9qW4XBp9HNO4Gy43JaEcmdx1UvyjbovdaEZtlmuT+3ffZ3TZhVB0Wfn1BEMe5XQkOE659e/ISN NVR3I/Bl4TkVeQ73JUQic8aJzkvDWUmfkSe/1lWoNFyjMYvHa7IDeNBkfbjgf48Hjk8m9ZG67aFpz PHm1GdlcRW8m6YUYhwNHvA==; Date: Thu, 02 Nov 2023 08:32:38 +0200 Message-Id: <83edh88y2h.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Daniel Nagy <danielnagy@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <8734xp77vl.fsf@HIDDEN> (message from Daniel Nagy on Wed, 01 Nov 2023 16:31:01 +0000) Subject: Re: bug#66890: 29.1; buffer-size should also accept the buffer's name as string argument References: <8734xp77vl.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66890 Cc: 66890 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Daniel Nagy <danielnagy@HIDDEN> > Date: Wed, 01 Nov 2023 16:31:01 +0000 > > The current signature of #'buffer-size is: > > (buffer-size &optional BUFFER) > > It can only handle actual buffer objects as the argument. Could it be > made to accept the buffer name as a string as well? So that it's > signature would become: > > (buffer-size &optional BUFFER-OR-NAME) > > Other functions, like #'get-buffer already do this. It's very easy to get the buffer from its name. You could do (buffer-size (get-buffer BUFFER-OR-NAME)) So I wonder whether it is worth our while to convert more functions to accept both buffers and names of buffers. Stefan, WDYT?
bug-gnu-emacs@HIDDEN
:bug#66890
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 2 Nov 2023 05:53:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 02 01:53:43 2023 Received: from localhost ([127.0.0.1]:53679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qyQeE-00039V-7b for submit <at> debbugs.gnu.org; Thu, 02 Nov 2023 01:53:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <danielnagy@HIDDEN>) id 1qyE8n-00009d-4v for submit <at> debbugs.gnu.org; Wed, 01 Nov 2023 12:32:28 -0400 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 <danielnagy@HIDDEN>) id 1qyE7x-0000sN-N5 for bug-gnu-emacs@HIDDEN; Wed, 01 Nov 2023 12:31:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <danielnagy@HIDDEN>) id 1qyE7w-00067v-0b for bug-gnu-emacs@HIDDEN; Wed, 01 Nov 2023 12:31:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F2D12240101 for <bug-gnu-emacs@HIDDEN>; Wed, 1 Nov 2023 17:31:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1698856288; bh=eb4AiKGNsPgDdN1rSm3bjWKJwofSTUZSVYOelZw/130=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=BwS0L64K8Jg1Y6cl2a5MhEyudMgJEoxKbknN+o+AuL02HVtZmVZ0jWKg5TD8mG24p jRnVK10tYya+jNdmZflUIPx7mbteVAqKcj4RETAVr00THLJg7l1Aa9XlnWQ4aA1Ec/ qeyuY+htI0dMrE3wnoUCDM1LLWj1MX2jwZ7+ywdzuLPxsv9YbFBlTL0V5ZDs8q6Acj ZBjpf4uJM/UZnEib7xrZjth27WrMkKEmMyWInp7bPhM2MCffScJMMonSTIc2A5wcwy cvVYMuUysywaYvh/X1mK2t0zk0DKj12G2uxWmj3OPAFnqgFFe23+rztDszGWubzvtr hRsX9e4+gBkqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SLCFC433Yz9rxK for <bug-gnu-emacs@HIDDEN>; Wed, 1 Nov 2023 17:31:27 +0100 (CET) From: Daniel Nagy <danielnagy@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 29.1; buffer-size should also accept the buffer's name as string argument Date: Wed, 01 Nov 2023 16:31:01 +0000 Message-ID: <8734xp77vl.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=danielnagy@HIDDEN; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 02 Nov 2023 01:53:40 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hello, The current signature of #'buffer-size is: (buffer-size &optional BUFFER) It can only handle actual buffer objects as the argument. Could it be made to accept the buffer name as a string as well? So that it's signature would become: (buffer-size &optional BUFFER-OR-NAME) Other functions, like #'get-buffer already do this. Thanks, -- Daniel Nagy
Daniel Nagy <danielnagy@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#66890
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.