Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lyskom-elisp-client
lyskom-elisp-client
Commits
9d4aa3e6
Commit
9d4aa3e6
authored
May 05, 1999
by
Per Cederqvist
Browse files
(kom-change-parenthesis): Nytt kommando.
parent
5a9f78e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/commands1.el
View file @
9d4aa3e6
...
...
@@ -1405,6 +1405,33 @@ If you are not member in the conference it will be flagged with an asterisk."
(
lyskom-format-insert
'change-name-nope
name
(
lyskom-get-error-text
lyskom-errno
)
lyskom-errno
))))))
;;; ================================================================
;;; [ndra parentes - Change parenthesis
;;; Author: Per Cederqvist (template stolen from kom-change-name)
(
def-kom-command
kom-change-parenthesis
()
"Change the name of a person or conference."
(
interactive
)
(
let
((
conf-stat
(
lyskom-read-conf-stat
(
lyskom-get-string
'name-to-be-changed
)
'
(
all
)
nil
nil
t
)))
(
if
(
null
conf-stat
)
(
lyskom-insert-string
'no-such-conf-or-pers
)
(
if
(
string-match
"^\\([^(]*\\)(\\(.*\\))$"
(
conf-stat->name
conf-stat
))
(
let*
((
non-paren
(
match-string
1
(
conf-stat->name
conf-stat
)))
(
old-paren
(
match-string
2
(
conf-stat->name
conf-stat
)))
(
paren
(
lyskom-read-string
(
lyskom-get-string
'new-paren
)
old-paren
))
(
name
(
concat
non-paren
"("
paren
")"
)))
(
if
(
blocking-do
'change-name
(
conf-stat->conf-no
conf-stat
)
name
)
(
lyskom-format-insert
'change-name-done
name
(
lyskom-default-button
'conf
conf-stat
))
(
lyskom-format-insert
'change-name-nope
name
(
lyskom-get-error-text
lyskom-errno
)
lyskom-errno
)))
(
lyskom-insert-string
'no-paren-in-name
)))))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment