1. 08 Jun, 2014 3 commits
    • Dmitry Antipov's avatar
      Change object marking routines to minimize stack usage. · 83f14500
      Dmitry Antipov authored
      This change moves a few cold paths from mark_object to NO_INLINE
      functions and adjusts symbol marking loop.  According to GCC 4.8.2
      -Wstack-usage, this reduces mark_object's stack usage from 80 to
      48 bytes on a 64-bit system.  For a long byte-force-recompile runs,
      stack usage at the mark phase is reduced up to 28%.  Surprisingly,
      it also gains up to 3% in speed (with default '-O2 -g3' flags).
      * alloc.c (mark_compiled, mark_localized_symbol): New functions,
      refactored out from ...
      (mark_object): ... adjusted user.  Also mark symbols in a tight
      inner loop.
      (mark_face_cache): Add NO_INLINE.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Some Acknowledgments updates for the manual · da8de290
      Glenn Morris authored
      * doc/emacs/ack.texi (Acknowledgments): Updates.
      * doc/emacs/emacs.texi (Acknowledgments): Updates.
  2. 07 Jun, 2014 4 commits
    • Glenn Morris's avatar
      Doc tweaks re prettify-symbols-mode · bc257cae
      Glenn Morris authored
      * doc/emacs/programs.texi (Prettifying Symbols): Remove node.
      (Misc for Programs): Mention more briefly here.
      * doc/emacs emacs.texi (Top): Update menu.
    • Eli Zaretskii's avatar
      Document latest changes in make_lispy_position. · 2be772ff
      Eli Zaretskii authored
       doc/lispref/commands.texi (Click Events): Update contents of click event's
       position list due to last changes in make_lispy_position.
        etc/NEWS: Mention the incompatible change.
    • Eli Zaretskii's avatar
      Fix last commit. · 3f2f9b6a
      Eli Zaretskii authored
       src/term.c (tty_menu_show) [WINDOWSNT]: Make tty_menu_show extern
       only for WINDOWSNT.
       src/menu.h (tty_menu_show) [WINDOWSNT]: Declare extern only for WINDOWSNT.
    • Paul Eggert's avatar
      Port better to AIX. · a0e26ff0
      Paul Eggert authored
      * configure.ac (with_xpm_set): New shell var.
      (_THREAD_SAFE): Define on AIX if HAVE_PTHREAD.
      (with_xpm): Default to 'no' on AIX.
      (LIBXPM): Append -lXpm if -lXaw is also used, as the latter
      requires the former on AIX.
      Fixes: debbugs:17598
  3. 06 Jun, 2014 14 commits
  4. 05 Jun, 2014 19 commits
    • Juri Linkov's avatar
      * etc/themes/deeper-blue-theme.el (diff-added, diff-changed, diff-removed): · 9f7c9816
      Juri Linkov authored
      Set face definitions explicitly.  Inherit indicator faces from them.
      Fixes: debbugs:17695
    • Leo Liu's avatar
    • Katsumi Yamaoka's avatar
      lisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve... · dd97cafc
      Katsumi Yamaoka authored
      lisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve criterion that finds parts to display
    • Dmitry Antipov's avatar
      * INSTALL: Mention SVG image support. · 04ee0de0
      Dmitry Antipov authored
    • Leo Liu's avatar
    • Michal Nazarewicz's avatar
      * tests/automated/tildify-tests.el (tildify-test--test): Optimise the · 1d7f01ee
      Michal Nazarewicz authored
      test slightly by reusing the same temporary buffer across multiple
      test cases.
    • Michal Nazarewicz's avatar
      tildify.el: Rewrite `tildify-region' and co., add foreach function. · 03d7d160
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el (tildify-foreach-region-outside-env): New
      function which calls a callback on portions of the buffer that are
      outside of ignored environments.
      (tildify-build-regexp): Remove function since it is now
      incorporated in `tildify-foreach-region-outside-env' where it is
      optimised and simplified by the use of `mapconcat'.
      (tildify-tildify): Return number of substitutions made so that…
      (tildify-count): …can be removed.
      (tildify-find-env): Accept a new PAIRS argument which was
      previously looked up in `tildify-ignored-environments-alist' each
      time the function was called.  With this change, the lookup is
      performed only once in `tildify-foreach-region-outside-env'.
      (tildify-region): Greatly simplify the function since now most of
      the work is done by `tildify-foreach-region-outside-env'.
      (tildify-mode-alist): Simplify slightly by avoiding if and setq
      and instead using or.
      * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug)
      (tildify-test-find-env-group-index-bug): Update to support new
      signature of the `tildify-foreach-region-outside-env' function.
      Namely, it now takes pairs as an argument instead of looking it up in
    • Michal Nazarewicz's avatar
      tildify.el: Optimise environments regexes · df344ab4
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el (tildify-ignored-environments-alist):
      Each time beginning of an environment to ignore is found,
      `tildify-find-env' needs to identify regexp for the ending
      of the environment.  This is done by trying all the opening
      regexes on matched text in a loop, so to speed that up, this
      loop should have fewer things to match, which can be done by
      using alternatives in the opening regexes.
      Coincidentally, this should make matching of the opening
      regexp faster as well thanks to the use of `regexp-opt' and
      having common prefix pulled from many regexes.
    • Michal Nazarewicz's avatar
      tildify.el: Better support for XML · eb54c73a
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el  (tildify-string-alist)
      (tildify-ignored-environments-alist): Add `nxml-mode' to the list of
      supported modes since `xml-mode' is no longer a thing but just an
      alias to the former.  Also include comments and insides of tags in
      `tildify-ignored-environments-alist' for XML modes.  Finally, since
      XML does not define “ ”[1], use a numeric reference for
      a no-break space (namely “ ”)
      [1] XML specification defines only a handful of predefined entities.
          The list is at <http://www.w3.org/TR/REC-xml/#sec-predefined-ent>
          and includes only &lt;, &gt;, &amp;, &apos; and &quot; (meaning <,
          >, &, ' and " respectively).  This is in contrast to HTML and even
          XHTML which defined a whole bunch of entities including “&nbsp;”.
      * automated/tildify-tests.el (tildify-test--example-html): Add support
      for generating XML code, so that…
      (tildify-test-xml) …test can be added to check handling of XML
    • Michal Nazarewicz's avatar
      tildify.el: Improve defcustom's types · e01e361f
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el (tildify-pattern-alist)
      (tildify-string-alist, tildify-ignored-environments-alist):
      Add more tags explaining what each value means and replace
      “sexp” used in `tildify-ignored-environments-alist' with
      a full type declaration.
    • Michal Nazarewicz's avatar
      tildify.el: Fix matched group indexes in end-regex building · 9342feec
      Michal Nazarewicz authored
      * lisp/textmodes/tildifi.el (tildify-find-env): When looking for
      a start of an ignore-environment, the regex is built by
      concatenating regexes of all the environments configured in
      `tildify-ignored-environments-alist'.  So for example, the following
      list could be used to match TeX's \verb and \verb* commands:
          (("\\\\verb\\(.\\)" . (1))
           ("\\\\verb\\*\\(.\\)" . (1)))
      This would result in the following regex being used to find the start
      of any of the variants of the \verb command:
      But now, if “\\\\verb\\*\\(.\\)” matches, the first capture group
      won't match anything, and thus (match-string 1) will be nil, which
      will cause building of the end-matching regex to fail.
      Fix this by using capture groups from the time when the opening
      regexes are matched individually.
      * tests/automated/tildify-tests.el (tildify-test-find-env-group-index-bug):
      New test validating fix to the above bug.
    • Michal Nazarewicz's avatar
      tildify.el: Fix end-regex building in `tildify-find-env' · af9a3b28
      Michal Nazarewicz authored
      * lisp/textmodes/tildify.el (tildify-find-env): The
      `tildify-ignored-environments-alist' allows the end-regex
      to be provided not as a static string but mix of strings and
      indexes of groups matched the begin-regex.  For example, the
      “\verb!…!” TeX-command (where “!” is an arbitrary character)
      is handled using:
          ("\\\\verb\\*?\\(.\\)" . (1))
      In the same way, the following should be supported as well:
          ("open-\\(.\\)" . ("end-" 1))
      However the tildify-find-env function fails at
          (concat result
                  (if (stringp (setq aux (car expression)))
                       expression  ; BUG: expression is a list
                     (regexp-quote (match-string aux))))
      where the string part is handled incorrectly.
      The most trivial fix would be to replace `expression'
      in the true-part of the if-statement with `aux', but
      instead, this commit optimises `tildify-find-env' by
      changing it to use `mapconcat' rather than open-coded
      * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug):
      New test validating fix to the above bug.
    • Mario Lang's avatar
      * woman.el (woman-mapcan): Remove. · a1d799c2
      Mario Lang authored
      (woman-parse-colon-path): Use cl-mapcan instead.
    • Paul Eggert's avatar
      Spelling fixes. · 136c315e
      Paul Eggert authored
    • Paul Eggert's avatar
      Try harder to find GNU Make when configuring. · 4545be9d
      Paul Eggert authored
      * configure.ac (AC_PROG_MAKE_SET): Define a dummy.
      (MAKE): Set it to GNU Make, if one can be found.
      Search PATH for 'make', 'gmake', 'gnumake'.
      This works better on platforms like AIX, where GNU Make
      might be in /opt/freeware/bin/make, and reside
      behind /usr/bin/make in the PATH.
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      * configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM. · ea633fff
      Dmitry Antipov authored
      * nt/inc/ms-w32.h (POLL_FOR_INPUT): Likewise.
      * src/keyboard.c, src/process.c: Do not define POLL_FOR_INPUT here
      because it will be defined in generated config.h if needed.
    • Glenn Morris's avatar
      Some documentation for signing of packages · e1b3f35f
      Glenn Morris authored
      * doc/emacs/package.texi (Package Menu, Package Installation):
      Mention signed packages.
      * doc/lispref/package.texi (Package Archives): Mention signing packages.
      * lisp/emacs-lisp/package.el (package-check-signature)
      (package-unsigned-archives): Doc fixes.
      * etc/NEWS: Related edits.
    • Katsumi Yamaoka's avatar
      Gnus: fix last change · 0d46b5f1
      Katsumi Yamaoka authored
      * gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
      Don't bug out when there is no article in the summary buffer.
      * gnus-art.el (gnus-mm-display-part):
      * mm-decode.el (mm-shr):
      * mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
      (mm-insert-inline): Revert last changes.