1. 20 Nov, 2016 1 commit
  2. 18 Nov, 2016 1 commit
    • Eli Zaretskii's avatar
      Improve documentation of functions that accept time values · 36bafc9c
      Eli Zaretskii authored
      * doc/lispref/os.texi (Time Calculations): Mention the meaning of
      'nil' or a scalar number as the time-value argument.  Add a
      cross-reference to 'float-time' for computing a time difference as
      a scalar number of seconds.
      
      * src/editfns.c (Fformat_time_string, Ftime_less_p)
      (Ftime_subtract, Ftime_add, Fdecode_time, Fcurrent_time_string)
      (Fcurrent_time_zone): Mention in the doc strings the meaning of
      nil argument and the fact that a time value can be a scalar number
      of seconds since the epoch.
      (Ftime_subtract): Mention 'float-time'.
      36bafc9c
  3. 17 Oct, 2016 2 commits
  4. 03 Oct, 2016 1 commit
  5. 30 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Limit <config.h>’s includes · f4eb8900
      Paul Eggert authored
      This follows up on recent problems with the fact that config.h
      includes stdlib.h etc.; some files need to include stdlib.h later.
      config.h generally should limit itself to includes that are
      universally safe; outside of MS-Windows, only stdbool.h makes
      the cut among the files currently included.  So, move the
      other includes to just the files that need them (Bug#24506).
      * configure.ac (config_opsysfile): Remove, as this generic hook
      is no longer needed.
      * lib-src/etags.c, src/unexmacosx.c, src/w32.c, src/w32notify.c:
      * src/w32proc.c (_GNU_SOURCE):
      Remove, as it’s OK for config.h to do this now.
      * src/conf_post.h: Include <ms-w32.h>, instead of the generic
      config_opsysfile, for simplicity as this old way of configuring is
      now done only for the MS-Windows port.  Do not include <ms-w32.h>
      if DEFER_MS_W32_H, for the benefit of the few files that want its
      effects later.  Do not include <alloca.h>, <string.h>, or
      <stdlib.h>.  Other files modified to include these headers as
      needed, or to not include headers that are no longer needed.
      * src/lisp.h: Include <alloca.h> and <string.h> here, since
      some of the inline functions need them.
      * src/regex.c: Include <alloca.h> if not emacs.  (If emacs,
      we can rely on SAFE_ALLOCA.)  There is no longer any need to
      worry about HAVE_ALLOCA_H.
      * src/unexmacosx.c: Rely on config.h not including stdlib.h.
      * src/w32.c, src/w32notify.c, src/w32proc.c (DEFER_MS_W32_H):
      Define before including <config.h> first, and include <ms-w32.h>
      after the troublesome headers.
      f4eb8900
  6. 24 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Improve integer overflow handling a bit · b3e1b382
      Paul Eggert authored
      * src/charset.c (read_hex): Use INT_LEFT_SHIFT_OVERFLOW for clarity.
      The machine code is the same on my platform.
      * src/doprnt.c (doprnt):
      * src/emacs-module.c (module_funcall):
      * src/font.c (font_intern_prop):
      * src/keyboard.c (Frecursion_depth):
      * src/lread.c (read1):
      Use WRAPV macros instead of checking overflow by hand.
      * src/editfns.c (hi_time, time_arith, decode_time_components):
      * src/emacs-module.c (Fmodule_load):
      Simplify by using FIXNUM_OVERFLOW_P.
      * src/emacs-module.c: Include intprops.h.
      * src/xdisp.c (percent99): New function.
      (decode_mode_spec): Use it to simplify overflow avoidance and
      formatting of %p and %P.
      b3e1b382
  7. 23 Sep, 2016 1 commit
  8. 16 Sep, 2016 1 commit
  9. 31 Aug, 2016 2 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Minor doc quoting fixes · 6f40b8b2
      Paul Eggert authored
      * doc/misc/htmlfontify.texi (Interactive):
      * lisp/htmlfontify.el (htmlfontify-buffer):
      Spell out character names, for clarity.  The old doc string
      generated the *Help* text ‘^L ([FF]) or ¤ (244)’, where ‘[FF]’
      stands for a form feed character; this was confusing.
      * lisp/electric.el (electric-quote-mode):
      * src/doc.c (syms_of_doc):
      * src/editfns.c (Fformat_message):
      Remove no-longer-necessary ‘\=’s in doc strings.
      6f40b8b2
  10. 20 Aug, 2016 1 commit
    • Philipp Stephani's avatar
      Some assorted documentation clarifications · 9b99772c
      Philipp Stephani authored
      * src/fileio.c (Fwrite_region): Clarify that END is ignored if
      START is nil.
      * src/editfns.c (Fbuffer_size): Add short discussion about
      narrowing.
      * src/callproc.c (Fcall_process_region): Discuss behavior when
      START and END are not buffer positions.
      9b99772c
  11. 23 Jul, 2016 1 commit
    • Noam Postavsky's avatar
      Adjust match data before calling after-change-funs · 66f95e0d
      Noam Postavsky authored
      It's important to adjust the match data in between calling
      before-change-functions and after-change-functions, so that buffer
      change hooks will always see match-data consistent with buffer content.
      (Bug #23917)
      
      * src/insdel.c (replace_range): Add new parameter ADJUST_MATCH_DATA, if
      true call update_search_regs.  Update all callers (except
      Freplace_match) to pass 0 for the new parameter.
      * src/search.c (update_search_regs): New function, extracted from
      Freplace_match.
      (Freplace_match): Remove match data adjustment code, pass 1 for
      ADJUST_MATCH_DATA to replace_range instead.
      66f95e0d
  12. 20 Jul, 2016 1 commit
    • Paul Eggert's avatar
      Fix lifetime bug in tzlookup · 852111f3
      Paul Eggert authored
      * src/editfns.c (tzlookup): Fix storage lifetime bug when
      INTEGERP (zone) && settz.  Problem found by Coverity Scan.
      852111f3
  13. 19 Jul, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix 'transpose-regions' when LEAVE-MARKERS arg is non-nil · 00b66476
      Eli Zaretskii authored
      * src/insdel.c (adjust_markers_bytepos): New function.
      * src/lisp.h (adjust_markers_bytepos): Add prototype.
      * src/insdel.c (replace_range, replace_range_2):
      * src/editfns.c (Ftranspose_regions): Call
      adjust_markers_bytepos.  (Bug#5131)
      
      * test/src/editfns-tests.el (transpose-test-reverse-word)
      (transpose-test-get-byte-positions): New functions.
      (transpose-ascii-regions-test)
      (transpose-nonascii-regions-test-1)
      (transpose-nonascii-regions-test-2): New tests.
      00b66476
  14. 15 Jul, 2016 1 commit
  15. 09 Jul, 2016 1 commit
    • Eli Zaretskii's avatar
      Minor tweaks of copying text properties when padding strings · 0a2aedfe
      Eli Zaretskii authored
      * src/editfns.c (styled_format): Don't include padding on the left
      in the properties at the beginning of the string.  (Bug#23897)
      
      * test/src/editfns-tests.el (format-properties): Add tests for
      faces when the string is padded on the left or on the right.
      0a2aedfe
  16. 08 Jul, 2016 1 commit
    • Eli Zaretskii's avatar
      Yet another fix for copying properties by 'format' · d8a9c450
      Eli Zaretskii authored
      * src/textprop.c (extend_property_ranges): Accept an additional
      argument OLD_END, and only extend the end of a property range if
      its original end is at OLD_END; all the other ranges are left
      intact.  (Bug#23897)
      * src/editfns.c (styled_format): Pass the original length of the
      string to 'extend_property_ranges'.
      * src/intervals.h (extend_property_ranges): Adjust prototype.
      
      * test/src/editfns-tests.el (format-properties): Add tests for
      bug#23897.
      d8a9c450
  17. 13 Jun, 2016 1 commit
    • Paul Eggert's avatar
      Call tzset after setting TZ · 98162445
      Paul Eggert authored
      * src/editfns.c (tzlookup): Call tzset after setting TZ, so that
      the setting change propagates into Emacs local time (Bug#23600).
      (emacs_setenv_TZ): Clarify comments.
      98162445
  18. 09 Jun, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix copying text properties by 'format' · 1c094238
      Eli Zaretskii authored
      * src/editfns.c (styled_format): Fix copying text properties from
      the format specification to the produced string representation.
      (Bug#23730)
      (Fformat) Doc fix.
      
      * doc/lispref/strings.texi (Formatting Strings): Document that
      text properties from the format specifiers are also copied to the
      produced string.
      1c094238
  19. 08 Jun, 2016 2 commits
  20. 10 May, 2016 1 commit
    • Paul Eggert's avatar
      'text-quoting-style' now affects only ` and ' · 433d366d
      Paul Eggert authored
      Change 'text-quoting-style' so that it no longer affects
      formatting of curved quotes in format arguments to functions like
      'message'.  In particular, when this variable's value is 'grave',
      all quotes in formats are output as-is.
      * doc/lispref/help.texi (Keys in Documentation):
      * doc/lispref/strings.texi (Formatting Strings):
      * doc/lispref/tips.texi (Documentation Tips):
      * etc/NEWS:
      * src/doc.c (syms_of_doc): Document this.
      * lisp/help-fns.el (describe-function-1):
      * src/doc.c (text_quoting_style, Fsubstitute_command_keys)
      (syms_of_doc):
      * src/editfns.c (styled_format): Omit now-unnecessary code.
      * src/lisp.h (LEAVE_QUOTING_STYLE): Remove.
      433d366d
  21. 09 May, 2016 1 commit
  22. 04 May, 2016 1 commit
    • Alan Mackenzie's avatar
      Allow `text-quoting-style' to be `leave', i.e. no translation of quotes. · 32f5bf0c
      Alan Mackenzie authored
      * lisp/help-fns.el (describe-function-1): Don't set coding system to UTF-8
      when text-quoting-style is `leave'.
      
      * src/lisp.h (enum text_quoting_style): Add identifier LEAVE_QUOTING_STYLE.
      
      * src/doc.c (syms_of_doc): New symbol "leave".  Amend doc string of
      `text_quoting_style'.
      (text_quoting_style): Handle `leave' by returning LEAVE_QUOTING_STYLE.
      (Fsubstitute_command_keys): Don't translate quotes when quoting_style is
      LEAVE_QUOTING_STYLE.
      
      * src/editfns.c (styled_format): Set quoting_style to -1 when
      text-quoting-style is `leave'.
      32f5bf0c
  23. 03 May, 2016 1 commit
    • Paul Eggert's avatar
      Doc fixes for quoting · 2ea2a2f1
      Paul Eggert authored
      * doc/emacs/text.texi, doc/lispintro/emacs-lisp-intro.texi:
      * doc/lispref/control.texi, doc/lispref/display.texi:
      * doc/lispref/help.texi, doc/lispref/strings.texi, lisp/subr.el:
      * src/callint.c, src/doprnt.c, src/editfns.c:
      Document quoting a bit more systematically.
      Problem reported by Alan Mackenzie (Bug#23425).
      2ea2a2f1
  24. 01 May, 2016 1 commit
  25. 30 Apr, 2016 1 commit
  26. 12 Apr, 2016 2 commits
    • Paul Eggert's avatar
      Support OFFSET and (OFFSET ABBR) time zone rules · fdb1ba14
      Paul Eggert authored
      This simplifies Gnus and VC time zone support, by letting them
      feed the output of ‘current-time-zone’ and ‘decode time’ to
      primitives that accept time zone arguments.
      * doc/lispref/os.texi (Time Zone Rules, Time Conversion):
      * etc/NEWS:
      * lisp/gnus/message.el (message-insert-formatted-citation-line):
      * lisp/org/org.el (org-timestamp-format):
      * src/editfns.c (Fformat_time_string, Fdecode_time):
      (Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
      Document new behavior.
      * lisp/gnus/gmm-utils.el (gmm-format-time-string):
      * lisp/vc/add-log.el (add-log-iso8601-time-zone):
      Mark as obsolete, as it is now just an alias or narrow wrapper
      around format-time-string.
      * src/editfns.c (tzlookup): Also support integer OFFSET and
      list (OFFSET ABBR) as time zone rules.
      (Fencode_time): No longer need a special case for a cons ZONE.
      (Fcurrent_time_zone): If the time zone string is missing, compute
      it the same way the other new code does.
      fdb1ba14
    • Paul Eggert's avatar
      Improve time zone documentation · ca509810
      Paul Eggert authored
      * doc/lispref/os.texi (Time Zone Rules):
      New section, mostly with material moved here from other sections.
      * doc/emacs/cmdargs.texi (General Variables):
      * doc/lispref/os.texi (Time Conversion, Time Parsing):
      Xref new section.
      * etc/NEWS, etc/PROBLEMS:
      * lisp/org/org.el (org-timestamp-format):
      * src/editfns.c (Fformat_time_string, Fdecode_time)
      (Fencode_time, Fcurrent_time_string, Fcurrent_time_zone)
      (Fset_time_zone_rule):
      When documenting time zone rule strings, mention the TZ
      environment variable in preference to mentioning the
      sort-of-internal function set-time-zone-rule.
      ca509810
  27. 04 Apr, 2016 1 commit
    • Paul Eggert's avatar
      New C macro AUTO_STRING_WITH_LEN · 17cb263a
      Paul Eggert authored
      Put a bit less pressure on the garbage collector by defining a
      macro that is like AUTO_STRING but also allows null bytes in strings,
      and by extending AUTO_STRING to work with any unibyte string.
      * src/alloc.c (verify_ascii): Remove; all uses removed.
      AUTO_STRING can now be used on non-ASCII unibyte strings.
      * src/lisp.h (AUTO_STRING): Now allows non-ASCII unibyte strings.
      (AUTO_STRING_WITH_LEN): New macro.
      * src/coding.c (from_unicode_buffer):
      * src/editfns.c (format_time_string):
      * src/emacs-module.c (module_make_string, module_format_fun_env):
      * src/fileio.c (Fexpand_file_name):
      * src/font.c (font_parse_family_registry):
      * src/ftfont.c (ftfont_get_charset):
      * src/keymap.c (silly_event_symbol_error):
      * src/menu.c (single_menu_item):
      * src/sysdep.c (system_process_attributes):
      Use AUTO_STRING_WITH_LEN if possible.
      * src/emacs-module.c (module_make_function):
      * src/fileio.c (report_file_errno, report_file_notify_error):
      * src/fns.c (Flocale_info):
      * src/sysdep.c (system_process_attributes):
      Use AUTO_STRING if possible.  This is doable more often now
      that AUTO_STRING works on any unibyte string.
      17cb263a
  28. 15 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Port to clang 3.7.0 on x86-64 · 7950e1dd
      Paul Eggert authored
      * configure.ac: Use AS_IF so that gl_WARN_ADD’s prerequisites are
      not done conditionally.  This helps clang, which needs
      -Wunknown-warning-option later when configured with warnings.
      * src/editfns.c (invalid_time): Now _Noreturn, since clang isn’t
      smart enough to figure this out on its own if warnings are enabled.
      (lisp_time_struct): Redo for clarity, and to pacify clang.
      * src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Don’t use
      uninitialized locals.  This avoids undefined behavior and pacifies
      clang.
      7950e1dd
  29. 10 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Rework C source files to avoid ^( · 7352c6c6
      Paul Eggert authored
      Work around Bug#22884 by rewording comments and strings to avoid ‘(’
      at the start of a line unless it starts a function.  This change
      is a short-term hack; in the longer run we plan to fix cc-mode’s
      performance for C files that have ‘(’ at the start of a line in a
      comment or string.
      7352c6c6
  30. 24 Feb, 2016 1 commit
  31. 01 Jan, 2016 1 commit
  32. 09 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Use INT_ADD_WRAPV etc. to check integer overflow · 10873055
      Paul Eggert authored
      * src/alloc.c (xnmalloc, xnrealloc, xpalloc, Fmake_string):
      * src/buffer.c (record_overlay_string, overlay_strings):
      * src/casefiddle.c (casify_object):
      * src/ccl.c (Fccl_execute_on_string):
      * src/character.c (char_width, c_string_width, lisp_string_width)
      (count_size_as_multibyte, string_escape_byte8):
      * src/coding.c (coding_alloc_by_realloc, produce_chars):
      * src/data.c (arith_driver):
      * src/dispnew.c (realloc_glyph_pool, init_display):
      * src/editfns.c (styled_format):
      * src/fns.c (Ffillarray):
      * src/ftfont.c (ftfont_shape_by_flt):
      * src/gnutls.c (gnutls_hex_string):
      * src/gtkutil.c (get_utf8_string):
      * src/image.c (x_to_xcolors, x_detect_edges, png_load_body):
      * src/keymap.c (Fkey_description):
      * src/lisp.h (SAFE_ALLOCA_LISP):
      * src/term.c (encode_terminal_code):
      * src/tparam.c (tparam1):
      * src/xselect.c (x_property_data_to_lisp):
      * src/xsmfns.c (smc_save_yourself_CB):
      * src/xterm.c (x_term_init):
      When checking for integer overflow, prefer INT_MULTIPLY_WRAPV to
      more-complicated code involving division and/or
      INT_MULTIPLY_OVERFLOW, and similarly for INT_ADD_WRAPV and
      subtraction and/or INT_ADD_OVERFLOW.
      * src/casefiddle.c (casify_object): Simplify multibyte size check.
      * src/character.c: Remove some obsolete ‘#ifdef emacs’s.
      * src/data.c (arith_driver): Also check for division overflow,
      as that’s now possible given that the accumulator can now contain
      any Emacs integer.
      * src/lisp.h (lisp_word_count): Remove; no longer used.
      10873055
  33. 21 Oct, 2015 1 commit
    • Paul Eggert's avatar
      Include-file cleanup for src directory · 63cfb75f
      Paul Eggert authored
      Omit ‘#include "foo.h"’ unless the file needs foo.h (Bug#21707).
      In a few cases, add ‘#include "foo.h"’ if the file needs foo.h
      but does not include it directly.  As a general rule, a source
      file should include foo.h if it needs the interfaces that foo.h
      defines.
      * src/alloc.c: Don’t include process.h.  Include dispextern.h,
      systime.h.
      * src/atimer.c: Don’t include blockinput.h.
      * src/buffer.c: Include coding.h, systime.h.  Don’t include
      keyboard.h, coding.h.
      * src/callint.c: Don’t include commands.h, keymap.h.
      * src/callproc.c: Don’t include character.h, ccl.h, composite.h,
      systty.h, termhooks.h.
      * src/casetab.c: Don’t include character.h.
      * src/category.c: Don’t include charset.h, keymap.h.
      * src/ccl.h: Don’t include character.h.
      * src/character.c: Don’t include charset.h.
      * src/charset.c: Don’t include disptab.h.
      * src/chartab.c: Don’t include ccl.h.
      * src/cm.c: Don’t include frame.h, termhooks.h.
      * src/cmds.c: Don’t include window.h, dispextern.h.
      * src/coding.c: Don’t include window.h, frame.h.
      * src/composite.c: Include composite.h.  Don’t include window.h,
      font.h.
      * src/data.c: Don’t include syssignal.h, termhooks.h, font.h.
      * src/dbusbind.c: Don’t include frame.h.
      * src/decompress.c: Don’t include character.h.
      * src/dired.c: Don’t include character.h, commands.h, charset.h.
      * src/dispnew.c: Don’t include character.h, indent.h, intervals.h,
      process.h, timespec.h.  Include systime.h.
      * src/doc.c: Include coding.h.  Don’t include keyboard.h.
      * src/editfns.c: Include composite.h.  Don’t include frame.h.
      * src/emacs.c: Include fcntl.h, coding.h.  Don’t include
      commands.h, systty.h..
      * src/fileio.c: Don’t include intervals.h, dispextern.h.
      Include composite.h.
      * src/filelock.c: Don’t include character.h, systime.h.
      * src/fns.c: Don’t include time.h, commands.h, keyboard.h,
      keymap.h, frame.h, blockinput.h, xterm.h.  Include composite.h.
      * src/font.c: Include termhooks.h.
      * src/font.h: Don’t include ccl.h, frame.h.  Add forward decls of
      struct composition_it, struct face, struct glyph_string.
      * src/fontset.c: Don’t include buffer.h, ccl.h, keyboard.h,
      intervals.h, window.h, termhooks.h.
      * src/frame.c: Don’t include character.h, commands.h, font.h.
      * src/frame.h: Don’t include dispextern.h.
      * src/fringe.c: Don’t include character.h.
      * src/ftcrfont.c: Don’t include dispextern.h, frame.h,
      character.h, charset.h, fontset.h.
      * src/ftfont.c: Don’t include frame.h, blockinput.h, coding.h,
      fontset.h.
      * src/ftxfont.c: Don’t include dispextern.h, character.h,
      charset.h, fontset.h.
      * src/gfilenotify.c: Don’t include frame.h, process.h.
      * src/gtkutil.c: Include dispextern.h, frame.h, systime.h.
      Don’t include syssignal.h, buffer.h, charset.h, font.h.
      * src/gtkutil.h: Don’t include frame.h.
      * src/image.c: Include fcntl.h and stdio.h instead of sysstdio.h.
      Don’t include character.h.
      * src/indent.c: Don’t include keyboard.h, termchar.h.
      * src/inotify.c: Don’t include character.h, frame.h.
      * src/insdel.c: Include composite.h.  Don’t include blockinput.h.
      * src/intervals.c: Don’t include character.h, keyboard.h.
      * src/intervals.h: Don’t include dispextern.h, composite.h.
      * src/keyboard.c: Don’t include sysstdio.h, disptab.h, puresize.h.
      Include coding.h.
      * src/keyboard.h: Don’t incldue systime.h.
      * src/keymap.c: Don’t include charset.h, frame.h.
      * src/lread.c: Include dispextern.h and systime.h.
      Don’t include frame.h.  Include systime.h.
      * src/macros.c: Don’t include commands.h, character.h, buffer.h.
      * src/menu.c: Include character.h, coding.h.  Don’t include
      dispextern.h.
      * src/menu.h: Don’t include systime.h.
      * src/minibuf.c: Don’t include commands.h, dispextern.h, syntax.h,
      intervals.h, termhooks.h.
      * src/print.c: Include coding.h.  Don’t include keyboard.h,
      window.h, dispextern.h, termchar.h, termhooks.h, font.h.
      Add forward decl of struct terminal.
      * src/process.c: Don’t include termhooks.h, commands.h,
      dispextern.h, composite.h.
      * src/region-cache.c: Don’t include character.h.
      * src/scroll.c: Don’t include keyboard.h, window.h.
      * src/search.c: Don’t include category.h, commands.h.
      * src/sound.c: Don’t include dispextern.h.
      * src/syntax.c: Don’t include command.h, keymap.h.
      * src/sysdep.c: Don’t include window.h, dispextern.h.
      * src/systime.h: Use ‘#ifdef emacs’, not ‘#ifdef EMACS_LISP_H’,
      * src/term.c: Don’t include systty.h, intervals.h, xterm.h.
      * src/terminal.c: Include character.h.
      Don’t include charset.h, coding.h.
      * src/textprop.c: Don’t include character.h.
      * src/undo.c: Don’t include character.h, commands.h, window.h.
      * src/unexsol.c: Don’t include character.h, charset.h.
      * src/widget.c: Include widget.h.  Don’t include keyboard.h,
      window.h, dispextern.h, blockinput.h, character.h, font.h.
      * src/widgetprv.h: Don’t include widget.h.
      * src/window.c: Don’t include character.h, menu.h, intervals.h.
      * src/xdisp.c: Include composite.h, systime.h.  Don’t include
      macros.h, process.h.
      * src/xfaces.c: Don’t include charset.h, keyboard.h, termhooks.h,
      intervals.h.
      * src/xfns.c: Don’t include menu.h, character.h, intervals.h,
      epaths.h, fontset.h, systime.h, atimer.h, termchar.h.
      * src/xfont.c: Don’t include dispextern.h, fontset.h, ccl.h.
      * src/xftfont.c: Don’t include dispextern.h, character.h, fontset.h.
      * src/xgselect.c: Don’t include timespec.h, frame.h.
      Include systime.h.
      * src/xgselect.h: Don’t include time.h.
      Use a forward decl to struct timespec instead.
      * src/xmenu.c: Don’t include keymap.h, character.h, charset.h,
      dispextern.h.  Include systime.h.
      * src/xml.c: Don’t include character.h.
      * src/xrdb.c [USE_MOTIF]: Don’t include keyboard.h.
      * src/xselect.c: Don’t include dispextern.h, character.h,
      buffer.h, process.h.
      * src/xsmfns.c: Don’t include systime.h, sysselect.h.
      * src/xterm.c: Don’t include syssignal.h, charset.h, disptab.h,
      intervals.h process.h, keymap.h, xgselect.h.  Include composite.h.
      63cfb75f
  34. 25 Sep, 2015 1 commit
  35. 16 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Omit unnecessary \ before paren in C docstrings · 032ce1c7
      Paul Eggert authored
      Although \( is needed in docstrings in Elisp code, it is not needed in
      docstrings in C code, since C function definitiions do not start with
      a parenthesis.  The backslashes made the docstrings a bit harder to
      read and to format in columns.  Also, some C docstrings had ( in
      column 1 and this did not appear to be causing any problems.  So,
      simplify C docstrings by replacing \( with ( and \) with ).
      032ce1c7
  36. 10 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Prefer NUMBERP to spelling it out · a1cd8c96
      Paul Eggert authored
      * src/editfns.c (styled_format):
      * src/frame.h (NUMVAL):
      * src/image.c (parse_image_spec):
      * src/lisp.h (CHECK_NUMBER_OR_FLOAT)
      (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER):
      * src/process.c (Fsignal_process):
      * src/xdisp.c (calc_pixel_width_or_height, on_hot_spot_p):
      * src/xfaces.c (check_lface_attrs):
      * src/xselect.c (x_fill_property_data, x_send_client_event):
      Use NUMBERP rather than INTEGERP || FLOATP.
      a1cd8c96