From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: count char in string [The Emacs Challenge Competition - round 2, with fallout] Date: Fri, 30 Oct 2020 06:09:36 -0500 Message-ID: <86y2joas27.fsf@x201.butler.org> References: <87r1pj41wa.fsf@zoho.eu> <875z6tqh10.fsf@pmatoe> <86sg9wdinl.fsf@x201.butler.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1932"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 12:10:06 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kYSII-0000L7-Jb for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 12:10:06 +0100 Original-Received: from localhost ([::1]:35346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYSIH-0006tv-Iu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 07:10:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYSHx-0006tm-Qm for help-gnu-emacs@gnu.org; Fri, 30 Oct 2020 07:09:45 -0400 Original-Received: from mail-eopbgr670098.outbound.protection.outlook.com ([40.107.67.98]:19808 helo=CAN01-TO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYSHv-0008QP-Oq for help-gnu-emacs@gnu.org; Fri, 30 Oct 2020 07:09:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kDRjiCElbUMQOGLrwXwZ6b7x/e6lvL6IQjqsrd3K3lFdkCZSsCUv5poHJqf+9XcjdgwK5aTcuz6gh+jE19LDu7rV6mR2sePfGXh76AJZI4VWfzLcuhHL/BdITJBKDFUahZbiCIHpHVszVGLLd4p70gAynjrtFNu2rq7UQ6aDWTfK8YgnjzWu9Oph+XoO3KpX80rj7HwhQp6/gHVF6LttralIR2/0hJdI/XGdGfTJZRPc6WUb0hwMTax4pfihE2fc5VeXyaGe+UwO3o+iiKWnZetgW2SqR2s27cskVBb5U1lOevJa/c47Y0uH1sNQjDO2tS/zb45EYgd08joTpCx0sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gs+CmWeUVjzP1KLyRYx5USfH/cSaqGl4M2N1rPOYmX8=; b=nfCujbA2u3pccqk1G463mK398NfuInchQg+H326zMFE0Oulky/wD04RYWjDlz9v5TciLFiKgE/ZJttTerjG/Da0UBJxQSKXjnq/qKN73NmoyxWUNmXqgATJqGycUFtCFj/tN+Tj+QwTnWfvc6M42wnUmMemy+Lr/jjBuhUCHtgq3DXeTJSkIEjfYH3oSliUCQdD1SKx8FwnV7XUAxz4D4rJ/KehECWq+QTXyt9WAkxnq16Qgl8CDuf5vUskT78GnsvHOtZJIv554mNExf6qgyI8mNm71q1Sx5T55x2pdtrw6Kk2edCAe33z0uYNur1QJtVS4Qc91hyz/21cUlv1b5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gs+CmWeUVjzP1KLyRYx5USfH/cSaqGl4M2N1rPOYmX8=; b=P38t0mWo+vECUrE2L0gQylmtWR5PCyEihjZzDmTc+mkcipmAv3LcdBKXRLNxVSkcxgIl6cdzwa4F/0lRiZgRlyoc18NElPP1LXoX53kBCgkz3cFSVVOzDXVMN7M7IFdzW7FzoFad3WPMlaWSAJH9K4R3Gk6WiR2BdbDeCtfJ06M= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YT1PR01MB3145.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Fri, 30 Oct 2020 11:09:40 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::d9ac:774a:ace:9c4e%3]) with mapi id 15.20.3499.027; Fri, 30 Oct 2020 11:09:40 +0000 In-Reply-To: (Jean Louis's message of "Fri, 30 Oct 2020 01:44:15 +0300") X-Originating-IP: [45.44.33.194] X-ClientProxiedBy: CO2PR07CA0073.namprd07.prod.outlook.com (2603:10b6:100::41) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from x201 (45.44.33.194) by CO2PR07CA0073.namprd07.prod.outlook.com (2603:10b6:100::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19 via Frontend Transport; Fri, 30 Oct 2020 11:09:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d86bd946-dae4-4ec9-121c-08d87cc44bd1 X-MS-TrafficTypeDiagnostic: YT1PR01MB3145: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iJ3Nn/ibPTK6AF3SzA1mC2IaF3JsLjmkVvqqy6QyP/KiM7UZvoXyTvZFpsAmatj806BfiiLdjW+Lkd1JeONKwDrkzuB7odbH9eRK2jyvoC6FNUNUcHYMQiSG/QtsQMnyZK5t/GP1IQyxneKDCYez2UmPXMMYoz9z4KN0fd6wHYcY/F3wXCRr8qqfdyXlwsGBZrboXecss6YAaURrJ5TLmR9SoFa+x5XI8iXRNSJWCUT/xnXgIwvC7puZQsH+t4zoV6jv5uBKb92iYlCVLvaiw3rYxfQfbnLHBiaTkC0HVl/CWAw7USjWePRlYGbTGlIkr6qi+N79H2vVRfzoSPZLAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(136003)(346002)(396003)(39860400002)(376002)(9686003)(8676002)(186003)(956004)(6496006)(66556008)(66476007)(86362001)(66946007)(16526019)(8936002)(6666004)(558084003)(316002)(6916009)(478600001)(6486002)(52116002)(44832011)(2906002)(5660300002)(26005)(786003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 8Cxiv9FhPgM/jhPBE1BO25QErFuMhnynmWkQSEdVVpKQQL2nSWQlB40y0/SCDSkUiUFLcZkyDSzG//LcMI0ED4GtVr8bjusDz72sEG/wxGQ4MinIDP9cxpiUaQuvhhiXuWfhWq9AFl8jMUu7XGJlG8TgRVGhRiZPS7maLLuhW0vfJoB1cZBUwxPONu1/sVCrqZHR9HxKr+ZRmtV87VEGboKz5/DY7G5RPr4A6097vR/QA9ouIxhnuXv9UbkSVLlHuKx/FtB43IMatLRv70/lCb8pyrNrft9HBHPQVQ0r1xeJMynd65T4n8hmneYui2/9QEBIjTL3TubE3VFXUrRB2YDgjCZq665L6IRGwGhVumLmUcraINHFSnZzFwo+zZpM891QcuH+AIoywjmi06Qxj21gWc4L8b+3wxYHVsL1kT0IkHOb8JV6/o/DGl1CEPMxzmu/zdXYLs+4trr6Q9PIY/eIS6M8Wd1EiSwbRRfMiENeVwimiwFw/OFpIa5rZ1ong63+LQ9umsKWxe1NadN1MxbwDoDM2ftglRuDzlB7xgujxj97ukbQ4SiIk1pOXSvz9Jz/Etryq4lQeP37jNPo1GMNsFmnewYjHvCiXcmmz7eDefpB7ParW8kx04p9+eNUuHMlZOLmJ+VXCU/kR8SmKw== X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: d86bd946-dae4-4ec9-121c-08d87cc44bd1 X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2020 11:09:40.4639 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NnE47yWPMFne8Oq4/D09BzJ7t9FH5xMsTuyB3VYBROcE6AdOodHm27seA6S8+rtStqN+AcaPcebLofUuFDTmmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT1PR01MB3145 Received-SPF: pass client-ip=40.107.67.98; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-TO1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/30 07:09:41 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124815 Archived-At: Jean Louis writes: > M-x how-many Nice. Thank you. That beats all the solutions offered, imo. Leo