diff options
| author | Stefan Monnier | 2014-11-21 13:01:40 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-11-21 13:01:40 -0500 |
| commit | bf642130c1694c4c4cb0b981d3fa3044db6ed5fe (patch) | |
| tree | 2ffc50dd4e3802b9ec1027da82f1498e960a2bca | |
| parent | c39443c1d651bab2eb023f4c38db418c3dc04160 (diff) | |
| download | emacs-bf642130c1694c4c4cb0b981d3fa3044db6ed5fe.tar.gz emacs-bf642130c1694c4c4cb0b981d3fa3044db6ed5fe.zip | |
* lisp/desktop.el (desktop-create-buffer): Use activate-mark to set
`mark-active' (bug#19058).
| -rw-r--r-- | lisp/ChangeLog | 32 | ||||
| -rw-r--r-- | lisp/desktop.el | 4 |
2 files changed, 21 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6bf57b6082b..e174d5969d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,12 @@ | |||
| 1 | 2014-11-21 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * desktop.el (desktop-create-buffer): Use activate-mark to set | ||
| 4 | `mark-active' (bug#19058). | ||
| 5 | |||
| 1 | 2014-11-21 Eric S. Raymond <esr@snark> | 6 | 2014-11-21 Eric S. Raymond <esr@snark> |
| 2 | 7 | ||
| 3 | * vc/vc-src.el (vc-src-state): Fix bug that produced spurious nil state. | 8 | * vc/vc-src.el (vc-src-state): Fix bug that produced spurious |
| 9 | nil state. | ||
| 4 | 10 | ||
| 5 | 2014-11-21 Eli Zaretskii <eliz@gnu.org> | 11 | 2014-11-21 Eli Zaretskii <eliz@gnu.org> |
| 6 | 12 | ||
| @@ -108,8 +114,8 @@ | |||
| 108 | 2014-11-18 Leo Liu <sdl.web@gmail.com> | 114 | 2014-11-18 Leo Liu <sdl.web@gmail.com> |
| 109 | 115 | ||
| 110 | * emacs-lisp/nadvice.el (define-advice): New macro. | 116 | * emacs-lisp/nadvice.el (define-advice): New macro. |
| 111 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add | 117 | * emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): |
| 112 | define-advice. | 118 | Add define-advice. |
| 113 | (lisp-font-lock-keywords-1): Add define-advice. | 119 | (lisp-font-lock-keywords-1): Add define-advice. |
| 114 | 120 | ||
| 115 | 2014-11-18 Daiki Ueno <ueno@gnu.org> | 121 | 2014-11-18 Daiki Ueno <ueno@gnu.org> |
| @@ -188,26 +194,26 @@ | |||
| 188 | immediately marked as obsolete, used to handle deprecated | 194 | immediately marked as obsolete, used to handle deprecated |
| 189 | `tildify-ignored-environments-alist'. | 195 | `tildify-ignored-environments-alist'. |
| 190 | 196 | ||
| 191 | * textmodes/tex-mode.el (tex-common-initialization): Set | 197 | * textmodes/tex-mode.el (tex-common-initialization): |
| 192 | `tildify-space-string' and `tildify-foreach-region-function' | 198 | Set `tildify-space-string' and `tildify-foreach-region-function' |
| 193 | variables in all variants of TeX mode since `tildify-string-alist' | 199 | variables in all variants of TeX mode since `tildify-string-alist' |
| 194 | and `tildify-ignored-environments-alist' are now empty by default. | 200 | and `tildify-ignored-environments-alist' are now empty by default. |
| 195 | 201 | ||
| 196 | * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'. If | 202 | * nxml/nxml-mode.el (nxml-mode): Ditto in `nxml-mode'. |
| 197 | encoding supports it use no-break space instead of character | 203 | If encoding supports it use no-break space instead of character |
| 198 | entity; this changes previous default which used a numeric | 204 | entity; this changes previous default which used a numeric |
| 199 | reference. | 205 | reference. |
| 200 | 206 | ||
| 201 | * textmodes/sgml-mode.el (sgml-mode): ditto in `sgml-mode'. If | 207 | * textmodes/sgml-mode.el (sgml-mode): ditto in `sgml-mode'. |
| 202 | encoding does not support no-break space, use numeric reference; | 208 | If encoding does not support no-break space, use numeric reference; |
| 203 | this changes previous default which used named entity (“ ”) | 209 | this changes previous default which used named entity (“ ”) |
| 204 | in HTML mode. | 210 | in HTML mode. |
| 205 | 211 | ||
| 206 | 2014-11-17 Ulf Jasper <ulf.jasper@web.de> | 212 | 2014-11-17 Ulf Jasper <ulf.jasper@web.de> |
| 207 | 213 | ||
| 208 | Fix bug#5433. | 214 | Fix bug#5433. |
| 209 | * calendar/icalendar.el (icalendar-export-alarms): New | 215 | * calendar/icalendar.el (icalendar-export-alarms): |
| 210 | customizable variable. | 216 | New customizable variable. |
| 211 | (icalendar-export-region): Export alarms as specified in | 217 | (icalendar-export-region): Export alarms as specified in |
| 212 | `icalendar-export-alarms'. | 218 | `icalendar-export-alarms'. |
| 213 | (icalendar--create-ical-alarm, icalendar--do-create-ical-alarm): | 219 | (icalendar--create-ical-alarm, icalendar--do-create-ical-alarm): |
| @@ -2838,8 +2844,8 @@ | |||
| 2838 | (c-typeless-decl-kwds): Append "auto" onto the C++ value. | 2844 | (c-typeless-decl-kwds): Append "auto" onto the C++ value. |
| 2839 | (c-not-decl-init-keywords): Also exclude c-typeof-kwds from value. | 2845 | (c-not-decl-init-keywords): Also exclude c-typeof-kwds from value. |
| 2840 | 2846 | ||
| 2841 | Make ">>" act as double template ender in C++ Mode. Fix | 2847 | Make ">>" act as double template ender in C++ Mode. |
| 2842 | bug#11386. | 2848 | Fix bug#11386. |
| 2843 | * progmodes/cc-langs.el (c->-op-cont-tokens): New lang-const split | 2849 | * progmodes/cc-langs.el (c->-op-cont-tokens): New lang-const split |
| 2844 | off from c->-op-cont-re. | 2850 | off from c->-op-cont-re. |
| 2845 | (c->-op-cont-tokens): Change to use the above. | 2851 | (c->-op-cont-tokens): Change to use the above. |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 360ff48339b..bad0073fbba 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -1413,8 +1413,8 @@ after that many seconds of idle time." | |||
| 1413 | (if (consp desktop-buffer-mark) | 1413 | (if (consp desktop-buffer-mark) |
| 1414 | (progn | 1414 | (progn |
| 1415 | (move-marker (mark-marker) (car desktop-buffer-mark)) | 1415 | (move-marker (mark-marker) (car desktop-buffer-mark)) |
| 1416 | ;; FIXME: Should we call (de)activate-mark instead? | 1416 | (if (car (cdr desktop-buffer-mark)) |
| 1417 | (setq mark-active (car (cdr desktop-buffer-mark)))) | 1417 | (activate-mark 'dont-touch-tmm))) |
| 1418 | (move-marker (mark-marker) desktop-buffer-mark))) | 1418 | (move-marker (mark-marker) desktop-buffer-mark))) |
| 1419 | ;; Never override file system if the file really is read-only marked. | 1419 | ;; Never override file system if the file really is read-only marked. |
| 1420 | (when desktop-buffer-read-only (setq buffer-read-only desktop-buffer-read-only)) | 1420 | (when desktop-buffer-read-only (setq buffer-read-only desktop-buffer-read-only)) |