Commit 2d4fd06d authored by David Byers's avatar David Byers
Browse files

Completing read can now be tweaked to accept numeric references to

conferences and persons even when there is also a matching name.
This should make bellman a little happier.
parent 7ad6ca00
2000-02-08 David Byers <davby@ida.liu.se>
* vars.el.in (kom-complete-numbers-before-names): New variable.
* completing-read.el (lyskom-read-conf-internal): Add the option
to complete numbers before completing names.
2000-01-27 David Byers <davby@ida.liu.se>
* flags.el (lyskom-flag-value-to-string): New function.
......
......@@ -354,7 +354,13 @@ function work as a name-to-conf-stat translator."
login-list
candidate-list)))
(cond ((= (length result-list) 1)
(cond ((and kom-complete-numbers-before-names
specials)
(lyskom-read-conf-lookup-specials string
predicate
login-list
candidate-list))
((= (length result-list) 1)
(car result-list))
((and (> (length result-list) 1)
(lyskom-completing-member string names))
......
......@@ -1068,6 +1068,15 @@ Also see the function \"lyskom-add-button-action\"."
"*If non-nil, show the external recipients to an imported text."
server)
(def-kom-var kom-complete-numbers-before-names t
"*If non-nil, reading conference and user names accepts the special
forms ``m 4711'' or ``p 42'' as numeric references to conference 4711
and person 42 instead of trying to look for an object with a matching
name. If nil, any name matching the input will be preferred to a
numeric reference."
server)
(def-kom-var kom-mercial nil
"*When the user has seen all texts and has reached the view-time prompt,
this string is used as the argument to lyskom-tell-server.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment