(calc-get-register): Fix problem when the Calc register is empty.
This commit is contained in:
parent
b78a11dc14
commit
2e4daa0e05
1 changed files with 3 additions and 3 deletions
|
|
@ -156,9 +156,9 @@ in which case either return the contents of the Emacs register (if it is
|
|||
text) or `nil'."
|
||||
(let ((cval (cdr (assq reg calc-register-alist)))
|
||||
(val (cdr (assq reg register-alist))))
|
||||
(if (and (stringp (car cval))
|
||||
(stringp val))
|
||||
(if (string= (car cval) val)
|
||||
(if (stringp val)
|
||||
(if (and (stringp (car cval))
|
||||
(string= (car cval) val))
|
||||
(cdr cval)
|
||||
val))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue