Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Liljenberg
lyskom-elisp-client
Commits
83997ca7
Commit
83997ca7
authored
Dec 02, 1999
by
David Byers
Browse files
Catch all errors reading user area
Skip newlines between strings in the user area
parent
e8c97a05
Changes
2
Show whitespace changes
Inline
Side-by-side
src/ChangeLog
View file @
83997ca7
1999-12-02 David Byers <davby@sen2.ida.liu.se>
* flags.el (lyskom-read-options-eval-get-holerith): Skip newlines
too.
(lyskom-read-options-eval): Surround everything with a catch-all
error handler or we won't be able to log in if the user area is
broken.
1999-12-01 David Byers <davby@ida.liu.se>
* compatibility.el (decode-coding-string, encode-coding-string):
...
...
src/flags.el
View file @
83997ca7
...
...
@@ -351,6 +351,7 @@ If successful then set the buffer not-modified. Else print a warning."
(
defun
lyskom-read-options-eval
(
text
)
"Handles the call from where we have the text."
(
condition-case
nil
(
if
text
;+++ Other error handler
(
let*
((
lyskom-options-text
(
text->text-mass
text
))
(
pointers
(
lyskom-read-options-eval-get-holerith
t
))
...
...
@@ -435,12 +436,14 @@ If successful then set the buffer not-modified. Else print a warning."
(
while
(
stringp
(
cdr
(
car
(
cdr
pos
))))
(
setq
pos
(
cdr
pos
)))
(
setcdr
pos
nil
))))))
(
error
(
lyskom-message
(
lyskom-get-string
'error-in-options
)
(
lyskom-get-string
'cancelled
))))
(
setq
lyskom-options-done
t
))
(
defun
lyskom-read-options-eval-get-holerith
(
&optional
no-coding
)
(
let
((
coding
(
if
no-coding
'raw-text
lyskom-server-coding-system
)))
(
while
(
string-match
"\\
s-
"
(
substring
lyskom-options-text
0
1
))
(
while
(
string-match
"\\
(\\s-\\|[\n\r]\\)
"
(
substring
lyskom-options-text
0
1
))
(
setq
lyskom-options-text
(
substring
lyskom-options-text
1
)))
;; Read the explicit coding, if any
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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