aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-11-08 13:32:10 -0800
committerGlenn Morris2014-11-08 13:32:10 -0800
commit089c6aab18ea8986bfc02ef3e65500b589e7afbe (patch)
treee9eb9948f92edb14d493aac970e5f82dc8ac306d
parente7e61abaa9de9a7e8485d1fc52a5aa6ce112620e (diff)
parent7d8205619a95e44ec5c4d589c538c6616e64483b (diff)
downloademacs-089c6aab18ea8986bfc02ef3e65500b589e7afbe.tar.gz
emacs-089c6aab18ea8986bfc02ef3e65500b589e7afbe.zip
Merge from emacs-24; up to 117689
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
-rw-r--r--src/ChangeLog2
-rw-r--r--src/nsterm.m7
4 files changed, 19 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ab12e064aaa..0b0192a545d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-11-08 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/bytecomp.el (byte-compile-report-error):
4 Allow the argument to be a string. Due to the vague doc,
5 it was already being used this way.
6
12014-11-08 Michael Albinus <michael.albinus@gmx.de> 72014-11-08 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * net/tramp.el (tramp-check-cached-permissions): Include hop in 9 * net/tramp.el (tramp-check-cached-permissions): Include hop in
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 7fd72dd7705..fdb8cc8f39d 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1165,10 +1165,13 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
1165 (byte-compile-warn "%s" msg))))) 1165 (byte-compile-warn "%s" msg)))))
1166 1166
1167(defun byte-compile-report-error (error-info) 1167(defun byte-compile-report-error (error-info)
1168 "Report Lisp error in compilation. ERROR-INFO is the error data." 1168 "Report Lisp error in compilation.
1169ERROR-INFO is the error data, in the form of either (ERROR-SYMBOL . DATA)
1170or STRING."
1169 (setq byte-compiler-error-flag t) 1171 (setq byte-compiler-error-flag t)
1170 (byte-compile-log-warning 1172 (byte-compile-log-warning
1171 (error-message-string error-info) 1173 (if (stringp error-info) error-info
1174 (error-message-string error-info))
1172 nil :error)) 1175 nil :error))
1173 1176
1174;;; sanity-checking arglists 1177;;; sanity-checking arglists
diff --git a/src/ChangeLog b/src/ChangeLog
index e3f34e27dfc..82a9b24876c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * nsterm.m (run): Only use non-system event loop if OSX version is 3 * nsterm.m (run): Only use non-system event loop if OSX version is
4 exactly 10.9 (Bug#18993). 4 exactly 10.9 (Bug#18993).
5 (ns_set_vertical_scroll_bar): Don't call bar setPosition: unless
6 needed (Bug#18757).
5 7
62014-11-08 Michael Albinus <michael.albinus@gmx.de> 82014-11-08 Michael Albinus <michael.albinus@gmx.de>
7 9
diff --git a/src/nsterm.m b/src/nsterm.m
index 216678357e7..318f14acfc8 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3759,6 +3759,7 @@ ns_set_vertical_scroll_bar (struct window *window,
3759 EmacsScroller *bar; 3759 EmacsScroller *bar;
3760 int window_y, window_height; 3760 int window_y, window_height;
3761 int top, left, height, width; 3761 int top, left, height, width;
3762 BOOL update_p = YES;
3762 3763
3763 /* optimization; display engine sends WAY too many of these.. */ 3764 /* optimization; display engine sends WAY too many of these.. */
3764 if (!NILP (window->vertical_scroll_bar)) 3765 if (!NILP (window->vertical_scroll_bar))
@@ -3773,6 +3774,7 @@ ns_set_vertical_scroll_bar (struct window *window,
3773 } 3774 }
3774 else 3775 else
3775 view->scrollbarsNeedingUpdate--; 3776 view->scrollbarsNeedingUpdate--;
3777 update_p = NO;
3776 } 3778 }
3777 } 3779 }
3778 3780
@@ -3814,6 +3816,7 @@ ns_set_vertical_scroll_bar (struct window *window,
3814 3816
3815 bar = [[EmacsScroller alloc] initFrame: r window: win]; 3817 bar = [[EmacsScroller alloc] initFrame: r window: win];
3816 wset_vertical_scroll_bar (window, make_save_ptr (bar)); 3818 wset_vertical_scroll_bar (window, make_save_ptr (bar));
3819 update_p = YES;
3817 } 3820 }
3818 else 3821 else
3819 { 3822 {
@@ -3916,10 +3919,12 @@ ns_set_horizontal_scroll_bar (struct window *window,
3916 if (oldRect.origin.x != r.origin.x) 3919 if (oldRect.origin.x != r.origin.x)
3917 ns_clear_frame_area (f, left, top, width, height); 3920 ns_clear_frame_area (f, left, top, width, height);
3918 [bar setFrame: r]; 3921 [bar setFrame: r];
3922 update_p = YES;
3919 } 3923 }
3920 } 3924 }
3921 3925
3922 [bar setPosition: position portion: portion whole: whole]; 3926 if (update_p)
3927 [bar setPosition: position portion: portion whole: whole];
3923 unblock_input (); 3928 unblock_input ();
3924} 3929}
3925 3930