]> git.eshelyaron.com Git - emacs.git/commit
New thing-at-point target 'list-or-string' used in context-menu-region
authorJuri Linkov <juri@linkov.net>
Thu, 23 Sep 2021 16:32:36 +0000 (19:32 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 23 Sep 2021 16:32:36 +0000 (19:32 +0300)
commit5d96fad27863497a427c80550070e435a4c9e0d9
treed696ef623a63d9891f91b3b58b453afda7342205
parentda50b7ec133eeb7cdcdb56ade5ad7d2f2c337f6a
New thing-at-point target 'list-or-string' used in context-menu-region

* lisp/mouse.el (context-menu-region): Rearrange the order to
All>Defun>List>Line>Symbol.  Show title either "List" or "String"
depending on syntax-ppss, then use thing 'list-or-string' (bug#9054).

* lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point): Add optional
args 'escape-strings' and 'no-syntax-crossing' like in 'up-list'.
(list-or-string): New target 'list-or-string'.
(thing-at-point-bounds-of-list-or-string-at-point): New function.
etc/NEWS
lisp/mouse.el
lisp/thingatpt.el