From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: listen Date: Sun, 25 Feb 2024 21:46:46 -0600 Message-ID: References: <51bcca65-2690-4f23-98bd-d929e63d7f94@alphapapa.net> <87il2cdb17.fsf@posteo.net> <6e496679-63f0-4a30-aa6a-8402ff96a6a1@alphapapa.net> <87h6hweihk.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Philip Kaludercic , emacs-devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 26 04:47:53 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 1reRy4-000ASF-Dg for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Feb 2024 04:47:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reRx8-00048e-7l; Sun, 25 Feb 2024 22:46:54 -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 1reRx6-000489-Is for emacs-devel@gnu.org; Sun, 25 Feb 2024 22:46:52 -0500 Original-Received: from seagreen.cherry.relay.mailchannels.net ([23.83.223.160]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reRx4-0008BK-SM for emacs-devel@gnu.org; Sun, 25 Feb 2024 22:46:52 -0500 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 24EFA14354F; Mon, 26 Feb 2024 03:46:49 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a290.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BB160143537; Mon, 26 Feb 2024 03:46:48 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1708919208; a=rsa-sha256; cv=none; b=xyZ5lx8O4eEDSxDuw/erhO4n/NCEA/FA41nCtBz/Uq7d/L8BDcVz9JV3ktBg6yoPMCVl1H si7B0dFfujo8+WnGBeSKFjvaLaj+exeeWRIkmAnqi2IWWfnvEjYURHKAnqEmVT8V1Tlise VhD4VFfGEh98pWHAa6qtHjBMjpaE8Pec5SD0xMrjsiaQafhpit7zpZGTgl3gi75dx6Un5M qq55r3QEHml5UDI6Ivh/AnUOM+5pKXx/CVp00jA3Aq8XxCrfJWm1ItvaHSGWa49D1fgCLr seOb+YeDtt8OK8vFcR4bmg/tXelyhF7ek66PFUJsXQBL48s2jpgA9AJlJ8MsrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1708919208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=nPFr0xKRZQN+uqzw4cgif7Kp7ZlfezelY7EA9i8zCyU=; b=jQ9rINwdUNJq81PA0IiiNeXcTtdmdbVWlhOC3d5PYkC4o1vHeAbfMh8Xx0VZszjcdwCWEu QHOWrodqsQWMtMOhAs+ZOBcp5/qywZMKULt2lnts9YjWDh4LFUcJhPfYNzPLSyP5jPQwna 400OGerUYJj7s/Tn1ohFk5je5zWzQXgTRc1VljTXkj6ly+IVTYoKdGbY1xZbIqEuUEvFD5 +tZcjsF8CUR1aGQwNkM4zGulZkSyXeGQ7uB7oDvXO7cElpW06bxfwHEjHzx3OsoQcAMQrn PTzDa4NVD+d+vVum/Jrlpce14onxVDUQMSKCll5IEhr92/kxNoA0hHTh/xyo5g== ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-k5lwn; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Fearful-Squirrel: 7e48bd11728f6210_1708919209012_716506054 X-MC-Loop-Signature: 1708919209012:983726253 X-MC-Ingress-Time: 1708919209012 Original-Received: from pdx1-sub0-mail-a290.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.124.220.191 (trex/6.9.2); Mon, 26 Feb 2024 03:46:49 +0000 Original-Received: from [10.179.6.34] (unknown [45.130.83.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a290.dreamhost.com (Postfix) with ESMTPSA id 4Tjmkw0MZzz2G; Sun, 25 Feb 2024 19:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1708919208; bh=nPFr0xKRZQN+uqzw4cgif7Kp7ZlfezelY7EA9i8zCyU=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=eXJTGxwZ8DSSeur6ecxXv8bpvFjDdhw6emEk8DdmcY/3r6ob3vsK0iGN3q4IwYZGK kwjAuOy2CIl7nbJJNEM98QX/uXUi+H+RH1DisfILQxZrr+tksVrqt/V1bru6scjKr2 dlPrJ9HRyMHZSyFsRflbriMjhK8bE47g/eDlUbnjDpld1vkoLMnWZ2VokSj3j5Dt3/ Um6SkLk8Zzs5DKFS1If9hjIw20ZPB/IVQ5lFw+WO9OD9CV+PsxNQELJM9CbkdqgpQd t/p292yYJIrq3mWIqxFfc4q2cBZrhVrV7qMfF0nd+/pd/LZUEHRwUyz29nP7WqY2JR SQ8tyWgk0vTDA== Content-Language: en-US In-Reply-To: <87h6hweihk.fsf@igel.home> Received-SPF: neutral client-ip=23.83.223.160; envelope-from=adam@alphapapa.net; helo=seagreen.cherry.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:316544 Archived-At: Hi Andreas, On 2/25/24 08:17, Andreas Schwab wrote: > On Feb 25 2024, Adam Porter wrote: > >>> @@ -942,10 +941,10 @@ extension. >>> Return one of symbols `vorbis', `opus', `flac', or `mp3'." >>> (let ((case-fold-search t)) >>> - (cond ((string-match ".ogg$" filename) 'vorbis) >>> - ((string-match ".opus$" filename) 'opus) >>> - ((string-match ".flac$" filename) 'flac) >>> - ((string-match ".mp3$" filename) 'mp3) >>> + (cond ((string-match ".ogg\\'" filename) 'vorbis) >>> + ((string-match ".opus\\'" filename) 'opus) >>> + ((string-match ".flac\\'" filename) 'flac) >>> + ((string-match ".mp3\\'" filename) 'mp3) >>> (t nil)))) >> >> According to the Elisp manual: "When matching a string instead of a >> buffer, ‘$’ matches at the end of the string or before a newline >> character." So it appears to be correct here > > It should only match at the end of the string, not before a newline. As the manual says: ‘$’ is similar to ‘^’ but matches only at the end of a line (or the end of the accessible portion of the buffer). Thus, ‘x+$’ matches a string of one ‘x’ or more at the end of a line. When matching a string instead of a buffer, ‘$’ matches at the end of the string or before a newline character.