From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: Any word in mail-mode is recognized as (thing-at-point 'symbol) Date: Mon, 2 Jan 2023 17:08:17 +0000 Message-ID: References: <135052c52dc9cf59347c5a1fc6744872.support1@rcdrun.com> <87lemlf9mp.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33548"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 02 18:08:53 2023 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 1pCOIu-0008S5-Io for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Jan 2023 18:08:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCOIX-00009P-QK; Mon, 02 Jan 2023 12:08:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCOIW-000093-BV for help-gnu-emacs@gnu.org; Mon, 02 Jan 2023 12:08:28 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCOIU-0007V7-B0 for help-gnu-emacs@gnu.org; Mon, 02 Jan 2023 12:08:28 -0500 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 301NZUJr006466; Mon, 2 Jan 2023 17:08:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=3MmlDSouATQ7bAEMLWJOiFGHxA0Ib8Y4BddRTdAldmI=; b=qqWo7XXKxaQxsuZPiF67QgTlxVLJo4sZTGbcp1vVV3OKN478zglMSwoYANUAh4931m2t Gp1Kb4Fxzv0ExPOrnQt4v5EHF5SZ6mjaZLfhmpzcPknI4JsdMQrukoMo+N/ZtDEQtebd 0DxSY0p+NdO4iss8Kbd0H+zBwrvSbqQIeKjj8e9h6Rdt85vc2aw8C/0OtaQKPr+qCaFR yfeF/2tgYqfzmOJUQ78kEm7H6zzAdRGvyr3TPvaI1iHVeHvRsFf9jc5j0fovC/LrIR3Y ugOwx9bB8oUR2nfp0Wo4OTonoFIfHbis9D+HxQRavFp5ARtynV9swzY7UFXqWgsgMaN9 mA== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtc0ajn1r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Jan 2023 17:08:21 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 302FuJgb032991; Mon, 2 Jan 2023 17:08:20 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2047.outbound.protection.outlook.com [104.47.66.47]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mtbh3wkf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Jan 2023 17:08:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jevAvAXREcRQu8Lw5gXy/MyRvnnN+dNwVmrNhEgXTBzlfQchFmV1XdQFXEDXom4MFD6djx7KDHDPTh3FLqDRSG+W99pQ6Zq9/dNeX8NalFDEyB8LqU9bHFjd/rbV6BDHSHDv7WmexNJ0J3rwZ2qvm4yekOUojDZ9li343uAVpv/BACNeZILaGWSxwefgllJgDly69NeGBgnu4dSwSpi9C7PrHOp9BbMOogt1SbtKb4UKdagcx5i5YqeKneGGwaC/QC0ZhMvjR93HZ3ZdjHzxtkL8ebTfpcih4r5UWmkTE6E64opb2oWeLKcHVCy4LcSjovame0opqXYPxNefF5Q2xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3MmlDSouATQ7bAEMLWJOiFGHxA0Ib8Y4BddRTdAldmI=; b=aG72rY2GKg385qbbnmTShqFidgZZCK9uEMwFFjLZCJECqvwuhecm2OeZSdaF1dE4Lk7AVFwqOuPWiocBX/wwS0FhQ2j1oo4Wj+ms/JCrEnW3DJCmi2jL+PgAJU1qgE6G2E5CyX6uxm9AWty2f8qI0gGwrZOh3bD1yJ1MESw2r0gLlKGOp+l9GLK6KAtNR6ciXWdveOAszgUlm2tyGnYB3LnIWKdlSUYEdYrtd5nboL/mWCxrWYmAKwMKqoL8olHSYESVZprwJ4oV5XhrfnzOz/rp5zZqKgOSgq0/I/NooKsrKNmsHiqknsdC5gU2hVzt3TnGsXGp2KVnqF4AceMN0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3MmlDSouATQ7bAEMLWJOiFGHxA0Ib8Y4BddRTdAldmI=; b=hHB2R5PVsAfjHz2p8jRRaSXP4X8zcbvANB/9vclSNZ8qO/BL14deY3O0AlUjSGfSwCilwRlF0Bom3/xYGNJh9opdR83+V1Q+dyi1a6pjdprjhYmLdLhNNqW1dsM17ScefhujgJnWeBk51I+2vCiisXsHZwFXc0QKV3Kr/UfF7GI= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH7PR10MB5879.namprd10.prod.outlook.com (2603:10b6:510:130::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Mon, 2 Jan 2023 17:08:17 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%8]) with mapi id 15.20.5944.019; Mon, 2 Jan 2023 17:08:17 +0000 Thread-Topic: [External] : Re: Any word in mail-mode is recognized as (thing-at-point 'symbol) Thread-Index: AQHZHp8N/+xwpiq5wU+/OFwoGTwnzK6LSs7A In-Reply-To: <87lemlf9mp.fsf@web.de> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH7PR10MB5879:EE_ x-ms-office365-filtering-correlation-id: 6e0345ce-3db2-43be-dd1a-08daece3f108 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: d8JHawAZlTTz4YosqzINWvYqFtZ7knqaVrgys1Z6pLas5+j9HT9sAgFCqtkKqIpRQzpEd6rvFMeguhd8BEDLPNJ7XP4FObRMV/I0pP+zcBcAd0QkSsGK3EfOzIJfhhnCLZpyKNzKCleVvyoN598J9fjnYJx4aftxCvWAoKu0qJEaWgZTkKoPP0J+6jZ63/+GlMqON2UaP/rTc6tX32S3UTaXNr9exf12G0xtf6hODrP5NeyH7LIrxOFk7VvYmFUpPnE4Ab3g3Rx492qnNAmcW1EJviXFKL4YkHXTwjPr4kx3wS6DpIAgQKt+smWMSaTUWR7lvjtsY8BJr2eMLd0HduIhpQ6sh4Phoxcf1uABCgNoHMlBsT9LLCh7JplabNauqOoIre2uqzJHtKan6NHMvMH5xDIzU1Iizsd4vu7jIgdR+5fQB6W9x3Sh518dqvqu2QvU0/mcDslqkUpZCNRdMEMrMGnVc94gh/pmizgck80MkpAFqXtk65I88q3WKqGbzRXuSlhywGEUtiP2/Vim3AOOQaKzXXTcg7Y0htNXA2dhXyjBFBewMBCF1I33oO4f3DKraIwS3ffTc9vt0+cSXEebcB5/MlnhXegOj96Gmf2WiltgQb0mjO7MTazoGQxbhr5dTYP8HDEo8bOH0QJpkZrUy02t0hft5RJgCGNtA4OvNMioqUBhQAb7I4FTOrpr9g1zIRdniaJ1E3bzQRcumLw1/k308fXIFzVa7KK7kQw= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(366004)(136003)(376002)(346002)(39860400002)(451199015)(83380400001)(38070700005)(86362001)(122000001)(38100700002)(2906002)(52536014)(44832011)(8936002)(41300700001)(5660300002)(55016003)(478600001)(6506007)(7696005)(186003)(26005)(316002)(9686003)(64756008)(66446008)(66476007)(8676002)(66556008)(71200400001)(110136005)(66946007)(76116006)(33656002)(22166006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OgXz3x/IuT1R57NUNtip513p/DXh8YSBSv2FS4bP+O5fgKn4Aa/9gIEXvISb?= =?us-ascii?Q?YOJcBZlclqKcQRFVyNYwlvxc4mAoyfLAWCKj2+Y1wYe9gv6Pf16avpKj5g5V?= =?us-ascii?Q?ZQGlALZSaHEmGYj+B5Y86VzrrMR4XEYKXyrtQCywaNnD3NSODowSGvfbuzCH?= =?us-ascii?Q?TY+ks05gtjjk6ZUKio3f+dCh6mjzbrvq0N7xiu9r6DTtCg63SY8sgXkzDHtS?= =?us-ascii?Q?C1RbZHk4OcoiZ+OTEZShzl59hVSvc19zp0Tfd95eeTEMUpkVsCn/Bc2M5svk?= =?us-ascii?Q?L8XlzDArYKc/0Zo+gX9k54/+AITs5uZdfyDaN6ipbAu7+y2nPPt8QzLRzmXg?= =?us-ascii?Q?QonkeTI36UW35UN2y/6xb7AMI8Iura2660fMNYE4BLceZyi+pA25U9iKt/2e?= =?us-ascii?Q?nvm/0uWNA5HrjpfwYjh1h1hc0P9kc0SoVsf25BMBJ9TgVy2MD9PGaKXJ9tC9?= =?us-ascii?Q?bMGIEk7w8oJQqSeyEGfTdR4iqsyIt3ZoKGgkHaSjnbVxB6Gb1Mu/SYEvpUKO?= =?us-ascii?Q?aFu3RfpZ1oXZv9+T0uwdmIWKLPYXtl9ZwiR09/tKqugi04WeeplEqjG0Td8x?= =?us-ascii?Q?9jLnzlc6ai8O8xTwS42rEHZfILjqGHcwllcUQHQDGaRHwi9C8AA/+s+g49eU?= =?us-ascii?Q?2Q X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e0345ce-3db2-43be-dd1a-08daece3f108 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2023 17:08:17.1499 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: osWS0r2TExvCKd2k1xre0oEBLr6eNmbvp1v/Ryrz1SN/Z74TDhu6DsRDq9b2ruPIxs0JsIQlEqAxJmusaMaOzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5879 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-02_10,2022-12-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=736 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301020155 X-Proofpoint-GUID: dvPDjd9tlvqDNVtg9JR2D2vaVA6oeGUx X-Proofpoint-ORIG-GUID: dvPDjd9tlvqDNVtg9JR2D2vaVA6oeGUx Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com 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, 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.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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142096 Archived-At: > > I find that any word I inspect in mail-mode and probably then in other > > modes is detected as (thing-at-point 'symbol) even if it is not > > symbol. > > > > What I expect is that (thing-at-point 'symbol) detects only Emacs Lisp > > defined symbols. >=20 > That's not what it does. Whatever you mean by "defined symbol" you have > to check yourself (e.g. using `intern-soft'). "Symbol" has two meanings in Emacs: (1) any text with symbol syntax (_ or w), (2) a Lisp symbol. Vanilla Emacs `symbol-at-point' returns a Lisp symbol created from the text at point that has "symbol" syntax (in any mode). And yes, in most modes any "word" has symbol syntax. `tap-symbol-at-point' (from `thingatpt+.el') returns an Elisp symbol that's named at point. That is, the text has symbol syntax according to `emacs-lisp-mode-syntax-table' (not the syntax of whatever mode you're in), and the object returned is a Lisp symbol. See the Commentary of `thingatpt+.el' for how to optionally use the `tap-' functions in place of the vanilla Emacs functions that make use of the `thing-at-point' and `bounds-of-thing-at-point' symbol properties for standard thing types (e.g. `list'). See the Commentary also for how to use the `tap-' versions everywhere in place of the vanilla versions. Both of these are optional.