emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confusing doc string of list-or-string at point


From: Eli Zaretskii
Subject: Re: Confusing doc string of list-or-string at point
Date: Fri, 24 Sep 2021 10:14:07 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: emacs-devel@gnu.org
> Date: Fri, 24 Sep 2021 09:32:18 +0300
> 
> >> But the same can happen with a list/string enclosed within a defun, or
> >> a word enclosed withing a string or a list.  Do we also need
> >> defun-or-string or list-or-string-or-word or any other combinations?
> >
> > An alternative would be to add a new thing-at-point target 'string'
> > instead of 'list-or-string'.  But since there is no such function as
> > 'up-string' that would work like 'up-list' but only to go out of the
> > enclosing string and not out of a list, so what remains to do is
> > to use 'up-list' with the non-nil arg NO-SYNTAX-CROSSING, therefore
> > the new target 'list-or-string'.
> 
> So now I reverted 'list-or-string', and added 'string' instead.

Thanks, I think this is a cleaner solution.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]