1. 13 May, 2017 1 commit
    • Philipp's avatar
      Make `old-style-backquotes' variable internal · a1d46159
      Philipp authored
      * src/lread.c (load_warn_old_style_backquotes, Fload, read1)
      (syms_of_lread): Rename `old-style-backquotes' to
      `lread--old-style-backquotes', and clarify that it's for internal
      use only.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
      * test/src/lread-tests.el (lread-tests--old-style-backquotes): Add
      unit test.
      * emacs-lisp/bytecomp-tests.el
      (bytecomp-tests--old-style-backquotes): Add unit test.
  2. 12 May, 2017 1 commit
    • Andrew Robbins's avatar
      Extend DNS lookup commands to allow specifying the name server · a1b69815
      Andrew Robbins authored
      * lisp/net/net-utils.el (ffap-string-at-point): Removed due to
      'net-utils-machine-at-point' obviating this autoloaded
      function (Bug#25426).
      (dig-program-options): New customization variable.
      (nslookup-host, dns-lookup-host, run-dig): Can now specify
      optional name server argument interactively (by prefix arg) and
      * etc/NEWS: Mention the extension of DNS lookup commands.
  3. 10 May, 2017 1 commit
    • Perry E. Metzger's avatar
      Implement 1-based column numbering in mode line · 7df07779
      Perry E. Metzger authored
      * src/xdisp.c (decode_mode_spec): Implement the %C construct.
      * lisp/bindings.el (column-number-indicator-zero-based): New
      (mode-line-position): Use %C when
      column-number-indicator-zero-based is nil.
      * src/xdisp.c (syms_of_xdisp) <frame-title-format>:
      * src/buffer.c (syms_of_buffer) <mode-line-format>:
      * doc/lispref/modes.texi (%-Constructs):
      * doc/lispref/frames.texi (Frame Titles): Document the %C
      * doc/emacs/display.texi (Optional Mode Line): Document
      * etc/NEWS: Mention 'column-number-indicator-zero-based' and the
      %C construct.
  4. 09 May, 2017 1 commit
    • Noam Postavsky's avatar
      Revert "Output number of characters added to file (Bug#354)" · daaec72a
      Noam Postavsky authored
      The extra message text turned out to be quite annoying in practice,
      and is generally more trouble than it's worth.  Also revert several
      related changes.
      Partially revert "Handle `write-region' messages in Tramp properly"
      Revert "New var write-region-verbose, default nil"
      Revert "* src/fileio.c (write_region): Don't say "1 characters".  (Bug#26796)"
      Revert "Minor tuneup of write-region change"
      Revert "Adjust write-region so file name is at the beginning again"
      Revert "Fix handling of non-integer START param to write-region"
      Revert "Output number of characters added to file (Bug#354)"
      * doc/emacs/files.texi (Misc File Ops):
      * etc/NEWS:
      * lisp/epa-file.el (epa-file-write-region):
      * lisp/gnus/mm-util.el (mm-append-to-file):
      * lisp/jka-compr.el (jka-compr-write-region):
      * lisp/net/ange-ftp.el (ange-ftp-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
      * lisp/net/tramp.el (tramp-handle-write-region-message):
      * src/fileio.c (write_region, syms_of_fileio):
      * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Remove
      extra characters from file writing messages.
  5. 07 May, 2017 1 commit
    • Paul Eggert's avatar
      New var write-region-verbose, default nil · c311b8b1
      Paul Eggert authored
      By popular demand, write-region char counts are now off by default
      * src/fileio.c (write-region-verbose): New Lisp var.
      (write_region): Output char count only if the var is non-nil.
      * doc/emacs/files.texi (Misc File Ops), etc/NEWS: Document this.
  6. 06 May, 2017 1 commit
  7. 04 May, 2017 1 commit
    • Damien Cassou's avatar
      Add seq-set-equal-p to test for set equality · 88f96e69
      Damien Cassou authored
      * lisp/emacs-lisp/seq.el (seq-set-equal-p): Add function to compare
        two lists as if they were sets.
      * test/lisp/emacs-lisp/seq-tests.el (test-seq-set-equal-p): Add test
        for seq-set-equal-p.
  8. 03 May, 2017 1 commit
    • Tom Tromey's avatar
      Add color highlighting to css-mode · f0708fc5
      Tom Tromey authored
      * lisp/textmodes/css-mode.el (css--color-map): New constant.
      (css-value-class-alist): Use css--color-map.
      (css--number-regexp, css--percent-regexp)
      (css--number-or-percent-regexp, css--angle-regexp): New constants.
      (css--color-skip-blanks, css--rgb-color, css--hsl-color): New
      (css--colors-regexp): New constant.
      (css--hex-color, css--named-color, css--compute-color)
      (css--contrasty-color, css--fontify-colors)
      (css--fontify-region): New functions.
      (css-mode): Set font-lock-fontify-region-function.
      (css-mode-syntax-table): Set syntax on more characters.
      (css-fontify-colors): New defcustom.
      (scss-mode-syntax-table): Define syntax for ?$ and ?%.
      * test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
      (css-test-rgb-parser, css-test-hsl-parser)
      (css-test-named-color): New tests.
      * etc/NEWS: Add entry.
  9. 02 May, 2017 1 commit
    • Paul Eggert's avatar
      Check list object type if --enable-gcc-warnings · bc4d6185
      Paul Eggert authored
      * configure.ac (--enable-check-lisp-object-type):
      Default to "yes" if --enable-gcc-warnings is not "no".
      * etc/NEWS: Mention this.
      * src/eval.c (internal_lisp_condition_case): Fix some glitches
      with 'volatile' uncovered by the above: in particular, 'clauses'
      should be a pointer to volatile storage on the stack, and need not
      be volatile itself.  Use an int, not ptrdiff_t, to count clauses.
      Don’t bother gathering binding count if VAR is nil.  Use
      more-specific local names to try to clarify what’s going on.
  10. 29 Apr, 2017 1 commit
    • Philipp Stephani's avatar
      Reimplement auto-saving to visited files · 4db844a4
      Philipp Stephani authored
      This reacts to confusing behavior of 'auto-save-visited-file-name',
      cf. Bug#25478.
      * lisp/files.el (auto-save-visited-interval): New customization option.
      (auto-save-visited-mode): New global minor mode.
      (auto-save-visited-file-name): Make obsolete.
      (auto-save--timer): New internal helper variable.
      * doc/emacs/files.texi (Auto Save Files): Document
      'auto-save-visited-mode' instead of obsolete
      (Auto Save Control): Document customization option
  11. 23 Apr, 2017 1 commit
    • Philipp Stephani's avatar
      Add missing remappings for Ido mode · a1f93c1d
      Philipp Stephani authored
      Among others, add a remapping for C-x 4 d, cf. Bug#26360.
      * lisp/ido.el (ido-mode): Remap missing commands.
      (ido-file-internal, ido-visit-buffer): Add support for new
      (ido-find-alternate-file-other-window, ido-dired-other-window)
      (ido-dired-other-frame): New commands.
      * test/lisp/ido-tests.el (ido-tests--other-window-frame): Add unit
      test for the bindings.
  12. 20 Apr, 2017 1 commit
    • Stefan Monnier's avatar
      Use substring completion for Info menus and index · cd56490f
      Stefan Monnier authored
      * lisp/info.el (Info-complete-menu-item): Add `category' metadata.
      (Info-menu): Simplify now that we use the `default' arg of completing-read.
      * lisp/minibuffer.el (completion-category-defaults): Use substring
      completion for `info-menu`.
  13. 13 Apr, 2017 1 commit
  14. 12 Apr, 2017 1 commit
    • Tak Kunihiro's avatar
      Scroll right and left using wheel-right and wheel-left. · 88f43dc3
      Tak Kunihiro authored
      These changes also make use of touchpad and trackpad (Bug#26347).
      * doc/emacs/frames.texi (Mouse Commands): Document horizontal
      scrolling using the mouse wheel.
      * lisp/mwheel.el (mwheel-scroll): Respond to wheel-right and wheel-left.
      (mwheel-tilt-scroll-p, mwheel-flip-direction)
      (mwheel-scroll-left-function, mwheel-scroll-right-function): New
      (mouse-wheel-left-event, mouse-wheel-right-event): New variables,
      events that calls wheel-left/right.
      * etc/NEWS: Mention horizontal scrolling using the mouse wheel.
  15. 11 Apr, 2017 1 commit
    • Jens Lechtenboerger's avatar
      Introduce customizable variable 'package-gnupghome-dir' · 695eacc2
      Jens Lechtenboerger authored
      * lisp/emacs-lisp/package.el (package-import-keyring)
      (package--check-signature-content, package-check-signature):
      Use new variable package-gnupghome-dir to control which GnuPG
      homedir to use.
      * doc/emacs/package.texi: Mention package-gnupghome-dir.
      * etc/NEWS: Mention package-gnupghome-dir.
  16. 09 Apr, 2017 1 commit
    • Michael Albinus's avatar
      Document Tramp changes · 9e1f45d9
      Michael Albinus authored
      * doc/misc/tramp.texi (Change file name syntax): New node.
      * etc/NEWS: Mention `tramp-change-syntax'.
      * lisp/net/tramp.el (tramp-file-name-regexp): Reinsert it.
      External packages uses it.
      (tramp-syntax): Set also `tramp-file-name-regexp'.
  17. 08 Apr, 2017 1 commit
    • Paul Eggert's avatar
      Deprecate copy-record in favor of copy-sequence · a2b3fea9
      Paul Eggert authored
      Since copy-sequence seems to be needed anyway for records, have it
      work on records, and remove copy-record as being superfluous.
      * doc/lispref/records.texi (Records, Record Functions):
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct):
      * lisp/emacs-lisp/eieio.el (make-instance, clone):
      * test/src/alloc-tests.el (record-3):
      Use copy-sequence, not copy-record, to copy records.
      * doc/lispref/sequences.texi (Sequence Functions)
      (Array Functions): Document that aref and copy-sequence
      work on records.
      * etc/NEWS: Omit copy-record.
      * src/alloc.c (Fcopy_record): Remove.
      * src/data.c (Faref): Document that arg can be a record.
      * src/fns.c (Fcopy_sequence): Copy records, too.
  18. 07 Apr, 2017 2 commits
    • Paul Eggert's avatar
      ; Spelling and punctuation fixes · cea942e5
      Paul Eggert authored
    • Jeff Clough's avatar
      Output number of characters added to file (Bug#354) · cd0a7951
      Jeff Clough authored
      * fileio.c (write_region):
      * epa-file.el (epa-file-write-region):
      * jka-compr.el (jka-compr-write-region):
      * ange-ftp.el (ange-ftp-write-region):
      * tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * tramp-sh.el (tramp-sh-handle-write-region):
      * mm-util.el (mm-append-to-file): Functions now output
      characters written in addition to file name.
      * files.texi: Added documentation to write-region and
      append-to-file describing their output.
  19. 06 Apr, 2017 3 commits
    • Michal Nazarewicz's avatar
      Implement special sigma casing rule (bug#24603) · c1fa0722
      Michal Nazarewicz authored
      In Greek, a sigma character has two lower case forms which depend on
      their position in the word.  Implement logic determining it.
      * src/casefiddle.c (struct casing_context, case_character_impl): Don’t
      assume inword is true when flag is CASE_UP and false when flag is
      CASE_DOWN.  For final sigma detection we need this information tracked
      Unicode code point of different forms of sigma letter.
      (case_character): Implement support for final sigma casing.
      (do_casify_multibyte_string, do_casify_multibyte_region): Update after
      changes to case_character.
      * test/src/casefiddle-tests.el (casefiddle-tests-casing): Add test
      cases for final sigma.
    • Michal Nazarewicz's avatar
      Support casing characters which map into multiple code points (bug#24603) · b3b9b258
      Michal Nazarewicz authored
      Implement unconditional special casing rules defined in Unicode standard.
      Among other things, they deal with cases when a single code point is
      replaced by multiple ones because single character does not exist (e.g.
      ‘fi’ ligature turning into ‘FL’) or is not commonly used (e.g. ß turning
      into SS).
      * admin/unidata/SpecialCasing.txt: New data file pulled from Unicode
      standard distribution.
      * admin/unidata/README: Mention SpecialCasing.txt.
      * admin/unidata/unidata-get.el (unidata-gen-table-special-casing,
      unidata-gen-table-special-casing--do-load): New functions generating
      ‘special-uppercase’, ‘special-lowercase’ and ‘special-titlecase’
      character Unicode properties built from the SpecialCasing.txt Unicode
      data file.
      * src/casefiddle.c (struct casing_str_buf): New structure for
      representing short strings used to handle one-to-many character
      (case_character_imlp): New function which can handle one-to-many
      character mappings.
      (case_character, case_single_character): Wrappers for the above
      functions.  The former may map one character to multiple (or no)
      code points while the latter does what the former used to do (i.e.
      handles one-to-one mappings only).
      (do_casify_natnum, do_casify_unibyte_string,
      do_casify_unibyte_region): Use case_single_character.
      (do_casify_multibyte_string, do_casify_multibyte_region): Support new
      features of case_character.
      * (do_casify_region): Updated to reflact do_casify_multibyte_string
      (casify_word): Handle situation when one character-length of a word
      can change affecting where end of the word is.
      (upcase, capitalize, upcase-initials): Update documentation to mention
      limitations when working on characters.
      * test/src/casefiddle-tests.el (casefiddle-tests-char-properties):
      Add test cases for the newly introduced character properties.
      (casefiddle-tests-casing): Update test cases which are now passing.
      * test/lisp/char-fold-tests.el (char-fold--ascii-upcase,
      char-fold--ascii-downcase): New functions which behave like old ‘upcase’
      and ‘downcase’.
      (char-fold--test-match-exactly): Use the new functions.  This is needed
      because otherwise fi and similar characters are turned into their multi-
      -character representation.
      * doc/lispref/strings.texi: Describe issue with casing characters versus
      * doc/lispref/nonascii.texi: Describe the new character properties.
    • Michal Nazarewicz's avatar
      Add support for title-casing letters (bug#24603) · 13d813b1
      Michal Nazarewicz authored
      * src/casefiddle.c (struct casing_context, prepare_casing_context): Add
      titlecase_char_table member.  It’s set to the ‘titlecase’ Unicode
      property table if capitalisation has been requested.
      (case_character): Make use of the titlecase_char_table to title-case
      initial characters when capitalising.
      * test/src/casefiddle-tests.el (casefiddle-tests--characters,
      casefiddle-tests-casing): Update test cases which are now passing.
  20. 05 Apr, 2017 1 commit
    • Tom Tromey's avatar
      add mhtml-mode.el · 335174ee
      Tom Tromey authored
      * etc/NEWS: Update.
      * lisp/textmodes/mhtml-mode.el: New file.
      * test/manual/indent/html-multi.html: New file.
      * test/lisp/textmodes/mhtml-mode-tests.el: New file.
      * doc/emacs/text.texi (HTML Mode): Mention mhtml-mode.
  21. 04 Apr, 2017 1 commit
    • Paul Eggert's avatar
      Minor simplifications and doc for records · 82b9efc8
      Paul Eggert authored
      * doc/lispref/records.texi (Records): Mention size limit.
      * etc/NEWS: Mention records.
      * src/alloc.c (allocate_pseudovector, allocate_record):
      Prefer 'PSEUDOVECTOR_SIZE_MASK' to its definiens.
      (allocate_record): Check arg range here, not in callers, as this
      simplifies the code.  Use allocate_vectorlike instead of
      allocate_vector, to avoid duplicate runtime tests.
      (Fmake_record, record): Don't mention PSEUDOVECTOR_SIZE_BITS in
      the doc string, as it is not visible to the user.
      (Fmake_record, record, Fcopy_record):
      Prefer make_lisp_ptr to XSETVECTOR.
      (record): Broaden memcpy to copy the type, too.
  22. 03 Apr, 2017 1 commit
    • Noam Postavsky's avatar
      Throw a `search-failed' derived error in Info search · 3887c545
      Noam Postavsky authored
      The original fix for Bug#6106 switched from signalling `search-failed'
      to `user-error'.  However, this breaks incremental searching over
      multiple nodes because the isearch code doesn't expect a `user-error'.
      * src/search.c (syms_of_search): New error, `user-search-failed',
      with `user-error' and `search-failed' as parents.
      * doc/lispref/errors.texi (Standard Errors): Document it.
      * etc/NEWS: Announce it.
      * lisp/info.el (Info-search): Use it instead of `user-error' so that
      isearch will handle failed searches correctly.
  23. 31 Mar, 2017 1 commit
    • Tino Calancha's avatar
      dired-mark-suffix: New command · 1da9a207
      Tino Calancha authored
      Now dired-mark-extension prepends '.' to extension when not present.
      Add command dired-mark-suffix to preserve the previous
      behaviour (Bug#25942).
      * lisp/dired-x.el (dired-mark-suffix): New command;
      mark files ending in a given suffix.
      (dired--mark-suffix-interactive-spec): New defun.
      (dired-mark-extension, dired-mark-suffix): Use it.
      * doc/misc/dired-x.texi (Advanced Mark Commands): Update manual.
      * test/lisp/dired-x-tests.el: New test suite; add test for these features.
      ; * etc/NEWS (Incompatible Lisp Changes in Emacs 26.1):
      ; Mention these changes.
  24. 21 Mar, 2017 2 commits
  25. 19 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Fixups after merge from emacs-25 · d7f48302
      Paul Eggert authored
      * etc/NEWS: Remove stray entry.
      * etc/NEWS.25: Copy from Emacs emacs-25 etc/NEWS.
      * lisp/textmodes/rst.el (rst-package-emacs-version-alist):
      Make it nondecreasing.
  26. 17 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Emacs 'movemail' is now a configure-time option · 9f771f64
      Paul Eggert authored
      The new configure option --with-mailutils lets the builder say
      that Emacs should assume that GNU Mailutils is installed, instead
      of continuing to build and install its own limited and insecure
      substitute for 'movemail'.
      * INSTALL, etc/NEWS, etc/PROBLEMS: Mention --with-mailutils.
      * configure.ac: Add --with-mailutils option.
      (with_mailutils): New variable.
      Do not bother configuring 'movemail' when not building it.
      Warn about issues relating to --with-mailutils.
      * doc/emacs/rmail.texi (Movemail): Mention --with-mailutils.
      (Movemail, Remote Mailboxes): Document port numbers in
      POP and IMAP URLs.
      * lib-src/Makefile.in (with_mailutils): New macro.
      (UTILITIES): Use it.
  27. 16 Mar, 2017 1 commit
    • Michael Albinus's avatar
      Document remote file name syntax change · 265a5d97
      Michael Albinus authored
      * doc/emacs/files.texi (Remote Files, Quoted File Names):
      * doc/misc/org.texi (dir): Change examples to use a method.
      * doc/misc/tramp.texi (Top) [trampf]: Remove macro.  Add
      `Testing' menu entry.
      (History): Fix typos.  Mention syntax change.
      (Configuration, Default Host, File name Syntax)
      (File name completion, Frequently Asked Questions):
      Change examples to use a method.
      (External methods, Default Host, Multi-hops, Remote processes):
      Fix typos.
      (Default Method): Mention pseudo method "-".
      (External packages): Rewrite intention of `non-essential'.
      * etc/NEWS: Mark recent Tramp entries as documented.
  28. 14 Mar, 2017 1 commit
    • Tino Calancha's avatar
      Show ancestor buffer in 3way merges · 0f3d1b78
      Tino Calancha authored
      Add an option ediff-show-ancestor', to control if the ancestor buffer
      must be shown in 3way merges (Bug#25493); set it non-nil by default.
      Add a toggle to change this option interactively; the original
      value of the option is restored on exit.
      Update the window setup so that the ancestor buffer is
      shown in 3way merges when ediff-show-ancestor is non-nil.
      Any operation on ediff windows must take in account the
      ancestor window as well, when this is shown.
      * lisp/vc/ediff-init.el (ediff-show-ancestor): New option.
      (ediff--show-ancestor-orig): New defvar.
      * lisp/vc/ediff-wind.el (ediff-window-Ancestor): New defvar.
      (ediff-setup-windows-plain-merge, ediff-setup-windows-multiframe-merge):
      Display ancestor buffer if ediff-show-ancestor is non-nil.
      (ediff-keep-window-config): Expect ancestor window in
      (ediff-window-alist): Add entry for the ancestor window.
      * lisp/vc/ediff-util.el (ediff-setup-control-buffer):
      ediff-window-config-saved contains ancestor window.
      (ediff-show-ancestor): Delete this command.
      (ediff-setup-keymap): Bind ediff-toggle-show-ancestor to '/' for merge jobs.
      (ediff-update-diffs): Compute new diffs using ancestor buffer in 3way merges;
      don't cheat it to think that is performing a comparison, that trick is not
      necessary anymore: simply call 'ediff-setup-diff-regions-function'
      with file-A, file-B and the file ancestor.
      (ediff-recenter): Update doc string.  Consider the ancestor buffer.
      (ediff--check-ancestor-exists): New defun.
      (ediff-toggle-show-ancestor): New command; toggle ediff-show-ancestor.
      (ediff--restore-options-on-exit): Restore ediff-show-ancestor on exit.
      (ediff-scroll-vertically, ediff-scroll-horizontally)
      (ediff-operate-on-windows): Consider the ancestor as well.
      * lisp/vc/ediff-help.el (ediff-long-help-message-merge):
      List ediff-toggle-show-ancestor.
      * doc/misc/ediff.texi (Introduction, Quick Help Commands): Update manual.
      ; * etc/NEWS: Announce these changes.
  29. 13 Mar, 2017 1 commit
  30. 12 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Install update-game-score only on request · 995be66f
      Paul Eggert authored
      Most distributions do not install update-game-score properly
      due to setuid/setgid complications, so install it only when
      the installer specifies a user or group (Bug#25895).
      * .gitattributes: Remove lib-src/update-game-score.exe.manifest.
      * Makefile.in (gameuser, gamegroup, use_gamedir, PATH_GAME):
      New vars.
      (epaths-force): Use PATH_GAME.
      (uninstall): Remove snake-scores and tetris-scores only if shared.
      * configure.ac: Default --with-gameuser to 'no'.
      (UPDATE_MANIFEST): Remove.
      * etc/NEWS: Mention this.
      * lib-src/Makefile.in (UPDATE_MANIFEST): Remove.
      (use_gamedir): New macro.
      (UTILITIES): Remove update-game-score unless use_gamedir.
      ($(DESTDIR)${archlibdir}): Install game directory program and data
      only if use_gamedir.
      * lib-src/update-game-score.exe.manifest: Remove, as
      update-game-score is no longer installed on MS-Windows.
      * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
      Use auxiliary program only if setuid or setgid.
      * make-dist: Do not distribute update-game-score.exe.manifest.
      * src/callproc.c (init_callproc):
      Set Vshared_game_score_directory based on PATH_GAME, not DOS_NT.
      (syms_of_callproc): Remove unnecessary initialization of
  31. 09 Mar, 2017 1 commit
  32. 08 Mar, 2017 1 commit
  33. 07 Mar, 2017 1 commit
    • Paul Eggert's avatar
      min and max now return one of their arguments · 37940b34
      Paul Eggert authored
      * doc/lispref/numbers.texi (Comparison of Numbers):
      * etc/NEWS: Document this.
      * src/data.c (Amax, Amin): Remove constants.  All uses removed.
      (minmax_driver): New function.
      (Fmax, Fmin): Use it instead of arith_driver.
      * test/src/data-tests.el (data-tests-max, data-tests-min): New tests.
  34. 05 Mar, 2017 3 commits
    • Paul Eggert's avatar
      ffloor etc. now accept only floats · 53f3dd66
      Paul Eggert authored
      * etc/NEWS: Say why.
      * src/floatfns.c (Ffceiling, Fffloor, Ffround, Fftruncate):
      Require arg to be float.
      * test/src/floatfns-tests.el (fround-fixnum): Check this.
    • Paul Eggert's avatar
      Compare and round more carefully · 0d55c44a
      Paul Eggert authored
      * etc/NEWS: Document this.
      * src/data.c (store_symval_forwarding):
      * src/sound.c (parse_sound):
      Do not botch NaN comparison.
      * src/data.c (cons_to_unsigned, cons_to_signed):
      Signal an error if a floating-point arg is not integral.
      * src/data.c (cons_to_unsigned, cons_to_signed):
      * src/fileio.c (file_offset):
      Use simpler overflow check.
      * src/dbusbind.c (xd_extract_signed, xd_extract_unsigned):
      Avoid rounding error in overflow check.
      (Fcar_less_than_car): Use arithcompare directly.
      * test/src/charset-tests.el: New file.
    • Paul Eggert's avatar
      Fewer rounding errors with (format "%f" fixnum) · 44e7ee2e
      Paul Eggert authored
      * etc/NEWS: Document this.
      * src/editfns.c (styled_format): When formatting integers via a
      floating-point format, use long double instead of double
      conversion, if long double’s extra precision might help.