From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.bugs Subject: bug#54555: 28.0.91; number is not an accepted value for THING in bounds-of-thing-at-point Date: Thu, 24 Mar 2022 15:32:51 -0500 Message-ID: <87wngjdrbg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12066"; mail-complaints-to="usenet@ciao.gmane.io" To: 54555@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 24 21:38:23 2022 Return-path: Envelope-to: geb-bug-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 1nXUDu-0002xC-QY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 21:38:22 +0100 Original-Received: from localhost ([::1]:36736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXUDt-0004VX-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 16:38:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXUDa-00047G-1r for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 16:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXUDZ-0004oQ-Pu for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 16:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXUDZ-0006vZ-NP for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 16:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Mar 2022 20:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54555 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164815425926595 (code B ref -1); Thu, 24 Mar 2022 20:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Mar 2022 20:37:39 +0000 Original-Received: from localhost ([127.0.0.1]:49532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXUDD-0006ut-CA for submit@debbugs.gnu.org; Thu, 24 Mar 2022 16:37:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXUDA-0006ul-W5 for submit@debbugs.gnu.org; Thu, 24 Mar 2022 16:37:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXUDA-0003UP-Po for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 16:37:36 -0400 Original-Received: from [2001:4860:4864:20::30] (port=38083 helo=mail-oa1-x30.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXUD9-0004lW-B1 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 16:37:36 -0400 Original-Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-dacc470e03so6115631fac.5 for ; Thu, 24 Mar 2022 13:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=j9BzUXJcLAIz4vdfVYrsZNKWNXMejOpAsLA+R8IurYw=; b=hp6RSP0hifAg4JLrGc+g7rVQKqf2AQyj7ttxuvth9EASLBSGktQzGh14VFJn9o0mdj fyimmp3NT4a0uwqRpq0CVO7Bfw3wlphI1ERh+8CSouxPnphgi0Xl0iObvlpqswc+o2TW NVuOb9Ko1QW+CDm1fA3bRP+Y3PweWbPjsjMJM+opTKj/UdMJg0GNbnKOPxOInesRW67B Vpm39agFmCB0qmI3Jy3VBhonol4Jk7QRGLcT0lu9EOXZm3wCURJc9h9MPpICHsHtb0aH fdf0UaRFbd7nwSGQxRoBnuWWcfMbZdNnQzKosKYBC5OuUIAplO0sH4PhcZerE/BFJTMR m8vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=j9BzUXJcLAIz4vdfVYrsZNKWNXMejOpAsLA+R8IurYw=; b=1P3CAxZKqY24XvGdQXkZcqJ+luPcd2QIT829s0MH0ZKiE7lKG0+pCcJDPSaQwbZgU9 C2i6vCkGg78YMrHEKFF3lJM0GOPATGdlaZEQtnIzqI7sa2XhKvd+0dTihh7IT0ZaceKU gXjL4XFS9w9B833fri/IDizZc+/RMys+FpU0tU1PfpP+k4469b/IG2VZ+MFy3L5BEi0Y yK6Vg/MJLLeAfUYwU9CDzDvO7/4wqj5wvc1fRTkHr9/bsuEJK8zwepF2GFxEcGkZFHWU ldoFj07ezFiteYGhIgA4ciYIEdwnHRw+peAkegBqYyqTDeTZJ/JG2K25I3wa4I0t2JRy w42w== X-Gm-Message-State: AOAM530ZIWWYwBWxwW3pz1qo1oR43pKv3m/wcZZQOh+5nHnttwSPeWv4 IHE2BMoTzcRxNp+yOf6qJSW3d2j4sBHTjg== X-Google-Smtp-Source: ABdhPJxv7xwrP24vKeSfQma884eF9yojQHNN8VGSVwUyQrXwDHFgmlrrUzh2eXU3Lmr2fp71/2r1Zw== X-Received: by 2002:a05:6870:b6a6:b0:dd:999f:6596 with SMTP id cy38-20020a056870b6a600b000dd999f6596mr7546916oab.106.1648154254003; Thu, 24 Mar 2022 13:37:34 -0700 (PDT) Original-Received: from r1 ([181.65.25.184]) by smtp.gmail.com with ESMTPSA id l14-20020a056820030e00b00320edaf9b8esm1633581ooe.44.2022.03.24.13.37.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 13:37:33 -0700 (PDT) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4860:4864:20::30 (failed) Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-oa1-x30.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, 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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228897 Archived-At: Actions that triggered the bug 1. Start Emacs with the flag -Q: $ emacs -Q 2. Insert the number "123" in any buffer (preferably, the current one, "*scratch*") 3. Place the cursor on any digit in the number that was written in the previous step 5. Evaluate this sexp (bounds-of-thing-at-point 'number) in a number. Current result "nil" is returned Expected result The boundaries of the number should be returned. Additional information First, some context: The following sexp (thing-at-point 'number) is able to get the number at point. For example, when the cursor is on any digit of the following number: 123, that sexp returns "123". One might think that the following sexp (bounds-of-thing-at-point 'number) returns the boundaries of the number at point. However, this doesn't happen because "number" is not a recognized value for the THING parameter in the function bounds-of-thing-at-point although "number" is a recognized parameter in parameter with the same name THING in thing-at-point. Note that both thing-at-point and bounds-of-thing-at-point belong to the same package: thingatpt.el In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4) of 2022-02-09 built on r1 Repository revision: d193801f59822554d28e497da146d982f5ab7995 Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Memory information: ((conses 16 2520424 464021) (symbols 48 74192 87) (strings 32 512469 221518) (string-bytes 1 17720034) (vectors 16 236556) (vector-slots 8 4539095 616527) (floats 8 9916 1150) (intervals 56 138426 14734) (buffers 992 140))