From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#35491: Subject: 27.0.50; word-at-point, hand over optional argument Date: Mon, 29 Apr 2019 17:51:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------E85DDB3F011C195966E0404D" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223595"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 To: 35491@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 29 17:52:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hL8Zo-000w3d-Ki for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 17:52:20 +0200 Original-Received: from localhost ([127.0.0.1]:59564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8Zn-00066U-Km for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 11:52:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8Zd-00063I-3H for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL8Za-0005FC-HE for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:52:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hL8ZV-00055U-UT for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hL8ZV-0006Ts-PT for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2019 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35491 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.155655306224804 (code B ref -1); Mon, 29 Apr 2019 15:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2019 15:51:02 +0000 Original-Received: from localhost ([127.0.0.1]:39547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL8YY-0006Rp-3Y for submit@debbugs.gnu.org; Mon, 29 Apr 2019 11:51:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL8YW-0006RQ-K5 for submit@debbugs.gnu.org; Mon, 29 Apr 2019 11:51:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hL8YQ-0003ga-W2 for submit@debbugs.gnu.org; Mon, 29 Apr 2019 11:50:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hL8YP-0005VT-LL for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:50:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hL8YO-0003c0-Ey for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:50:53 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:43921) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hL8YO-0003Z8-1Z for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 11:50:52 -0400 Original-Received: from [192.168.178.39] ([88.130.49.73]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0FE1-1gX08c3Ihz-00xKEr for ; Mon, 29 Apr 2019 17:50:49 +0200 Content-Language: en-US X-Provags-ID: V03:K1:z8r84+22HBxcM430ddxsj+csmc87RtCEPcLVmo3z2IYZlxGukul XSEHb1E8W0tUrY8ijyhx3R7czQcR6DnyNDu8XckBt1O2p8k3B0DVLcyx+i2tf3ZtBEPf76Z dok9AJGTbmGl2bQPclNBkC5ljyxKijh4C0YlY0KCoVkrRRoc8HCQa4nzbIIdgrVr4TA0VSj jGvZwNuqWcGnkds5hZjTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:RZlZvI57u+g=:bXd/bMYLaMo14AU7npcV7A +snb7CQr6Dr+HLS2Fn0blBV8o9Q1tI0F7i9NHqAGNc0rm2xSJ178+IWn5PfTXRcKolMO4uCdL CrJDVhnbwvYpFjggRfUuWPubX1kupytRvbJ7jRAQhfHlGaPWmzMvKEPp0LWafH4lNI++F/Nkz EUPIPnkboZXuvE/Byfk2mORzKR6KLF32MEi9BEbJezbSEFTy99NN4PZozYydzg80clSeu7BLu ATxIFxdybwQgHZpWEfAjT4eM50pap4uBXlY7bIlC4bNGmzGLots2fm6UyLNYUt2foLlcojyNG UVHx7pUNqLdqpKz5GQITRZJcaWTijFPMF5mXNkQKiCtB8ZvXeLNj8RotPamOcOTk0IIoHVeI7 e3aQ6tB6TjCQ+jfB5VZ7jxhTTVxUW5SriF85BJ0HzVyJXStBl5cdFuZcXG3/rAY7EkMkXSLAY TtQsLC+ZmTSMN7QwTmKQUEv6bzIcekoTIw133QRhTn9I2Y2WNopnxbHz8NkwZBAOxHEG6FMi+ pT0ScWngoqkvWuNPWOJteIxU6iL2RN45EAkVt7kXKn9r7Ily5MbRGxBhTm90h5RSx/DakkeVO IvRRV+JrNSCX3GyXsnihoXY0oj3E4DRyg3U1pUY2ZRtBtRwYF1ccryon7GvpLNp9Xw3MP4PSG ZQK64K1ut0WepmLNztLtK9i9C4T6ne3NAEU6IXgw11u4FMsjqf6605ZVykVs0gxutnjTxI28r PyqwELRr2pTmUmt8QBc/KaZpGW6gqMZV5EgXez0VxZAte2De7FpmLHDo/Hs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158434 Archived-At: This is a multi-part message in MIME format. --------------E85DDB3F011C195966E0404D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi, please permit ‘word-at-point’ to hand over optional arg ‘no-properties’ ‘thing-at-point’ comes with an optional argument ‘no-properties’. Seems there is no way to set it from calling ‘word-at-point’. With attached patch: (setq a (word-at-point t))foo a ==> "foo" ;; current constraint: (setq b (word-at-point))foo b ==> #("foo" 0 2 (fontified t) 2 3 (fontified t rear-nonsticky t)) ;;; In GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5)  of 2019-04-29 Repository revision: 74712470fcb95cd4ef6ef5c61eee73cb8e02a8bd Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8 (jessie) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window. mouse-2, RET: find function's definition Type C-x 1 to delete the help window, C-M-v to scroll help. mouse-2, RET: find function's definition Mark set Configured using:  'configure --with-modules --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings:   value of $LANG: de_DE.utf8   locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   eldoc-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   line-number-mode: t   transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode find-func cl-extra thingatpt help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 144321 10677)  (symbols 24 28536 1)  (strings 16 63330 2694)  (string-bytes 1 987604)  (vectors 8 10126)  (vector-slots 4 128792 17668)  (floats 8 22 34)  (intervals 28 376 12)  (buffers 564 13)  (heap 1024 11153 876)) --------------E85DDB3F011C195966E0404D Content-Type: text/x-patch; name="word-at-point.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="word-at-point.patch" diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 26e0843..6976769 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -585,9 +585,9 @@ thing-at-point-uuid-regexp ;; Aliases -(defun word-at-point () +(defun word-at-point (&optional no-properties) "Return the word at point. See `thing-at-point'." - (thing-at-point 'word)) + (thing-at-point 'word no-properties)) (defun sentence-at-point () "Return the sentence at point. See `thing-at-point'." --------------E85DDB3F011C195966E0404D--