From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: (bounds-of-thing-at-point 'number) =?utf-8?Q?=E2=87=92?= nil Date: Fri, 04 Feb 2022 15:41:43 +0100 Message-ID: <87iltu8ziw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 15:42:32 2022 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 1nFznE-000ABx-QE for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 15:42:32 +0100 Original-Received: from localhost ([::1]:57294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFznD-0000ss-BA for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 09:42:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFzmX-0000sT-4u for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:41:49 -0500 Original-Received: from [2a00:1450:4864:20::42e] (port=45921 helo=mail-wr1-x42e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFzmV-0003jD-82 for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:41:48 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id m14so11696469wrg.12 for ; Fri, 04 Feb 2022 06:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=Vf66hYlJc8cMW6GwF6Let30r6MzP4lsRky4mrVb+e0I=; b=cshT/lV8Eys+z3amSYyhdh+dcwS3/ESxieNOA5e4RM5//I6jB/sJZwUKzROjFbgaRJ JUP2eVffQf0DkBLUQ3j/7pL3C21yQmm/4CiESAYnwbOnsd6i3U0mppIZCq5ijv/M7ETX RnOjQ28b0p8Z8LBmfEBQukKgnMESV0EQuoCCnmNKg0qUJZ8ZtLmy29h3qkK+ChAr0TVJ aVX1THF5h9j+TP/TSUt7ywg5dQG6lB9WpQ+nta49hAu1k35GBGHgdSZX89TSbmclMqpc HjW4UPzAO19iBvGCua5Nor2tLlg9zH3b2reXhFUGJkbVn0NLw97W8p367o63rU2Hs8et 1NUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=Vf66hYlJc8cMW6GwF6Let30r6MzP4lsRky4mrVb+e0I=; b=7cGLv0Mgt77Zz3CKu6t2fxzlKVOoW09CVExYDYM86vYf7+ho6f3pSKRJuUixEvMnIx wumAmX8tq/49mMBMFb9dQ5bnVq21uUpXdBRU0ACDrZ5r6oBvQGIDqdtGSb6XNGbxQ4zZ 82xKPP3lhzl1YATY+rJZ3prEJKZxLMohz7iMMTyWqGniEWs6qNra2bpJogQpEfOiQqXF /4RinadjCl0yGPtfl69lC24qzlLuYzXvofnlOOwJJcIYdhcVSV3RqHXTig6pd8D1CFD5 53Z1RuWrrAOYSaNPjw9jA9q1XsaLBc3cxySzNZgS8tZ6jbXm0MgFfD1rSfP2bmmO+D1K rX0w== X-Gm-Message-State: AOAM533F/iS0u9vMQF0Wi5TBpduQjuf3hgtvqKge76S6J9AU6Ftcol9R 4KOn7NEfiYgulMHnVqniZdtXOp54bX0= X-Google-Smtp-Source: ABdhPJzFySt0Dns6bAoVwkvG1K+ZCp24Gi250lUAjCbK/Ms79E+NZCn61CR0L0hcoty3W6cv2KSbAw== X-Received: by 2002:adf:a44b:: with SMTP id e11mr2864490wra.227.1643985704773; Fri, 04 Feb 2022 06:41:44 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:8818:ee8f:e16:f2b8]) by smtp.gmail.com with ESMTPSA id c13sm2152568wrv.24.2022.02.04.06.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 06:41:44 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: (tomas@tuxteam.de's message of "Fri, 4 Feb 2022 14:20:47 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42e.google.com 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:135741 Archived-At: >>>>> On Fri, 4 Feb 2022 14:20:47 +0100, said: tomas> On Fri, Feb 04, 2022 at 03:47:19PM +0300, Jean Louis wrote: >> >> (require 'thingatpt) >> >> 123 >> ^ >> >> when I place cursor there under number 2, and >> evaluate (bounds-of-thing-at-point 'number) I get result nil. I >> am expecting to get the bounds. >> >> When I evaluate (thing-at-point 'number) then I get see result being 123. tomas> Note that number isn't among the things mentioned in the function doc of tomas> `bounds-of-thing-at-point'. It is, however in that of `thing-at-point'. tomas> So the behaviour you describe is surprising, but it is documented :) tomas> Perhaps both functions might want to get reconciled with each others. tomas> But perhaps there is a deeper reason their "things" lists differ. I think it just means that nobody has implemented `bounds-of-thing-at-point' for 'number. Patches welcome :-) Robert --