1. 24 Oct, 2020 18 commits
    • Basil L. Contovounesios's avatar
      ; Fix last change · 8c2382d3
      Basil L. Contovounesios authored
      8c2382d3
    • Stefan Kangas's avatar
      Re-introduce variable for world clock timer · 97267d2b
      Stefan Kangas authored
      * lisp/time.el (world-clock--timer): New variable.
      (world-clock): Save timer to above variable when it is started.
      (world-clock-cancel-timer): Delete timer saved in variable instead of
      searching for the function name.
      97267d2b
    • Stefan Kangas's avatar
      Use lexical-binding in several language support libraries · 6f92674c
      Stefan Kangas authored
      * lisp/language/burmese.el:
      * lisp/language/cham.el:
      * lisp/language/czech.el:
      * lisp/language/georgian.el:
      * lisp/language/greek.el:
      * lisp/language/khmer.el:
      * lisp/language/romanian.el:
      * lisp/language/sinhala.el:
      * lisp/language/slovak.el:
      * lisp/language/tai-viet.el:
      * lisp/language/vietnamese.el: Use lexical-binding.
      6f92674c
    • Michael Albinus's avatar
      Accept nil COMMAND in tramp-sh-handle-make-process (Bug#44151) · 95553309
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Accept nil
      COMMAND.  (Bug#44151)
      
      * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process):
      Extend test.
      95553309
    • Stefan Kangas's avatar
      Revert "Use lexical-binding in bindat.el" · 6dfcb4d4
      Stefan Kangas authored
      This reverts commit a497b8e4.
      
      This conversion to lexical-binding broke the eval specification,
      documented in the ELisp manual.  We will probably want to add tests
      for that before we can confidently convert this to lexical-binding.
      Problem reported by Mattias Engdegård <mattiase@acm.org>.
      6dfcb4d4
    • Stefan Kangas's avatar
      Use lexical-binding in most term libraries · f378d65e
      Stefan Kangas authored
      * lisp/term/AT386.el:
      * lisp/term/internal.el:
      * lisp/term/iris-ansi.el:
      * lisp/term/lk201.el:
      * lisp/term/news.el:
      * lisp/term/rxvt.el:
      * lisp/term/sun.el:
      * lisp/term/tvi970.el:
      * lisp/term/wyse50.el: Use lexical-binding.
      f378d65e
    • Stefan Kangas's avatar
      Use lexical-binding in copyright.el and add tests · 9f1dd2a7
      Stefan Kangas authored
      * lisp/emacs-lisp/copyright.el: Use lexical-binding.  Remove
      redundant :group args.
      * test/lisp/emacs-lisp/copyright-tests.el: New file.
      9f1dd2a7
    • Stefan Kangas's avatar
    • Stefan Kangas's avatar
      Move faces.el test data to follow our conventions · 228d9d61
      Stefan Kangas authored
      * test/lisp/faces-tests.el (ert-x): Require.
      (faces--test-data-dir): Remove variable.
      (faces--test-extend-with-themes): Use ert-resource-directory.
      * test/lisp/faces-resources/*: Moved from test/data/themes/*.
      228d9d61
    • Jared Finder's avatar
      Fix a bug where the wrong menu would be triggered by mouse · 2c487c47
      Jared Finder authored
      For layouts such as the following, clicking the "l" in Tools with the
      right window focused would trigger the File menu, not the Tools menu.
      This is because the event would have window coordinate (1 . 0).
      Similarly, clicking the "p" in Help would trigger the Edit menu.
      
      Example Emacs frame:
      +--------------------------------------------------------+
      |File Edit Options Buffers Tools Help                    |
      |;; This buffer is for text$|;; This buffer is for text $|
      |;; To create a file, visit$|;; To create a file, visit $|
      |                           |                            |
      |                           |                            |
      |-UUU:----F1  *scratch*     |-UUU:----F1  *scratch*      |
      |                                                        |
      +--------------------------------------------------------+
      * lisp/menu-bar.el (menu-bar-open-mouse): Reject clicks not on
      the menu bar.
      *lisp/xt-mouse.el (xterm-mouse-event): Pass the current frame to
      'posn-at-x-y', to make the effect consistent with other mouse-handling
      features.
      2c487c47
    • Jared Finder's avatar
      Enable TTY menus with xterm-mouse-mode · 92d37029
      Jared Finder authored
      * lisp/tmm.el: No need to bind 'tmm-menubar-mouse' to mouse clicks
      on the menu bar.
      * lisp/menu-bar.el (global-map): Bind 'menu-bar-open-mouse' to
      mouse click on menu bar.  This is needed in xt-mouse.
      
      * etc/NEWS: Announce TTY menu support in xterm-mouse-mode.
      92d37029
    • Jared Finder's avatar
      Make TTY menus work with xterm-mouse-mode · 0695c9e8
      Jared Finder authored
      * src/term.c (mouse_get_xy): Call 'mouse_position' passing it the
      value of 'tty-menu-calls-mouse-position-function' as the
      argument.
      (syms_of_term) <tty-menu-calls-mouse-position-function>: New
      DEFVAR_BOOL.
      * src/frame.c (mouse_position): New function, with most of the
      code from Fmouse_position, but call 'mouse-position-function' only
      if called with non-zero argument.
      (Fmouse_position): Call 'mouse_position' to do the job.
      
      * lisp/xt-mouse.el (xterm-mouse-translate-1): Respect
      'track-mouse'.
      (xterm-mouse-mode): Set 'tty-menu-calls-mouse-position-function'
      when setting 'mouse-position-function'.
      (xterm-mouse-tracking-enable-sequence): Use SET_ANY_EVENT_MOUSE
      (0x1003) so that mouse movement can be reported even if no buttons
      are pressed.  Doc fix.
      * lisp/menu-bar.el (menu-bar-define-mouse-key): New function.
      (tty-menu-navigation-map): Call it.
      
      * doc/lispref/frames.texi (Mouse Position): Document
      'tty-menu-calls-mouse-position-function'.
      
      * etc/NEWS: Announce 'tty-menu-calls-mouse-position-function'.
      0695c9e8
    • Jared Finder's avatar
      Adding mouse controls to menu-bar.el. · 9d230684
      Jared Finder authored
      * lisp/isearch.el (tmm-menubar-keymap): Remove declare-function.
      * lisp/menu-bar.el (menu-bar-open-mouse, menu-bar-keymap)
      (menu-bar-current-active-maps, menu-bar-item-at-x): New functions.
      *lisp.tmm.el (tmm-menubar-keymap, tmm-get-keybind): Functions
      deleted.
      (tmm-menubar): Call 'menu-bar-item-at-x'.
      9d230684
    • Eli Zaretskii's avatar
      Fix last change in image.c for MS-Windows · 5b3e4db5
      Eli Zaretskii authored
      * src/image.c [LIBRSVG_CHECK_VERSION (2, 46, 0)]: Define
      prototype for rsvg_handle_get_geometry_for_layer.
      (init_svg_functions) [LIBRSVG_CHECK_VERSION (2, 46, 0)]: Load
      rsvg_handle_get_geometry_for_layer from the DLL, instead of
      rsvg_handle_get_dimensions.
      (rsvg_handle_get_geometry_for_layer) [LIBRSVG_CHECK_VERSION (2, 46, 0)]:
      Define macro.  (Bug#44065)
      5b3e4db5
    • Stefan Kangas's avatar
      Fix a broken unsafep test · 3af9e84f
      Stefan Kangas authored
      * test/lisp/emacs-lisp/unsafep-tests.el
      (test-unsafep/message): Fix test case.
      
      (unsafep-tests--safe): Rename from testcover-unsafep-safe.
      (unsafep-tests--unsafe): Rename from testcover-unsafep-unsafe.
      (test-unsafep/safe, test-unsafep/unsafe): Doc fix.  Adjust usage
      of above renamed variables.
      3af9e84f
    • Stefan Kangas's avatar
      Move epg.el test data to follow our conventions · 8461cfc8
      Stefan Kangas authored
      * test/lisp/epg-tests.el (ert-x): Require.
      (epg-tests-data-directory): Remove variable.
      (with-epg-tests): Use ert-resource-file.
      * test/lisp/epg-resources/*: Moved from test/data/epg/.
      8461cfc8
    • Stefan Kangas's avatar
      Move shr.el test data to follow our conventions · e402887d
      Stefan Kangas authored
      * test/lisp/net/shr-tests.el (ert, ert-x): Require.
      (shr-tests--datadir): Remove variable.
      (shr-test, rendering): Use ert-resource-directory.
      * test/lisp/net/shr-resources/*: Move from test/data/shr/.
      e402887d
    • Stefan Kangas's avatar
      Move mml-sec.el test data to follow our conventions · ab7dddea
      Stefan Kangas authored
      * test/lisp/gnus/mml-sec-tests.el (ert-x): Require.
      (mml-secure-test-fixture, mml-sec-test--kill-gpg-agent):
      Use ert-resource-directory.
      * test/lisp/gnus/mml-sec-resources/*: Moved from test/data/mml-sec/.
      * .gitignore: Update location of moved file "random_seed".
      ab7dddea
  2. 23 Oct, 2020 11 commits
    • Stefan Kangas's avatar
      Move more test data to follow our conventions · 72c9d4be
      Stefan Kangas authored
      * test/data/minibuffer-test-cttq$tion: Move from here...
      * test/lisp/minibuffer-resources/data/minibuffer-test-cttq$tion:
      ...to here.
      * test/lisp/minibuffer-resources/lisp/cedet/semantic-utest-c.test:
      * test/lisp/minibuffer-resources/lisp/cedet/semantic-utest.test:
      New files.
      * test/lisp/minibuffer-tests.el (ert, ert-x): Require.
      (completion-table-test-quoting): Use ert-resource-directory.
      
      * test/data/net/cert.pem:
      * test/data/net/key.pem: Move frome here...
      * test/lisp/net/network-stream-resources/cert.pem:
      * test/lisp/net/network-stream-resources/key.pem: ...to here.
      * test/lisp/net/network-stream-tests.el (ert, ert-x): Require.
      (network-stream-tests--datadir): Remove variable.
      (make-tls-server): Use ert-resource-file.
      
      * test/data/vc/diff-mode/hello_emacs.c:
      * test/data/vc/diff-mode/hello_emacs_1.c:
      * test/data/vc/diff-mode/hello_world.c:
      * test/data/vc/diff-mode/hello_world_1.c: Move from here...
      * test/lisp/vc/diff-mode-resources/hello_emacs.c:
      * test/lisp/vc/diff-mode-resources/hello_emacs_1.c:
      * test/lisp/vc/diff-mode-resources/hello_world.c:
      * test/lisp/vc/diff-mode-resources/hello_world_1.c: ...to here.
      * test/lisp/vc/diff-mode-tests.el (ert, ert-x): Require.
      (diff-mode-tests--datadir): Remove variable.
      (diff-mode-test-font-lock-syntax-one-line)
      (diff-mode-test-font-lock): Use ert-resource-directory.
      
      * test/data/xdg/l10n.desktop:
      * test/data/xdg/malformed.desktop:
      * test/data/xdg/mimeapps.list:
      * test/data/xdg/mimeinfo.cache:
      * test/data/xdg/test.desktop: Move from here...
      * test/lisp/xdg-resources/l10n.desktop:
      * test/lisp/xdg-resources/malformed.desktop:
      * test/lisp/xdg-resources/mimeapps.list:
      * test/lisp/xdg-resources/mimeinfo.cache:
      * test/lisp/xdg-resources/test.desktop: ...to here.
      * test/lisp/xdg-tests.el (ert-x): Require.
      (xdg-tests-data-dir): Remove variable.
      (xdg-desktop-parsing, xdg-mime-associations): Use ert-resource-file.
      72c9d4be
    • Michael Albinus's avatar
      Fix error in tramp-sh-handle-make-process · 46f5d286
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't use heredoc
      script whent the argument contains a string.
      46f5d286
    • Stefan Kangas's avatar
      Move some test data to follow our conventions · 49bc8586
      Stefan Kangas authored
      * test/data/emacs-module/mod-test.c: Move from here...
      * test/src/emacs-module-resources/mod-test.c: ...to here.
      * test/src/emacs-module-tests.el (ert-x): Require.
      (mod-test-file, module/describe-function-1):
      * test/Makefile.in (test_module_dir): Adjust for move.
      
      * test/data/files-bug18141.el.gz: Move from here...
      * test/lisp/files-resources/files-bug18141.el.gz: ... to here.
      * test/lisp/files-tests.el (ert-x): Require.
      (files-test-bug-18141-file): Use ert-resource-file.
      
      * test/data/mailcap/mime.types: Move from here...
      * test/lisp/net/mailcap-resources/mime.types: ...to here.
      * test/lisp/net/mailcap-tests.el (ert-x): Require.
      (mailcap-tests-path): Use ert-resource-file.
      
      * test/data/somelib.el:
      * test/data/somelib2.el: Move from here...
      * test/src/lread-resources/somelib.el:
      * test/src/lread-resources/somelib2.el: ...to here.
      * test/src/lread-tests.el (ert, ert-x): Require.
      (lread-test-bug26837): Use ert-resource-directory.
      
      * test/data/syntax-comments.txt: Move from here....
      * test/src/syntax-resources/syntax-comments.txt: ...to here.
      * test/src/syntax-tests.el (ert-x): Require.
      (syntax-comments, syntax-br-comments, syntax-pps-comments):
      Use ert-resource-file.
      
      * test/data/xref/file1.txt:
      * test/data/xref/file2.txt: Move from here...
      * test/lisp/progmodes/xref-resources/file1.txt:
      * test/lisp/progmodes/xref-resources/file2.txt: ...to here.
      * test/lisp/progmodes/xref-tests.el (ert, ert-x): Require.
      (xref-tests-data-dir): Use ert-resource-directory.
      49bc8586
    • Eli Zaretskii's avatar
      Set up composition-function-table for Egyptian · d21cdb6c
      Eli Zaretskii authored
      * lisp/language/misc-lang.el (composition-function-table): Set up
      for Egyptian Hieroglyphs.
      d21cdb6c
    • Eli Zaretskii's avatar
      Remove most of charset markup from etc/HELLO · 4a92e2f9
      Eli Zaretskii authored
      For the reasons, see the discussion that started in
      https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00407.html
      and its conclusion in
      https://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00144.html.
      The only markup left is in the preamble, just to show the example
      of this facility.
      4a92e2f9
    • Olivier Certner's avatar
      ERC: Fix ERC's IBuffer format "crash" on killed server buffer · 944c4708
      Olivier Certner authored
      * lisp/erc/erc-ibuffer.el (erc-server-name): Fix a crash when
      displaying (or updating) an IBuffer buffer using ERC's first IBuffer
      format.  This happens when one ERC buffer has its associated server
      buffer killed, e.g., voluntarily or automatically after server
      disconnection when `erc-kill-server-buffer-on-quit' is set to t.  The
      culprit is the "Server" column, which returns nil in this case.
      Display "(closed)" instead (bug#44156).
      Copyright-paperwork-exempt: yes
      944c4708
    • Ruthra Kumar's avatar
      Add support for squashfs files in archive mode · ead957a2
      Ruthra Kumar authored
      * lisp/arc-mode.el (archive-squashfs-extract): New variable
      (bug#43827).
      (archive-find-type): Identify squashfs.
      (archive-squashfs-summarize, archive-squashfs-extract-by-stdout):
      New functions to parse/extract squashfs.
      
      * lisp/files.el (auto-mode-alist): Add squashfs.
      ead957a2
    • Ulf Jasper's avatar
      Move icalendar test data to test/lisp/calendar/icalendar-resources · 9e4f11a1
      Ulf Jasper authored
      * test/lisp/calendar/icalendar-tests.el (ert-x): Required for
      'ert-resource-file'.
      (icalendar-tests--data-dir): Removed.
      (icalendar-tests--get-file-contents): Use 'ert-resource-file' for
      finding test data files.
      * test/data/icalendar/*: Moved to test/lisp/calendar/icalendar-resources/.
      * test/lisp/calendar/icalendar-resources/*: Moved from test/data/icalendar.
      9e4f11a1
    • Stefan Kangas's avatar
      Clean up temporary files after package tests · 22e5239c
      Stefan Kangas authored
      * test/lisp/emacs-lisp/package-tests.el (with-package-test): Remove
      temporary files after test.  (Bug#43359)
      22e5239c
    • Mattias Engdegård's avatar
      Use lexical binding in ffap.el · c57a60ee
      Mattias Engdegård authored
      * lisp/ffap.el (ffap-search-backward-file-end): Remove binding for
      variable shadowing an optional (and never used) argument.
      (ffap--gopher-var-on-line): Remove unused variable.
      c57a60ee
    • Stefan Kangas's avatar
  3. 22 Oct, 2020 11 commits