1. 03 Jun, 2011 15 commits
    • Paul Eggert's avatar
      4751effb
    • Paul Eggert's avatar
      * xselect.c: Include <limits.h>. · aa76b908
      Paul Eggert authored
      aa76b908
    • Paul Eggert's avatar
      Document wide integers better. · 2d365993
      Paul Eggert authored
      * files.texi (File Attributes):
      ino_t values no longer map to anything larger than a single cons.
      2d365993
    • Paul Eggert's avatar
      Check for overflow when converting integer to cons and back. · 201f31ae
      Paul Eggert authored
      * charset.c (Fdefine_charset_internal, Fdecode_char):
      Use cons_to_unsigned to catch overflow.
      (Fencode_char): Use INTEGER_TO_CONS.
      * composite.h (LGLYPH_CODE): Use cons_to_unsigned.
      (LGLYPH_SET_CODE): Use INTEGER_TO_CONS.
      * data.c (long_to_cons, cons_to_long): Remove.
      (cons_to_unsigned, cons_to_signed): New functions.
      These signal an error for invalid or out-of-range values.
      * dired.c (Ffile_attributes): Use INTEGER_TO_CONS.
      * fileio.c (Fset_visited_file_modtime): Use CONS_TO_INTEGER.
      * font.c (Ffont_variation_glyphs):
      * fontset.c (Finternal_char_font): Use INTEGER_TO_CONS.
      * lisp.h (INTEGER_TO_CONS, CONS_TO_INTEGER): New macros.
      (cons_to_signed, cons_to_unsigned): New decls.
      (long_to_cons, cons_to_long): Remove decls.
      * undo.c (record_first_change): Use INTEGER_TO_CONS.
      (Fprimitive_undo): Use CONS_TO_INTEGER.
      * xfns.c (Fx_window_property): Likewise.
      * xselect.c (x_own_selection, selection_data_to_lisp_data):
      Use INTEGER_TO_CONS.
      (x_handle_selection_request, x_handle_selection_clear)
      (x_get_foreign_selection, Fx_disown_selection_internal)
      (Fx_get_atom_name, x_send_client_event): Use CONS_TO_INTEGER.
      (lisp_data_to_selection_data): Use cons_to_unsigned.
      (x_fill_property_data): Use cons_to_signed.  Report values out of range.
      201f31ae
    • Paul Eggert's avatar
      Document wide integers better. · be14b9ab
      Paul Eggert authored
      * files.texi (File Attributes): Document ino_t values better.
      * numbers.texi (Integer Basics, Integer Basics, Arithmetic Operations):
      (Bitwise Operations):
      * objects.texi (Integer Type): Integers are typically 62 bits now.
      * os.texi (Time Conversion): Document time_t values better.
      be14b9ab
    • Paul Eggert's avatar
      Document wide integers better. · b047e7ac
      Paul Eggert authored
      * buffers.texi (Buffers):
      * files.texi (Visiting): Default buffer maximum is now 2 EiB typically.
      b047e7ac
    • Paul Eggert's avatar
      Fix doc for machines with wider system times such as time_t. · da908fa9
      Paul Eggert authored
      On such machines, it's now safe to assume that EMACS_INT is as
      wide as the system times, so that shifting right by 16 will
      result in an integer that always fits in EMACS_INT.
      * dired.c (Ffile_attributes): Document large inode number handling.
      * termhooks.h: Fix comment for large time stamp handling.
      da908fa9
    • Paul Eggert's avatar
      * NEWS: 62-bit integers are typical now. · 3c9d8b1e
      Paul Eggert authored
      3c9d8b1e
    • Paul Eggert's avatar
      b447c159
    • Paul Eggert's avatar
      * xselect.c: Use 'unsigned' more consistently. · 9ca05932
      Paul Eggert authored
      (selection_data_to_lisp_data, lisp_data_to_selection_data):
      Use 'unsigned' consistently when computing sizes of unsigned objects.
      9ca05932
    • Paul Eggert's avatar
      * fileio.c (Fverify_visited_file_modtime): Avoid time overflow · e2f51f38
      Paul Eggert authored
      if b->modtime has its maximal value.
      e2f51f38
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * lisp.h: Include <intprops.h>, as it'll useful in later changes. · 810ef6bc
      Paul Eggert authored
      * character.c, data.c, editfns.c, insdel.c, intervals.c:
      Don't include <intprops.h>, since lisp.h does.
      810ef6bc
    • Paul Eggert's avatar
      Don't assume time_t can fit into int. · 4c97dba5
      Paul Eggert authored
      * buffer.h (struct buffer.modtime): Now time_t, not int.
      * fileio.c (Fvisited_file_modtime): No need for time_t cast now.
      * undo.c (Fprimitive_undo): Use time_t, not int, for time_t value.
      4c97dba5
    • Paul Eggert's avatar
      Minor fixes for signed vs unsigned integers. · 39bc618a
      Paul Eggert authored
      * character.h (MAYBE_UNIFY_CHAR):
      * charset.c (maybe_unify_char):
      * keyboard.c (read_char, reorder_modifiers):
      XINT -> XFASTINT, since the integer must be nonnegative.
      * ftfont.c (ftfont_spec_pattern):
      * keymap.c (access_keymap, silly_event_symbol_error):
      XUINT -> XFASTINT, since the integer must be nonnegative.
      (Fsingle_key_description, preferred_sequence_p): XUINT -> XINT,
      since it makes no difference and we prefer signed.
      * keyboard.c (record_char): Use XUINT when all the neighbors do.
      (access_keymap): NATNUMP -> INTEGERP, since the integer must be
      nonnegative.
      39bc618a
  2. 02 Jun, 2011 18 commits
  3. 01 Jun, 2011 7 commits
    • Ted Zlatanov's avatar
      gnus-registry.el (gnus-registry-remove-ignored): New function to remove... · 8d009f4a
      Ted Zlatanov authored
      gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore.
      8d009f4a
    • Dan Nicolaescu's avatar
      Make it possible to build with GCC-4.6+ -O2 -flto. · 698d32e2
      Dan Nicolaescu authored
      * src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE.
      698d32e2
    • Stefan Monnier's avatar
      Silence various byte-compiler warnings. · 2403c841
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
      `access-type' and new obsolescence format.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
      new format.
      (byte-compile-check-variable): New `access-type' argument.
      Only warn if the access-type is obsolete.
      (byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
      (byte-compile-variable-set): Adjust callers.
      * lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
      * lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
      setting it as obsolete.
      * lisp/simple.el (minibuffer-completing-symbol):
      * lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
      access as obsolete.
      * lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
      obsolete yet.
      * lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
      code referring to obsolete var.
      (quail-choose-completion-string): Remove.
      * lisp/server.el (server-clients-with, server-kill-buffer-query-function)
      (server-kill-emacs-query-function): Silence "unused `proc'" warnings.
      * lisp/proced.el (proced-send-signal):
      * lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
      Replace completion-annotate-function with completion-extra-properties.
      2403c841
    • Glenn Morris's avatar
      Add :version tags for url-queue.el. · 3b7d5980
      Glenn Morris authored
      * lisp/url/url-queue.el (url-queue-parallel-processes, url-queue-timeout):
      Add :version tag for options that will be new in 24.1.
      3b7d5980
    • Dan Nicolaescu's avatar
    • Stefan Monnier's avatar
      * lisp/simple.el (goto-line): Use read-number. · fb5b2591
      Stefan Monnier authored
      (overriding-map-is-bound): Remove.
      (saved-overriding-map): Change default.
      (save&set-overriding-map): Rename from ensure-overriding-map-is-bound;
      Take the map as argument.
      (universal-argument, negative-argument, digit-argument): Use it.
      (restore-overriding-map): Adjust.
      (do-auto-fill): Use fill-forward-paragraph.
      (keyboard-quit): Don't signal an error when debug-on-quit is non-nil.
      fb5b2591
    • Stefan Monnier's avatar
      * lisp/minibuffer.el (minibuffer-inactive-mode-map): New var. · fd6fa53f
      Stefan Monnier authored
      (minibuffer-inactive-mode): New major mode.
      * src/minibuf.c (get_minibuffer, read_minibuf_unwind): Call it.
      * lisp/mouse.el (mouse-drag-region): Remove the "mouse-1 pops up
      the *Messages* buffer" hack.
      (mouse-popup-menubar): Don't burp if the event is a normal key.
      fd6fa53f