From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: How to detect end of buffer? [was: Deleting a word using keybinding] Date: Fri, 16 Oct 2020 00:38:27 +0200 Message-ID: <87y2k7p124.fsf@gmx.net> References: <4b391ea8-ef95-42f8-990b-6ff2bfccd201@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6574"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs , Thien-Thi Nguyen To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 00:39:28 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 1kTBuA-0001aF-Io for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 00:39:26 +0200 Original-Received: from localhost ([::1]:51308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTBu9-0001hb-Jj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 18:39:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTBtU-0001hS-S8 for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 18:38:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:45929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTBtT-00021i-1o for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 18:38:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602801511; bh=n+dOdCagZXyKV+WiM/Dn8ZCS/U2jPkGkMZ97i9TvAN4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=RZYx9IrQ1NLJmubEHwgpaIP3xQZUXV/QJgQK0PGGwGPh67owujZSoXTv7boLMSMj5 SSk+cS0DrqDmUApDO7HnhfEwiHwh+pzwtTxI92aSsz8U3lSJ3aOImc+aJk+/Ntijy7 twPkCn2R8NXpeko6zVvia1oFz557qhxaxceyBq5Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([178.1.122.151]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N49hB-1kKUf01BBJ-0100rW; Fri, 16 Oct 2020 00:38:31 +0200 In-Reply-To: (Christopher Dimech's message of "Fri, 16 Oct 2020 00:12:01 +0200") X-Provags-ID: V03:K1:CM55rcb6C1z5X2pgpLum9Y9VyO6FzTxUyJ/b5I1nOJaeiqHlEQl +PCkXh+VX0PQRBII880UqcQSOzEembUQxF/NdB/WvJdKFBPMtDsXBlkd09a9cH3d8rx968W 2Yqu1Wnteto8YXMQ8buxBzSNuj6CaThni+SjTDOgoYkNgWurck93mT6hS4PmB0TWA66R6JF bkN5c5OprmIgLdKxuq8EA== X-UI-Out-Filterresults: notjunk:1;V03:K0:+xBlv03BvNo=:hPDyu6ueh4puc0M93o/EL4 4WN/wFF35e31Zv7BylKlkXuY2wqu/ah7tDgX12NZ3LFYjy4scZDTRsAQFC5RJVk8YbwiZD5Ly 8C3B1DkL/+LegXM1FGnNOiwa2udsilOFSyMc3HuXUdiUEFANjBsjwMXK852HKoIKjUWrcEito l6VSgEeafFrNbBL9jmKyVCXj99MMPw0lBPxZwY4pSvmtowTAP1zgCPuhKc/i8TAKjP2ZZsF+a pJa/49s4gIChDiHMw9nYH4TDKGt8nafdwEsJIkGC6ui1UOSMSkT8qyDVqWjgVY8wBP1EUh96N z9h/V5TFu3ri4uqtATFu6xOsRrBOodeZbpnpclD9wj0AubV8Xk8pqaqQjdBjRwMjfz3dsO58V QLXuA3mQRvPBvoJ7a3yzxme9iDcTA80fbDgg/XMZguV6kyKvWnSzyglyeLH5BEMz7MEOb5v2/ lTHMfv6E+Ctd/yP8lVQbyB1YxdrbqIL2jYEQWk8kfzLXjFH23DtyP26Y20pV4jetDNlT3kqCQ XWQ/7SK4OCt6j362moy10SzoTf1yOyNU8SyVM8OQrCctlAMwQeGRZC8smJ2WJHsoeOzDxiqpf 4TA5AWmtkSib70wXeprXMo3Y2xTAaojhCxFH9v/OXy29618Iishm+33IdGwQsVJHfGleOibpj QdWBnIi5QQuAPz9dIB/KtqGwlyVNwLCA/u9m4/MT36NcFoMSSTsxZgcaEVnI+roRF/w3p82lf hzck7BpFujTgAvmrwTY8yojUIcmKYdZbHuFCynO3nT4AfiXxDEowX0ixIV0/CNCtqxJcMPSk Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/15 18:38:40 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:124481 Archived-At: On Fri, 16 Oct 2020 00:12:01 +0200 Christopher Dimech wrote: > I think I have done it now. But I would be happy should someone spot > some problem. > > Regarding the condition below, I think it takes care of the ranges > appropriately, > so that I can go to the beginning of the word. It should determine > whether the > current point is on a number or a letter. > > if (looking-at "[0-9a-zA-Z]") That regexp recognizes only ASCII letters. If you want any letters supported by the current locale, use [[:alnum:]]. Steve Beramn