From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#60080: 28.2; Double-click selection cannot be customized Date: Wed, 14 Dec 2022 19:40:22 -0500 Message-ID: <6B7419C1-47D1-43FF-8E6E-C3A4898089EF@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4301"; mail-complaints-to="usenet@ciao.gmane.io" To: 60080@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 01:41:19 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 1p5cJJ-0000ux-Ia for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 01:41:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5cJ9-0007yh-7m; Wed, 14 Dec 2022 19:41:07 -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 1p5cJ6-0007yT-NJ for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 19:41:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5cJ4-0006Au-Uz for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 19:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5cJ4-00033I-Kh for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 19:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 00:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60080 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.167106484411707 (code B ref -1); Thu, 15 Dec 2022 00:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 00:40:44 +0000 Original-Received: from localhost ([127.0.0.1]:42197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5cIl-00032l-RJ for submit@debbugs.gnu.org; Wed, 14 Dec 2022 19:40:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5cIj-00032f-Ac for submit@debbugs.gnu.org; Wed, 14 Dec 2022 19:40:42 -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 1p5cIj-0007qs-1h for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 19:40:41 -0500 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5cIh-00057J-1a for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 19:40:40 -0500 Original-Received: by mail-qt1-x832.google.com with SMTP id fu10so4055649qtb.0 for ; Wed, 14 Dec 2022 16:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=o4mLnS16lGfHQ5xNzhGLtcOPK4MBD2PFTfLUfRNtPvA=; b=A4EauM//rdRSllwUQn0aIRvFaSL8GsP+qokXDEDHkKsur03+VzXM9mjreXiYzi03RY +TJFJlinvnRQ5VJ/5iYEOr9eDlCSiAVZMatQX4TCt1RYejIY0guCYaFOIir7T/k0/wLi RLxcLo5NBpoMu9yt9ltwxq9RU/bmMQj9+mbFl/D6TfLa3gvCa7WXqULUUE4gw/kUESNU 0I5rseCl+RMfGdDzCx/3ZPwYQMYaI/DeZhX5zwIsLPeFvaGDzjf1yk8kwL3t4uD9fxDP 1d+NB9ZyrqlHA2ztQmIXNBq2cXQys6XHwLrbLpflZ4V9LIfC6qrVHQm5a9vBorKqTJiG edrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o4mLnS16lGfHQ5xNzhGLtcOPK4MBD2PFTfLUfRNtPvA=; b=5/d1vHdhLSLxaNZhfp1At27lSpNpOT6gLzhJ2Kb0caHxN9RS720qNXQcKfmwcURLkO yAQMDXD89DekGKlpzEhA9iIK44F+dCon540IUVVPJBYUU3K9P6fZ5hwXiMOrY+7r5AFK 7XA+svKfSUmrm+vL8O6jXTnZqT+jxE1c0idL8yrxBWuI7nCDqUskgfXyc8Q9UJrNX+ox ISWKtxOY9JGtWg2ELlIH4sj1YnqDrzpderjOIWRi1EwgzwLpPME3nUcp9sv35msyyi4b Cy8Qhbh9Nh/t842lTetPwIIe11+r9FQ+yzl3wJCUhDR942Gz9uMi0YnpoGitHKEr/c4z l0Ew== X-Gm-Message-State: ANoB5plDT/xGfFmYRt6yrpN/SS8VN7rnFJ3kFpGjIOskmWK9RKwJVwMB hA09dBhimpUWqfHidSSIKbrNhBtPEC18klS+ X-Google-Smtp-Source: AA0mqf6swJ13t7RlGp8O5sjKXnZ01dNdJlFbT1OhB93aH4C7GqJhVdOhvTnVMfdq1s5rld33ecBxZw== X-Received: by 2002:a05:622a:194:b0:39c:da20:d4a5 with SMTP id s20-20020a05622a019400b0039cda20d4a5mr44228814qtw.58.1671064833835; Wed, 14 Dec 2022 16:40:33 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id l11-20020ac848cb000000b003a689a5b177sm2544160qtr.8.2022.12.14.16.40.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2022 16:40:33 -0800 (PST) X-Mailer: Apple Mail (2.3731.300.101.1.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=spd@toadstyle.org; helo=mail-qt1-x832.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251017 Archived-At: Hi folks, In GUI Emacs, you can double-click to select some region of text. The rules for double-click selection are documented in (info "(emacs) Word and Line Mouse"). Here are the relevant bits: Select the text around the word or character which you click on. Double-clicking on a character with symbol syntax (such as underscore, in C mode) selects the symbol surrounding that character. I'd like to customize Emacs such that when I double-click on a word, the entire enclosing symbol is selected. In other words, it should behave more like the latter case of double-clicking on a character with symbol syntax. Here is a recipe to show what I am talking about: 1. Open GUI Emacs with -Q flag. 2. In the scratch buffer, type "this-is-a-symbol". 3. With the mouse, double-click on "this". 4. Observe that only "this" is selected in the active region. 5. C-g to deactive the region. 6. Double-click on the "-" following "this". 7. Observe that the entire symbol "this-is-a-symbol" is selected. I want to select the full symbol "this-is-a-symbol" in both cases. Note that this is the default behavior in some other editors that I am aware of. I understand that I can get the behavior I want by double-clicking the "-", but "-" is a small target, and selecting the entire symbol is by far the more common use case for me. In the short term, I have a workaround where I advise the mouse-skip-word function. Thanks! In GNU Emacs 28.2 System Description: macOS 13 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 49949 6483) (symbols 48 6552 1) (strings 32 18286 1523) (string-bytes 1 606914) (vectors 16 12898) (vector-slots 8 184857 11573) (floats 8 21 51) (intervals 56 198 0) (buffers 992 10))