1. 07 Jun, 2014 2 commits
    • 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.
      2be772ff
    • 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.
      3f2f9b6a
  2. 06 Jun, 2014 8 commits
  3. 05 Jun, 2014 17 commits
    • Leo Liu's avatar
      d4e355b4
    • 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
      dd97cafc
    • Dmitry Antipov's avatar
      * INSTALL: Mention SVG image support. · 04ee0de0
      Dmitry Antipov authored
      04ee0de0
    • 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.
      1d7f01ee
    • 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
      `tildify-ignored-environments-alist'.
      03d7d160
    • 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.
      df344ab4
    • 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
      documents.
      eb54c73a
    • 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.
      e01e361f
    • 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:
      
          \\\\verb\\(.\\)\\|\\\\verb\\*\\(.\\)
      
      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.
      9342feec
    • 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
      while-loop.
      
      * tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug):
      New test validating fix to the above bug.
      af9a3b28
    • Mario Lang's avatar
      * woman.el (woman-mapcan): Remove. · a1d799c2
      Mario Lang authored
      (woman-parse-colon-path): Use cl-mapcan instead.
      a1d799c2
    • 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.
      4545be9d
    • 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.
      ea633fff
    • Katsumi Yamaoka's avatar
      Gnus: fix last change · 0d46b5f1
      Katsumi Yamaoka authored
      * gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
      (gnus-article-read-summary-keys):
      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.
      0d46b5f1
    • Katsumi Yamaoka's avatar
      Gnus: bugfixes to make `gnus-mime-save-part-and-strip' work again · 343d16e4
      Katsumi Yamaoka authored
      * 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): Set insertion type of end-marker, not only
      start-marker, of undisplayer so as to stay after inserted text.
      343d16e4
    • Paul Eggert's avatar
      * configure.ac: --without-all now implies --without-xft, --disable-acl. · 444060a5
      Paul Eggert authored
      * INSTALL: Remove apparently unmaintained documentation about what
      --without-all exactly means.
      444060a5
  4. 04 Jun, 2014 7 commits
  5. 03 Jun, 2014 6 commits