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 14:18:31 +0200 Message-ID: <87v9faz7mw.fsf@gmx.net> References: <4b391ea8-ef95-42f8-990b-6ff2bfccd201@default> <87y2k7p124.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13661"; 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@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 14:19:44 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 1kTOi0-0003T2-5E for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 14:19:44 +0200 Original-Received: from localhost ([::1]:43698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTOhz-00028e-7E for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 08:19:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTOh2-00026y-U0 for help-gnu-emacs@gnu.org; Fri, 16 Oct 2020 08:18:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:58951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTOh0-0006sJ-5Q for help-gnu-emacs@gnu.org; Fri, 16 Oct 2020 08:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602850717; bh=N/SxuQ7ogK1BFA1RyiNIC5vlYDrOHP/F3FRHC5apYqY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=AvQlo9Xnv/98XWTRXKxWqYWti45K6tXSazH3wf/yG8QnUZ4puEpWFfAsTFLIGsmmg CMHAKlPjeIecDjX9nQknNNZihfJlJnz9+XJtix+QgKcnqlK3dEJTEisZJzgV52Vm00 Sgq/W++F7XTs297q9quhM5DwoYTNR0PaYFrUi0PU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([178.6.213.172]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNKhs-1knoz03t6Y-00OpgM; Fri, 16 Oct 2020 14:18:37 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 16 Oct 2020 00:12:07 -0400") X-Provags-ID: V03:K1:rAIn6OuhyxvEdOUwY8UFIeX7i/3scB2F1bsXzDFy7dAxS6fkXjG ylYX0+hMXESNPfs+qcVJ0Gk/BOoRv4/Lhn7Qrvuoy9Yt4mZUOAdKiShaMWjKmfLk/7EXAEW fETqeSliaM7J+7dmmzNCb+S1gJWO3ttFEYJo4TinYUb/gQsFqI0S8CbJo7PBPQZc5726p34 pgbtnZLdqPQwOBdq2eZ5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:i/+fc+HL9P0=:g06kO7UA+pM0Y9IiO4Qd6k mcAPQlT1Vzs9f7soTYOnXdydeD6yVDe2TPd0YUkqIMq33bfwHjHh+VQ8OqA68yjxWbQybSnwV YMfcbj6QLojl+yW8QGhq/Y9D1dNyu54cgQoIHlZYa9V4r0khHrqOfdVBayv8SFVVLRTK5rGcj cdfBw90Mpnx59XAJqd7XrbwCmteqvJiOtjL3zkAlvOJa2bkSSIF0EA3CeOlJrpKtM9nFgBCem /jcVXQOMI0kDrOMaJVQspKO6Ks+2E9rua6qCtgkbsOfSriUzIZeJ7CXcsdTCK+p75E2OXaC/I JvKr3KUrStKdeiWCNMTQDvUt+h9mD+bCvw4sXjkZFKkr9eKoGquUFs4OdCn/51563yf77k45H lBnT9xPG+/oaX7mV2mrWZc0GXSECrmDxvJ4sZomZ0I7lVXSypfnyLbYUJBFwtM3TFmcZjAzg1 62op4vLi0PBeO3V14uoTDUFqakEbwNYbUEnbUKGN8M1/Jn0u4oEt3lVCegowm1iozIIsKKqHJ lwq4hPslOTKtQoWoARywD49wbE/37HBAZjVXUonOZjTmStjcUEMTExdRrvzNATyt1B6mVid50 GT1OYDp9qRX66s3D5wGEGoBPXPSau3cXPrj0tx5mJvregHIAE9KyO5cMwi4g3QGUSdq+e5MDi QbOB1TrE1G+PMi6uewi8NKT2GFcPg+3CvYH4TvMyfCQnzNIebCvq2UZp50kGDgwLlsmewtRrQ Ei16kReJwXBI2E0rUeA64ibEScVPSjyayy6o2MMLEO8h2+UdeeuRkf4n8T3msCwMmntJwi5Q Received-SPF: pass client-ip=212.227.15.18; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/16 06:52:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [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:124506 Archived-At: On Fri, 16 Oct 2020 00:12:07 -0400 Stefan Monnier wrote: >> That regexp recognizes only ASCII letters. If you want any letters >> supported by the current locale, use [[:alnum:]]. > > Actually, Emacs's character classes aren't quite like POSIX's: they > don't pay attention to the locale (at least, by and large). Thanks, didn't know that. I'd just tested that [[:alnum:]] recognizes non-ASCII characters and assumed it was because of the locale (en_US.UTF-8), but now I checked the code and IIUC it uses unicode-category-table without reference to the locale. Steve Berman