From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: RE: How to detect end of buffer? [was: Deleting a word using keybinding] Date: Fri, 16 Oct 2020 01:54:43 +0200 Message-ID: References: <4b391ea8-ef95-42f8-990b-6ff2bfccd201@default> <98b2ce51-f322-480f-9e03-68f1bd473c2d@default> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18210"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Thien-Thi Nguyen To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 01:57:29 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 1kTD7g-0004cd-EH for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 01:57:28 +0200 Original-Received: from localhost ([::1]:50266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTD7f-0001lG-8r for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 19:57:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTD5O-0001l1-BR for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 19:55:06 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:51109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTD5L-0003oB-OJ for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 19:55:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602806084; bh=G8JKdpRsmTYUPPVBD7T1vP8js4khPkXZQ049htJgYq0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZYnObDQVEpePhMXglXakwiRc0eqk+x9oTCd7FhngUcBpefMTpGQp2b7buD3rYm95z CCW+XLGMVzPs+ytVQAhz/34LX9PkrNDZ1lEE5l1EkVX8+bwUumWeWriDzcmKpqCFYz SdGtuDV4PFO33mIt1yv35s68FXyq6n4fQbAa648Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Fri, 16 Oct 2020 01:54:43 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <98b2ce51-f322-480f-9e03-68f1bd473c2d@default> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:aUH8ns0m3vF+b4tFuWklRNDWWexT2HNxB+V+0lKXBlrR3QY3NrBzsQjV7JCEtu/IvfB5V bdYwj3eXApFrTQxRDIB5RbKRF5Lh0nGFUHd7qqZgI9fA/mTbDsY/ISoaAxLoLGug1BzGLI/rtoNG SnGmq1Ng6mh8uaeqacfofy/VkvnwozzwaGd+w8oEw9+yLf3OOyETESQNVg2I46ppbw8yeFo3B41R NNs1fkf3OEoRCoNvMvVFT3zeusnLjqimCINC5xAgT1IQjeQmbrAUQXDwWY1B/WMPmjzqUBL16v0C 1o= X-UI-Out-Filterresults: notjunk:1;V03:K0:ZwHpCsQIgZk=:WJw2NL9Y/vsDxB8a8iec3i Ik0ocodhaVIvsc+uH80ZcbmfXKu/0bz6XEGSzt6Hs3fMhCTXPwhsRs0uTDURovByFMGwzaGdd oxphP/UWjrvUMeHZpim1Gi79Gqi1oisgOQTvaW9MEfy3fhE7a982nmNO5Z7Bpi+yHB0PfcjHf Wu95AtKrSNvsU9yckE2FRz/lnCCLMSMcbeD53dBtqHObKwxftC3rY9VxI7PPVO9b2Tdju4iIO Sytef8EcJc2gvQq/crYn+Q+MoTMIvxXzfnymKvAr0/nfRaL/bgMY4bsPAg32M/UXukfx+q7/J GUXJE7R3B77YOrxZtheNa8mQrri1i66tvdt+k4+HTNc4JzV3AMwFFx3J9RGnGnOQkZo0l3UNH bHw2JOX7SjUHc+RrM39J45IGsn/IV4+MHwFXfC75kyggYHRveRj0elOfmnSnTGxzawFH/aeOI sixMUUCU+Nk29oa4SDeWhhxSQ6w+OCbzXdQo39StUn2VW6RFfDuKSxE42btImAHw7Y07NJlJT W7NmKXonpU8iRcs2qt5rMLq/3n/QRDh+lIAbbfBomdbMLI6nBuF9CiDOHTDCIKX4riMFDW/3S CCcy6tFxbmbGU= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/15 19:55:01 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, 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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:124484 Archived-At: It should be ok, because I am usihg the check to know if I am in the middle of a word rather than at the beginning. I then just move to the beginning of the word before killing the work. Otherwise I simply call (kill word). Sent: Friday, October 16, 2020 at 1:02 AM From: "Drew Adams" To: "Christopher Dimech" Cc: "Help Gnu Emacs" , "Thien-Thi Nguyen" Subject: RE: How to detect end of buffer? [was: Deleting a word using keybinding] > determine whether the current point is on a number or a letter. > if (looking-at "[0-9a-zA-Z]") As Stephen said, that matches only a decimal numeral or an ASCII letter. Dunno whether that's what you want. And if you just want a test, and don't need to also set the match data for some ulterior purpose, then use `looking-at-p', not `looking-at'.