aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Sainty2025-06-01 14:59:38 +1200
committerPhil Sainty2026-01-24 02:03:31 +1300
commit0f1963b2cc0ebda15b3581eec9bfef5215e0c6b6 (patch)
treee10954df0debbbfd4e5ba6af19dec2548d17acae /etc
parentb4a5948d3330f7ca02c61075eed94b467645ea83 (diff)
downloademacs-scratch/string-common-prefix.tar.gz
emacs-scratch/string-common-prefix.zip
Add function `string-common-prefix'scratch/string-common-prefix
* lisp/subr.el: (string-common-prefix): New function. * etc/NEWS: * doc/lispref/strings.texi: * doc/lispref/minibuf.texi: * lisp/emacs-lisp/shortdoc.el: Documentation.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2cb1978738e..256c8ab139d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3879,6 +3879,12 @@ It offers a more concise way to create a completion table with metadata.
3879** 'all-completions' and 'unintern' no longer support old calling conventions. 3879** 'all-completions' and 'unintern' no longer support old calling conventions.
3880 3880
3881+++ 3881+++
3882** New function 'string-common-prefix'.
3883Return the longest common prefix from a collection of strings. This
3884function is similar to 'try-completion', but it returns a string in all
3885cases.
3886
3887+++
3882** New symbol property 'find-function-type-alist' used by 'find-function' etc. 3888** New symbol property 'find-function-type-alist' used by 'find-function' etc.
3883Macros that define an object in a way that makes the object's name and 3889Macros that define an object in a way that makes the object's name and
3884the macro call site defining the object hard to associate can add an 3890the macro call site defining the object hard to associate can add an