mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
use view-mode on score file for ease of scrolling and quitting
This commit is contained in:
parent
c555d10d0f
commit
e10e314e2b
1 changed files with 3 additions and 1 deletions
|
|
@ -663,6 +663,7 @@ FILE is created there."
|
|||
(revert-buffer nil t nil)
|
||||
(display-buffer buf))
|
||||
(find-file-read-only target))
|
||||
(view-mode)
|
||||
(goto-char (point-min))
|
||||
(search-forward (concat (int-to-string score)
|
||||
" " (user-login-name) " "
|
||||
|
|
@ -691,7 +692,8 @@ FILE is created there."
|
|||
(forward-line gamegrid-score-file-length)
|
||||
(delete-region (point) (point-max))
|
||||
(setq buffer-read-only t)
|
||||
(save-buffer)))
|
||||
(save-buffer)
|
||||
(view-mode)))
|
||||
|
||||
|
||||
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue