From: Richard M. Stallman Date: Sat, 25 Apr 1998 23:07:46 +0000 (+0000) Subject: (FRAME_CURSOR_X_LIMIT): New macro. X-Git-Tag: emacs-20.3~1314 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ff3479544d6a913f12a1a0a1dbf41f7fde5ff1a;p=emacs.git (FRAME_CURSOR_X_LIMIT): New macro. --- diff --git a/src/frame.h b/src/frame.h index ae2441f2c24..2afefa2907f 100644 --- a/src/frame.h +++ b/src/frame.h @@ -402,6 +402,9 @@ typedef struct frame *FRAME_PTR; #define FRAME_WINDOW_WIDTH_ARG(f, width) \ ((width) + FRAME_SCROLL_BAR_WIDTH (f)) #define FRAME_WINDOW_WIDTH(f) ((f)->window_width) +/* Maximum + 1 legitimate value for FRAME_CURSOR_X. */ +#define FRAME_CURSOR_X_LIMIT(f) \ + (FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f)) #define SET_FRAME_WIDTH(f,val) ((f)->width = (val), (f)->window_width = FRAME_WINDOW_WIDTH_ARG (f, (f)->width)) #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars) #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars)