- 14 May, 2011 1 commit
-
-
Paul Eggert authored
* nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time for UI timestamps, instead of unsigned long. * w32gui.h (Time): Define by including "systime.h" rather than by declaring it ourselves. (Bug#8664)
-
- 13 May, 2011 4 commits
-
-
Paul Eggert authored
-
Paul Eggert authored
For example, without this change, (format "%2147483648d" 1) dumps core on x86-64 GNU/Linux. Use EMACS_INT, not size_t, for sizes, since we prefer using signed values, and EMACS_INT will be big enough soon, even on 32-bit hosts. Also, prefer EMACS_INT to int for sizes. Don't assume that pI is either "l" or ""; it might be "ll" or "I64". Check for width and precision greater than INT_MAX, as this can make sprintf go kaflooey. (Bug#8668)
-
Paul Eggert authored
-
Paul Eggert authored
* image.c (clear_image_cache): Likewise.
-
- 12 May, 2011 10 commits
-
-
Paul Eggert authored
-
Paul Eggert authored
Before, the code sometimes used 'Time', sometimes 'unsigned long', and sometimes 'EMACS_UINT', to represent these timestamps. This change causes it to use 'Time' uniformly, as that's what X uses. This makes the code easier to follow, and makes it easier to catch integer overflow bugs such as Bug#8664. * frame.c (Fmouse_position, Fmouse_pixel_position): Use Time, not unsigned long, for user-interface timestamps. * keyboard.c (last_event_timestamp, kbd_buffer_get_event): Likewise. (button_down_time, make_lispy_position, make_lispy_movement): Likewise. * keyboard.h (last_event_timestamp): Likewise. * menu.c (Fx_popup_menu) [!HAVE_X_WINDOWS]: Likewise. * menu.h (xmenu_show): Likewise. * term.c (term_mouse_position): Likewise. * termhooks.h (struct input_event.timestamp): Likewise. (struct terminal.mouse_position_hook): Likewise. * xmenu.c (create_and_show_popup_menu, xmenu_show): Likewise. * xterm.c (XTmouse_position, x_scroll_bar_report_motion): Likewise. * systime.h (Time): New decl. Pull it in from <X11/X.h> if HAVE_X_WINDOWS, otherwise define it as unsigned long, which is what it was before. * menu.h, termhooks.h: Include "systime.h", for Time.
-
Paul Eggert authored
-
Paul Eggert authored
Don't assume that the difference between two unsigned long values can fit into an integer. At this point, we know button_down_time <= event->timestamp, so the difference must be nonnegative, so there's no need to cast the result if double-click-time is nonnegative, as it should be; check that it's nonnegative, just in case. This bug is triggered when events are more than 2**31 ms apart (about 25 days).
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
instead of EMACS_INT, since it always fits in int.
-
Paul Eggert authored
that always fit in int. Use a sentinel instead of a counter, to avoid a temp and to allay GCC's concerns about possible int overflow.
-
Paul Eggert authored
-
Paul Eggert authored
-
- 11 May, 2011 3 commits
-
-
Paul Eggert authored
Before, the code was not consistent. These values cannot exceed 2**31 - 1 so there's no need to make them unsigned. (x_x_to_emacs_modifiers): Accept int and return EMACS_INT. (x_emacs_to_x_modifiers): Accept EMACS_INT and return int. (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers as modifiers. * xterm.h (x_x_to_emacs_modifiers): Adjust to signature change.
-
Paul Eggert authored
(XUINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_UINT. Otherwise, GCC 4.6.0 warns about printf (pI, XINT (...)), presumably because the widths might not match.
-
Paul Eggert authored
-
- 10 May, 2011 12 commits
-
-
Ted Zlatanov authored
registry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper methods for registry pruning. (registry-prune): Use them. Make the sort function optional.
-
Leo Liu authored
-
U. Ser authored
-
Julien Danjou authored
-
Juanma Barranquero authored
-
Glenn Morris authored
-
Leo Liu authored
See also the discussion thread in: http://thread.gmane.org/gmane.emacs.devel/139221
-
Leo Liu authored
-
Katsumi Yamaoka authored
gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display.
-
Katsumi Yamaoka authored
(shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it. (shr-put-image): Return scaled image. gnus-art.el (gnus-shr-put-image): New function. (gnus-article-prepare-display): Bind shr-put-image-function to it. gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.
-
Glenn Morris authored
* lisp/files.el (hack-one-local-variable-eval-safep): Consider "eval: (foo-mode)" to be safe. * doc/emacs/custom.texi (Specifying File Variables): Deprecate using mode: for minor modes. * etc/NEWS: Mention this. * lisp/doc-view.el, lisp/net/soap-client.el: Change "mode:" minor-mode file local variables to use "eval:".
-
Glenn Morris authored
* lisp/calendar/diary-lib.el (diary-list-entries-hook) (diary-mark-entries-hook, diary-nongregorian-listing-hook) (diary-nongregorian-marking-hook, diary-list-entries) (diary-include-other-diary-files, diary-mark-entries) (diary-mark-included-diary-files): Doc fixes.
-
- 09 May, 2011 10 commits
-
-
Juanma Barranquero authored
-
Juri Linkov authored
Convert to ERT.
-
Ted Zlatanov authored
(registry-insert): Use it. Fix logic here too. gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t. (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.
-
Chong Yidong authored
* progmodes/compile.el (compilation-start): Run compilation-filter-hook for the async case too. (compilation-filter-hook): Doc fix.
-
Stefan Monnier authored
-
Deniz Dogan authored
-
Deniz Dogan authored
comment.
-
Juanma Barranquero authored
* misc.el (list-dynamic-libraries--loaded-only-p): New variable. (list-dynamic-libraries--refresh): New function. (list-dynamic-libraries): New command.
-
Eli Zaretskii authored
nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler.
-
Andreas Schwab authored
-