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
58af3a0a
Commit
58af3a0a
authored
Aug 30, 1994
by
Richard M. Stallman
Browse files
(exit-calendar): Don't restore window config.
(calendar): Don't save one.
parent
7e846b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
lisp/calendar/calendar.el
lisp/calendar/calendar.el
+10
-4
No files found.
lisp/calendar/calendar.el
View file @
58af3a0a
...
...
@@ -1143,7 +1143,7 @@ to be replaced by asterisks to highlight it whenever it is in the window."
(
interactive
"P"
)
(
set-buffer
(
get-buffer-create
calendar-buffer
))
(
calendar-mode
)
(
setq
calendar-window-configuration
(
current-window-configuration
))
;;;
(setq calendar-window-configuration (current-window-configuration))
(
let*
((
completion-ignore-case
t
)
(
pop-up-windows
t
)
(
split-height-threshold
1000
)
...
...
@@ -1832,21 +1832,27 @@ concatenated and the result truncated."
calendar-mode-line-format
?
(
frame-width
))))))
(
defun
exit-calendar
()
"
Get out of
the calendar window and bury
i
t and related buffers."
"
Delete
the calendar window
,
and bury t
he calendar
and related buffers."
(
interactive
)
(
let
((
diary-buffer
(
get-file-buffer
diary-file
))
(
d-buffer
(
get-buffer
fancy-diary-buffer
))
(
h-buffer
(
get-buffer
holiday-buffer
)))
(
if
(
not
diary-buffer
)
(
progn
(
set-window-configuration
calendar-window-configuration
)
;; Restoring the configuration is undesirable because
;; it restores the value of point in other windows.
;;; (set-window-configuration calendar-window-configuration)
(
or
(
one-window-p
t
)
(
delete-window
))
(
bury-buffer
calendar-buffer
)
(
if
d-buffer
(
bury-buffer
d-buffer
))
(
if
h-buffer
(
bury-buffer
h-buffer
)))
(
if
(
or
(
not
(
buffer-modified-p
diary-buffer
))
(
yes-or-no-p
"Diary modified; do you really want to exit the calendar? "
))
(
progn
(
set-window-configuration
calendar-window-configuration
)
;;; (set-window-configuration calendar-window-configuration)
(
or
(
one-window-p
t
)
(
delete-window
))
(
bury-buffer
calendar-buffer
)
(
if
d-buffer
(
bury-buffer
d-buffer
))
(
if
h-buffer
(
bury-buffer
h-buffer
))
...
...
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