branch: elpa/xah-fly-keys
commit 401bb150cc932a8b298ff9d13a96f0c5485c5c34
Author: emiltoacs <[email protected]>
Commit: emiltoacs <[email protected]>

    xah-extend-selection word constituent from syntax table
    
    A slight enhance for the xah-extend-selection function to select word
    based on the word constituent from the current syntax table instead of
    the fixed set of character [-_a-zA-Z0-9]
    
    This allows to select word with special character such as
    téléchargement
---
 xah-fly-keys.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xah-fly-keys.el b/xah-fly-keys.el
index 60d771b363e..752838d67ec 100644
--- a/xah-fly-keys.el
+++ b/xah-fly-keys.el
@@ -2077,11 +2077,11 @@ Version: 2025-11-18"
       (skip-chars-forward " \t\n")
       (setq mark-active t))
 
-     ((looking-at "[-_a-zA-Z0-9]")
+     ((looking-at "[-_[:word:]]")
       (message "%s debug: right is word or symbol" real-this-command)
-      (skip-chars-backward "-_a-zA-Z0-9")
+      (skip-chars-backward "-_[:word:]")
       (push-mark)
-      (skip-chars-forward "-_a-zA-Z0-9")
+      (skip-chars-forward "-_[:word:]")
       (setq mark-active t))
 
      ;; ((and (looking-at "[[:blank:]]")

Reply via email to