]> code.delx.au - gnu-emacs/commitdiff
Merge from emacs-24; up to 117689
authorGlenn Morris <rgm@gnu.org>
Sat, 8 Nov 2014 21:32:10 +0000 (13:32 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 8 Nov 2014 21:32:10 +0000 (13:32 -0800)
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
src/ChangeLog
src/nsterm.m

index ab12e064aaabb4a0ea45b310e2e0bdbf8c763b8f..0b0192a545dd08edafe76d1309a502a1024fc262 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-08  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-report-error):
+       Allow the argument to be a string.  Due to the vague doc,
+       it was already being used this way.
+
 2014-11-08  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-check-cached-permissions): Include hop in
index 7fd72dd770593c9a72224edca6ac7623534fa480..fdb8cc8f39db36d4499f309479250b040904506c 100644 (file)
@@ -1165,10 +1165,13 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
        (byte-compile-warn "%s" msg)))))
 
 (defun byte-compile-report-error (error-info)
-  "Report Lisp error in compilation.  ERROR-INFO is the error data."
+  "Report Lisp error in compilation.
+ERROR-INFO is the error data, in the form of either (ERROR-SYMBOL . DATA)
+or STRING."
   (setq byte-compiler-error-flag t)
   (byte-compile-log-warning
-   (error-message-string error-info)
+   (if (stringp error-info) error-info
+     (error-message-string error-info))
    nil :error))
 \f
 ;;; sanity-checking arglists
index e3f34e27dfcf2130e95868256a981246ebc07a31..82a9b24876c572a19cf9a97e6684fef2099b7f13 100644 (file)
@@ -2,6 +2,8 @@
 
        * nsterm.m (run): Only use non-system event loop if OSX version is
        exactly 10.9 (Bug#18993).
+       (ns_set_vertical_scroll_bar): Don't call bar setPosition: unless
+       needed (Bug#18757).
 
 2014-11-08  Michael Albinus  <michael.albinus@gmx.de>
 
index 216678357e753708bae507298cd2bbf64f916398..318f14acfc8f0242446bc3e1c25ad66a21e463b3 100644 (file)
@@ -3759,6 +3759,7 @@ ns_set_vertical_scroll_bar (struct window *window,
   EmacsScroller *bar;
   int window_y, window_height;
   int top, left, height, width;
+  BOOL update_p = YES;
 
   /* optimization; display engine sends WAY too many of these.. */
   if (!NILP (window->vertical_scroll_bar))
@@ -3773,6 +3774,7 @@ ns_set_vertical_scroll_bar (struct window *window,
             }
           else
             view->scrollbarsNeedingUpdate--;
+          update_p = NO;
         }
     }
 
@@ -3814,6 +3816,7 @@ ns_set_vertical_scroll_bar (struct window *window,
 
       bar = [[EmacsScroller alloc] initFrame: r window: win];
       wset_vertical_scroll_bar (window, make_save_ptr (bar));
+      update_p = YES;
     }
   else
     {
@@ -3916,10 +3919,12 @@ ns_set_horizontal_scroll_bar (struct window *window,
           if (oldRect.origin.x != r.origin.x)
               ns_clear_frame_area (f, left, top, width, height);
           [bar setFrame: r];
+          update_p = YES;
         }
     }
 
-  [bar setPosition: position portion: portion whole: whole];
+  if (update_p)
+    [bar setPosition: position portion: portion whole: whole];
   unblock_input ();
 }