Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7273226d
Commit
7273226d
authored
Oct 21, 1998
by
Kenichi Handa
Browse files
(tibetan-pre-write-conversion): Use with-temp-buffer.
parent
ada51178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
lisp/language/tibet-util.el
lisp/language/tibet-util.el
+7
-9
No files found.
lisp/language/tibet-util.el
View file @
7273226d
...
@@ -446,15 +446,13 @@ See also docstring of the function tibetan-compose-region."
...
@@ -446,15 +446,13 @@ See also docstring of the function tibetan-compose-region."
;;;###autoload
;;;###autoload
(
defun
tibetan-pre-write-conversion
(
from
to
)
(
defun
tibetan-pre-write-conversion
(
from
to
)
(
setq
tibetan-decomposed-temp
tibetan-decomposed
)
(
setq
tibetan-decomposed-temp
tibetan-decomposed
)
(let ((old-buf (current-buffer))
(
let
((
old-buf
(
current-buffer
)))
(work-buf (get-buffer-create "
*tibetan-work*
"
)))
(
with-temp-buffer
(
set-buffer
work-buf
)
(
if
(
stringp
from
)
(
erase-buffer
)
(
insert
from
)
(
if
(
stringp
from
)
(
insert-buffer-substring
old-buf
from
to
))
(
insert
from
)
(
if
(
not
tibetan-decomposed-temp
)
(
insert-buffer-substring
old-buf
from
to
))
(
tibetan-decompose-region
(
point-min
)
(
point-max
))))
(
if
(
not
tibetan-decomposed-temp
)
(
tibetan-decompose-region
(
point-min
)
(
point-max
)))
;; Should return nil as annotations.
;; Should return nil as annotations.
nil
))
nil
))
...
...
Write
Preview
Markdown
is supported
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