Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ca70fe78
Commit
ca70fe78
authored
Mar 09, 2014
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/desktop.el (desktop-create-buffer): Don't run activate-mark-hook.
Fixes: debbugs:14430
parent
f11352e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
23 deletions
+29
-23
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/desktop.el
lisp/desktop.el
+24
-23
No files found.
lisp/ChangeLog
View file @
ca70fe78
2014-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
* desktop.el (desktop-create-buffer): Don't run activate-mark-hook
(bug#14430).
2014-03-09 Juri Linkov <juri@jurta.org>
* ansi-color.el (ansi-color-names-vector): Copy default colors
...
...
lisp/desktop.el
View file @
ca70fe78
...
...
@@ -491,13 +491,13 @@ Handlers are called with argument list
Furthermore, they may use the following variables:
desktop-file-version
desktop-buffer-major-mode
desktop-buffer-minor-modes
desktop-buffer-point
desktop-buffer-mark
desktop-buffer-read-only
desktop-buffer-locals
`
desktop-file-version
'
`
desktop-buffer-major-mode
'
`
desktop-buffer-minor-modes
'
`
desktop-buffer-point
'
`
desktop-buffer-mark
'
`
desktop-buffer-read-only
'
`
desktop-buffer-locals
'
If a handler returns a buffer, then the saved mode settings
and variable values for that buffer are copied into it.
...
...
@@ -551,15 +551,15 @@ Handlers are called with argument list
Furthermore, they may use the following variables:
desktop-file-version
desktop-buffer-file-name
desktop-buffer-name
desktop-buffer-major-mode
desktop-buffer-minor-modes
desktop-buffer-point
desktop-buffer-mark
desktop-buffer-read-only
desktop-buffer-misc
`
desktop-file-version
'
`
desktop-buffer-file-name
'
`
desktop-buffer-name
'
`
desktop-buffer-major-mode
'
`
desktop-buffer-minor-modes
'
`
desktop-buffer-point
'
`
desktop-buffer-mark
'
`
desktop-buffer-read-only
'
`
desktop-buffer-misc
'
When a handler is called, the buffer has been created and the major mode has
been set, but local variables listed in desktop-buffer-locals has not yet been
...
...
@@ -1382,18 +1382,19 @@ after that many seconds of idle time."
(
when
desktop-buffer-mark
(
if
(
consp
desktop-buffer-mark
)
(
progn
(
set-mark
(
car
desktop-buffer-mark
))
(
move-marker
(
mark-marker
)
(
car
desktop-buffer-mark
))
;; FIXME: Should we call (de)activate-mark instead?
(
setq
mark-active
(
car
(
cdr
desktop-buffer-mark
))))
(
set
-mark
desktop-buffer-mark
)))
(
move
-mark
er
(
mark-marker
)
desktop-buffer-mark
)))
;; Never override file system if the file really is read-only marked.
(
when
desktop-buffer-read-only
(
setq
buffer-read-only
desktop-buffer-read-only
))
(
dolist
(
this
desktop-buffer-locals
)
(
if
(
consp
this
)
;;
a
n entry of this form `(symbol . value)'
;;
A
n entry of this form `(symbol . value)'
.
(
progn
(
make-local-variable
(
car
this
))
(
set
(
car
this
)
(
cdr
this
)))
;;
a
n entry of the form `symbol'
;;
A
n entry of the form `symbol'
.
(
make-local-variable
this
)
(
makunbound
this
))))))))
...
...
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