1. 20 Feb, 2017 9 commits
    • Paul Eggert's avatar
      Port xwidget to -DCHECK_LISP_OBJECT_TYPE · a6e76fc7
      Paul Eggert authored
      * src/xwidget.c (webkit_javascript_finished_cb)
      (Fxwidget_webkit_execute_script): Don't assume Lisp_Object is an
      integer.  This fix is just a hack; I’ll file a bug report about
      the underlying problem.
      a6e76fc7
    • Eli Zaretskii's avatar
      589bd0c2
    • Katsumi Yamaoka's avatar
      mm-decode.el: Simplify regexp used to search html meta tag · b2b31596
      Katsumi Yamaoka authored
      * lisp/gnus/mm-decode.el (mm-add-meta-html-tag, mm-shr):
      Simplify regexp used to search html meta tag.
      b2b31596
    • Katsumi Yamaoka's avatar
      mm-shr: Ignore coding-system `ascii' · 851b38bc
      Katsumi Yamaoka authored
      * lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'.
      851b38bc
    • Tom Tromey's avatar
      vc-log-outgoing fixes for git; add binding to vc-dir · 0a670690
      Tom Tromey authored
      * lisp/vc/vc-dir.el (vc-dir-mode-map): Bind "O" to vc-log-outgoing.
      * lisp/vc/vc-git.el (vc-git-log-outgoing, vc-git-log-incoming): Use
      async execution.
      (vc-git-log-view-mode): Also truncate lines for log-outgoing and
      log-incoming.
      * lisp/vc/vc.el (vc-log-incoming, vc-log-outgoing): Don't pass nil
      as remote-location argument.
      0a670690
    • Tom Tromey's avatar
      Remove stale comments from vc-git and vc-hg · a4c32272
      Tom Tromey authored
      * lisp/vc/vc-git.el (vc-git-retrieve-tag): Remove comment.
      * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Remove comment.
      a4c32272
    • Mark Oteiza's avatar
      Remove member clone · e7b0dac1
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-answer): Use member instead.
      (dun-members): Remove.
      e7b0dac1
    • Mark Oteiza's avatar
      Prefix global var · 2f605c3f
      Mark Oteiza authored
      * lisp/play/dunnet.el (room): Rename to dun-room.
      (dun-messages, dunnet, dun-describe-room, dun-drop, dun-move):
      (dun-restore, dun-do-logfile, dun-batch-loop): Use new name.
      2f605c3f
    • Mark Oteiza's avatar
      Replace nested ifs with cond · 0db5ba48
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-messages, dun-describe-room, dun-examine):
      (dun-eat, dun-put-objs, dun-turn, dun-press, dun-ls, dun-cd): Use when
      and cond where appropriate.
      (dun-sauna-heat): Accept sauna level as an argument.  Use cond.
      (dun-take): Use null and dun-mprincl.
      (dun-inven-weight, dun-load-d): Reformat.
      (dun-remove-obj-from-inven, dun-remove-obj-from-room): Nix setq to nil.
      0db5ba48
  2. 19 Feb, 2017 16 commits
    • Paul Eggert's avatar
      Fix glitches in recent hash table changes · c8d14cfc
      Paul Eggert authored
      * src/fns.c (Fmake_hash_table): Simplify the machine code slightly
      by using 0 rather than -1.
      * src/lisp.h (struct Lisp_Hash_Table.pure): Now bool rather
      than a bitfield, for speed (the bitfield did not save space).
      (struct Lisp_Hash_Table.rehash_threshold): Now double rather than
      float, since the float caused unwanted rounding errors, e.g.,
      (hash-table-rehash-threshold (make-hash-table)) yielded
      0.800000011920929 instead of the correct 0.8.
      c8d14cfc
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      ; Minor fix of recent change in fringe.c · f03d936c
      Eli Zaretskii authored
      * src/fringe.c (init_fringe_bitmap) [HAVE_NTGUI]: Remove an
      unnecessary #ifdef introduced in a recent change.
      f03d936c
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Avoid aborts during loadup · b36f8a4d
      Eli Zaretskii authored
      * src/emacs-module.c (syms_of_module):
      * src/image.c (xpm_make_color_table_h): Update calls to
      make_hash_table to adjust to a recent change in fns.c.
      * src/fns.c (make_hash_table):
      * src/lisp.h (make_hash_table): 4th arg is now of type double.
      b36f8a4d
    • Michael Albinus's avatar
      Rework connection local variables · 143bc75c
      Michael Albinus authored
      For connection local variables interface, `class' is renamed
      to `profile'.  All arguments `criteria' are a plist now.
      
      * doc/lispref/variables.texi (Connection Local Variables):
      Rewrite.
      
      * lisp/files-x.el (connection-local-profile-alist): Rename
      from `connection-local-class-alist'.  Adapt docstring.
      (connection-local-criteria-alist): Adapt docstring.
      (connection-local-normalize-criteria): New defun.
      (connection-local-get-profiles): Rename from
      `connection-local-get-classes'.  Rewrite.
      (connection-local-set-profiles): Rename from
      `connection-local-set-classes'.  Rewrite.
      (connection-local-get-profile-variables): Rename from
      `connection-local-get-class-variables'.  Rewrite.
      (connection-local-set-profile-variables): Rename from
      `connection-local-set-class-variables'.  Rewrite.
      (hack-connection-local-variables)
      (hack-connection-local-variables-apply)): Rewrite.
      (with-connection-local-profiles): Rename from
      `ith-connection-local-classes'.  Rewrite.
      
      * lisp/net/tramp.el (tramp-set-connection-local-variables):
      Compute criteria.
      
      * lisp/net/tramp-cmds.el (tramp-bug):
      Use `connection-local-profile-alist'.
      
      * test/lisp/files-x-tests.el (files-x-test--variables1)
      (files-x-test--variables2, files-x-test--variables3)
      (files-x-test--variables4, files-x-test--criteria1)
      (files-x-test--criteria2): Make them a defconst.
      (files-x-test--application)
      (files-x-test--another-application, files-x-test--protocol)
      (files-x-test--user, files-x-test--machine): New defconst.
      (files-x-test--criteria): New defvar.
      (files-x-test--criteria3): Remove.
      (files-x-test-connection-local-set-profile-variables):
      Rename from `files-x-test-connection-local-set-class-variables'.
      Rewrite.
      (files-x-test-connection-local-set-profiles): Rename from
      `files-x-test-connection-local-set-classes'.  Rewrite.
      (files-x-test-hack-connection-local-variables-apply)  Rewrite.
      (files-x-test-with-connection-local-profiles): Rename from
      `files-x-test-with-connection-local-classes'.  Rewrite.
      143bc75c
    • Mark Oteiza's avatar
      ; Fix previous change · b6a1a745
      Mark Oteiza authored
      Actually adjust the comment.
      * lisp/play/dunnet.el: Change comment to refer to section, add page
      break to better demarcate section.
      b6a1a745
    • Mark Oteiza's avatar
      Set up combination and random item location · 7455c2ad
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-combination): Make defconst.
      (tloc, tcomb): Remove.  Replace with a top-level form.
      7455c2ad
    • Mark Oteiza's avatar
      Replace movement variables with an alist and accessor · 44931daf
      Mark Oteiza authored
      * lisp/play/dunnet.el (north, south, east, west, northeast, southeast):
      (northwest, southwest, up, down, in, out): Remove.
      (dun-movement-alist): New constant.
      (dun-movement): New function.
      (dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se, dun-nw, dun-sw, dun-up):
      (dun-down, dun-in, dun-out): Use a symbol for indicating movement.
      (dun-move, dun-special-move): Translate movement symbol to an
      enumeration.
      44931daf
    • Mark Oteiza's avatar
      Change top-level setq forms to defvar or defconst · 48cb4a96
      Mark Oteiza authored
      Also collect some code onto fewer lines and reindent.
      * lisp/play/dunnet.el (dun-visited, dun-current-room, dun-exitf):
      (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole):
      (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead):
      (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in):
      (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode):
      (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet):
      (dun-restricted, dun-ftptype, dun-endgame, dun-rooms):
      (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore):
      (dun-mode, dun-sauna-level, north, south, east, west, northeast):
      (southeast, northwest, southwest, up, down, in, out, dungeon-map):
      (dun-objnames, obj-special, dun-room-objects, dun-room-silents):
      (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts):
      (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc):
      (dun-diggables, dun-room-shorts, dun-endgame-questions): Change
      declaration to use defvar or defconst.
      (dun-doverb, dun-vparse, dun-vparse2, dun-batch-parse):
      (dun-batch-parse2): Omit the dun- prefix from arguments dun-ignore
      dun-verblist.  Those are now constants and the byte compiler doesn't
      allow defconsts in lambda lists.
      48cb4a96
    • Mark Oteiza's avatar
      Move all dunnet globals up to the top · 33400529
      Mark Oteiza authored
      * lisp/play/dunnet.el: Adjust comments to reflect moved forms.
      (dun-visited, dun-current-room, dun-exitf):
      (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole):
      (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead):
      (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in):
      (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode):
      (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet):
      (dun-restricted, dun-ftptype, dun-endgame, dun-rooms):
      (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore):
      (dun-mode, dun-sauna-level, north, south, east, west, northeast):
      (southeast, northwest, southwest, up, down, in, out, dungeon-map):
      (dun-objnames, obj-special, dun-room-objects, dun-room-silents):
      (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts):
      (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc):
      (dun-diggables, dun-room-shorts, dun-endgame-questions): Move to the
      top of the file, before any uses.
      33400529
    • Michael Albinus's avatar
      Fix bug#25788 · 938426d1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-autoload-file-name-handler):
      Do not load tramp.el just for "/".  (Bug#25788)
      938426d1
    • YAMAMOTO Mitsuharu's avatar
      Fix fringe bitmap initialization on MS-Windows · e420e9f0
      YAMAMOTO Mitsuharu authored
      * src/fringe.c (init_fringe_bitmap) [HAVE_NTGUI]: Fix initialization
      of fb->bits.  (Bug#25673)
      e420e9f0
    • Stefan Monnier's avatar
      Change type of `rehash_threshold' and `pure' fields in hash-tables · fe927ecf
      Stefan Monnier authored
      * src/lisp.h (struct Lisp_Hash_Table): Change type of
      `rehash_threshold' and `pure' fields and move them after `count'.
      * src/fns.c (make_hash_table): Change type of `rehash_threshold' and `pure'.
      (Fmake_hash_table, Fhash_table_rehash_threshold):
      * src/category.c (hash_get_category_set):
      * src/xterm.c (syms_of_xterm):
      * src/profiler.c (make_log):
      * src/print.c (print_object):
      * src/alloc.c (purecopy_hash_table, purecopy): Adjust accordingly.
      fe927ecf
    • Paul Eggert's avatar
      Use 'char *FOO' instead of 'char* FOO' · b2a83eed
      Paul Eggert authored
      b2a83eed
    • Mark Oteiza's avatar
      More json.el changes · 7f89c208
      Mark Oteiza authored
      * lisp/json.el (json-read-keyword, json-read-number, json-read-object):
      (json-read-array): Just use = for char comparison.
      7f89c208
  3. 18 Feb, 2017 15 commits
    • Alan Mackenzie's avatar
      Fix edebug-spec on c-lang-defvar. · 861ff2ba
      Alan Mackenzie authored
      This allows c-lang-defvars with the symbol 'dont-doc in the place of the
      optional documentation to be instrumented for edebug.
      
      lisp/progmodes/cc-langs.el (top-level): Amend the edebug-spec for
      c-lang-defvar.
      (c-opt-identifier-concat-key, c-decl-prefix-or-start-re): remove redundant
      'dont-doc.
      861ff2ba
    • Lars Ingebrigtsen's avatar
      Lists used as plists now have to be an even length · 7d15daf7
      Lars Ingebrigtsen authored
      * lisp/net/eww.el (eww-size-text-inputs): `eww-form' isn't a plist.
      (eww-process-text-input): Not here, either.
      7d15daf7
    • Michael Albinus's avatar
      Unset `non-essential' in Tramp when not needed anymore · 6ad34b3d
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.3.2-pre".
      
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      Use `tramp-completion-mode-p'.
      
      * lisp/net/tramp.el (tramp-file-name-handler): Unset `non-essential'
      when file name doesn't match `tramp-completion-file-name-regexp'.
      6ad34b3d
    • Eli Zaretskii's avatar
      Automatically regenerate emacs.1 and *.rc files · ba6e7232
      Eli Zaretskii authored
      * Makefile.in (CONFIG_STATUS_FILES_IN): New variable, lists
      non-Makefile files produced by config.status.
      ($(MAKEFILE_NAME)): Depend on $(CONFIG_STATUS_FILES_IN), so that
      their targets are regenerated when the source changes.
      ba6e7232
    • Alan Mackenzie's avatar
      Set the syntax table in AWK Mode. · a848d36c
      Alan Mackenzie authored
      This is a partial reversion of CC Mode commit on 2016-05-09 17:49:45 +0000.
      It fixes bug #25722.
      
      lisp/progmodes/cc-mode.el (awk-mode): Explicitly set the syntax table.
      a848d36c
    • Göktuğ Kayaalp's avatar
      Fix Turkish language environment setup · 879a3e44
      Göktuğ Kayaalp authored
      * lisp/language/european.el ("Turkish"): Fix a typo in Turkish
      language setup.  (Bug#25763)
      879a3e44
    • Rami Ylimäki's avatar
      Support 24-bit direct colors on text terminals · e463e576
      Rami Ylimäki authored
      * src/term.c (init_tty): Use 24-bit terminal colors if corresponding
      foreground and background functions are present in terminal type
      definition.
      * src/tparam.h: Define prototype for tigetstr.
      
      * lisp/term/tty-colors.el (tty-color-define): Convert color palette
      index to pixel value on 16.7M color terminals.
      (tty-color-24bit): New function to convert color palette index to
      pixel value on 16.7M color terminals.
      (tty-color-desc): Don't approximate colors on 16.7M color terminals.
      * lisp/term/xterm.el (xterm-register-default-colors): Define all named
      TTY colors on 16.7M color terminals.
      
      * doc/misc/efaq.texi (Colors on a TTY): Add instructions on how to
      enable direct color TTY mode.
      * etc/NEWS: Mention direct color TTY mode and point to FAQ.
      e463e576
    • Rami Ylimäki's avatar
      Remove unused TN_max_pairs field · 464a51ed
      Rami Ylimäki authored
      * src/termchar.h (tty_display_info): Remove TN_max_pairs field,
      describing maximum number of terminal background/foreground color pairs.
      * src/term.c (tty_default_color_capabilities, tty_setup_colors)
      (init_tty): Remove references to TN_max_pairs.
      464a51ed
    • Eli Zaretskii's avatar
      Improve documentation of query-replace-from-to-separator · 723dd50a
      Eli Zaretskii authored
      * doc/emacs/search.texi (Query Replace): Document the meaning of
      the nil value of query-replace-from-to-separator.  (Bug#25482)
      723dd50a
    • Eli Zaretskii's avatar
      Improve commentary for a recent change in keyboard.c · b5ab3a52
      Eli Zaretskii authored
      * src/keyboard.c (Fset__this_command_keys): Add a comment about
      the magic 248 value.  (Bug#25612)
      b5ab3a52
    • Eli Zaretskii's avatar
      Avoid infloop in rect.el · 3ce07b18
      Eli Zaretskii authored
      * lisp/rect.el (rectangle--*-char): Avoid inflooping when called
      with argument N whose absolute value is greater than 1.  (Bug#25773)
      3ce07b18
    • Eli Zaretskii's avatar
      Remove annoying warnings about let-binding · 73ea77c8
      Eli Zaretskii authored
      * src/data.c (Fmake_variable_buffer_local, Fmake_local_variable):
      Remove warnings about making symbols local while let-bound.
      (Bug#25561)
      73ea77c8
    • Hong Xu's avatar
      Avoid errors when flyspell-generic-check-word-predicate is a lambda. · a83b6692
      Hong Xu authored
      * flyspell.el (flyspell-auto-correct-word, flyspell-word): Apply
      functionp instead of fboundp on
      flyspell-generic-check-word-predicate (Bug#25765).
      a83b6692
    • Glenn Morris's avatar
      Remove the build number from emacs-version variable · 22b22074
      Glenn Morris authored
      It's a largely internal detail that can confuse users.  (Bug#25590)
      * lisp/version.el (emacs-build-number): New constant.
      (emacs-version): Use emacs-build-number.
      * lisp/loadup.el (top-level): When dumping, increment
      emacs-build-number rather than emacs-version.
      * src/emacs.c (emacs-version): Doc fix.
      * doc/lispref/intro.texi (Version Info): Update emacs-version details.
      Mention emacs-build-number.
      * lisp/gnus/gnus-util.el (gnus-emacs-version):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * admin/admin.el (set-version): Update for emacs-version change.
      ; * etc/NEWS: Mention this.
      22b22074
    • Glenn Morris's avatar
      Ensure that user-mail-address always has a value · 8675f9c8
      Glenn Morris authored
      * lisp/startup.el (user-mail-address): Initialize in the normal way.
      (command-line): Reset user-mail-address if needed using
      standard custom machinery.
      * lisp/mail/feedmail.el (feedmail-fiddle-from):
      * lisp/mail/rmail.el (rmail-unknown-mail-followup-to):
      * lisp/mail/rmailsum.el (rmail-header-summary):
      Simplify now that user-mail-address is always set.
      ; * doc/lispref/os.texi (System Environment): Remove fixme comment.
      8675f9c8