aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/subr.el3
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4e634ae460..687dabb2b94 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-01-02 Juanma Barranquero <lekktu@gmail.com>
2
3 * subr.el (momentary-string-display): After moving point, set POS
4 variable to it to avoid later errors once the buffer is modified.
5 Doc fix.
6
12007-01-02 Alan Mackenzie <acm@muc.de> 72007-01-02 Alan Mackenzie <acm@muc.de>
2 8
3 * progmodes/cc-cmds.el (c-mask-paragraph): In a block comment, 9 * progmodes/cc-cmds.el (c-mask-paragraph): In a block comment,
@@ -7,13 +13,13 @@
7 13
8 * wid-edit.el (widget-choose): Avoid ugly error for function keys. 14 * wid-edit.el (widget-choose): Avoid ugly error for function keys.
9 15
10 * progmodes/cfengine.el (cfengine-font-lock-syntactic-keywords): 16 * progmodes/cfengine.el (cfengine-font-lock-syntactic-keywords):
11 Fix format of value. 17 Fix format of value.
12 18
13 * cus-edit.el (customize-unsaved): Renamed from customize-customized. 19 * cus-edit.el (customize-unsaved): Renamed from customize-customized.
14 Change messages accordingly. 20 Change messages accordingly.
15 (customize-customized): Now alias. 21 (customize-customized): Now alias.
16 22
172007-01-02 Juanma Barranquero <lekktu@gmail.com> 232007-01-02 Juanma Barranquero <lekktu@gmail.com>
18 24
19 * files.el (version-control): Doc fix. 25 * files.el (version-control): Doc fix.
@@ -2317,8 +2323,8 @@
2317 2323
23182006-10-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 23242006-10-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2319 2325
2320 * select.el (ccl-check-utf-8, string-utf-8-p): New functions 2326 * select.el (ccl-check-utf-8, string-utf-8-p): New functions (by
2321 (by Kenichi Handa). 2327 Kenichi Handa).
2322 (xselect-convert-to-string): Decline requests for UTF8_STRING if 2328 (xselect-convert-to-string): Decline requests for UTF8_STRING if
2323 the selection is not UTF-8. 2329 the selection is not UTF-8.
2324 2330
diff --git a/lisp/subr.el b/lisp/subr.el
index 086163cca72..c98e14b6334 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1887,6 +1887,7 @@ menu bar menus and the frame title."
1887(defun momentary-string-display (string pos &optional exit-char message) 1887(defun momentary-string-display (string pos &optional exit-char message)
1888 "Momentarily display STRING in the buffer at POS. 1888 "Momentarily display STRING in the buffer at POS.
1889Display remains until next event is input. 1889Display remains until next event is input.
1890If POS is a marker, only its position is used; its buffer is ignored.
1890Optional third arg EXIT-CHAR can be a character, event or event 1891Optional third arg EXIT-CHAR can be a character, event or event
1891description list. EXIT-CHAR defaults to SPC. If the input is 1892description list. EXIT-CHAR defaults to SPC. If the input is
1892EXIT-CHAR it is swallowed; otherwise it is then available as 1893EXIT-CHAR it is swallowed; otherwise it is then available as
@@ -1904,6 +1905,8 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
1904 (progn 1905 (progn
1905 (save-excursion 1906 (save-excursion
1906 (goto-char pos) 1907 (goto-char pos)
1908 ;; To avoid trouble with out-of-bounds position
1909 (setq pos (point))
1907 ;; defeat file locking... don't try this at home, kids! 1910 ;; defeat file locking... don't try this at home, kids!
1908 (setq buffer-file-name nil) 1911 (setq buffer-file-name nil)
1909 (insert-before-markers string) 1912 (insert-before-markers string)