pkgsrc-Bugs archive

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

pkg/59737: Feature request to set word-characters for libedit



>Number:         59737
>Category:       pkg
>Synopsis:       Feature request to set word-characters for libedit
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 29 16:40:00 +0000 2025
>Originator:     Jan Wielemaker
>Release:        http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit
>Organization:
>Environment:
n/a
>Description:
Using emacs mode, words for moving the cursor and deleting are defined by ce__isword() in chared.c.   This is hard defined as iswalnum(p) || wcschr(L"*?_-.[]~=", p) != NULL.   If I test GNU emacs, it only seems to accept alnum and the underscore (which is also the definition of words for libedit's vi word definition in cv__isword()).

Ideally, it would be great of the word characters can be defined in ~/.editrc.  Alternatively, it could be defined by a function set by el_set().   If neither is acceptable, synchronizing the emacs definition with the vi one would be great.
>How-To-Repeat:
n/a
>Fix:
n/a.   I'm happy to help.   I'd first like to see the opinion of the maintainers though.


Home | Main Index | Thread Index | Old Index