summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Drop XEmacs conditional from skeleton testsHEADmasterUlrich Müller6 days3-38/+41
| | | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-skeleton): * test/gentoo-newsitem-mode-tests.el (gentoo-newsitem-test-skeleton): Override pos-visible-in-window-p unconditionally. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Version 1.76 releasedebuild-mode-1.76Ulrich Müller9 days3-2/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Keywords regenerated from eclassesUlrich Müller9 days2-22/+19
| | | | | | | * ebuild-mode-keywords.el (ebuild-mode-keywords-eclass): Regenerated. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update name of devbook document elementUlrich Müller9 days3-5/+11
| | | | | | | | * devbook-mode.el (devbook-set-schema, devbook-insert-skeleton): The document element has been renamed from guide to devbook. * test/devbook-mode-tests.el (devbook-mode-test-skeleton): Update. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow fragment identifier in bug regexpUlrich Müller10 days3-2/+13
| | | | | | | | * ebuild-mode.el (ebuild-mode-bug-regexp): Allow a fragment identifier, in order to refer to a specific comment. * test/ebuild-mode-tests.el (ebuild-mode-test-bug-url): Update. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Call rng-locate-schema-file when locating a devbook schemaUlrich Müller2024-11-063-25/+44
| | | | | | | | | | | * devbook-mode.el (devbook-set-schema): Renamed from devbook-locate-schema-file. Call rng-locate-schema-file first, then fall back to parent directories. (devbook-mode): Update caller. * test/devbook-mode-tests.el (devbook-mode-test-set-schema): Renamed from devbook-mode-test-locate-schema and updated. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Simplify test code for skeleton functionsUlrich Müller2024-11-065-71/+57
| | | | | | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-skeleton): * test/glep-mode-tests.el (glep-mode-test-skeleton): * test/gentoo-newsitem-mode-tests.el (gentoo-newsitem-test-skeleton): * test/devbook-mode-tests.el (devbook-mode-test-skeleton): Move variable and function for test input into the cl-letf* form and delete them from global scope. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Make XEmacs less chatty in testsUlrich Müller2024-11-042-1/+8
| | | | | | | * test/xemacs-test-wrapper.el (ert-deftest): Silence info-level warnings in XEmacs 21.5. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix a typoUlrich Müller2024-11-042-1/+3
| | | | | | * ebuild-mode.el (ebuild-run-command-*): Doc fix. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Delete XEmacs 21.4 compatibility codeUlrich Müller2024-11-043-22/+14
| | | | | | | | | * ebuild-mode.el (ebuild-mode-get-completion-function): (ebuild-mode-get-keywords, ebuild-mode-unescape-string): * test/ebuild-mode-tests.el (ebuild-mode-test-unescape-string): Delete XEmacs 21.4 compatibility code. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Delete XEmacs 21.4 compat function for format-time-stringUlrich Müller2024-11-045-39/+23
| | | | | | | | | | | | | | | * ebuild-mode.el (ebuild-mode-time-string): Delete compatibility function for XEmacs 21.4. (ebuild-mode-update-copyright, ebuild-mode-insert-skeleton) (ebuild-mode-insert-tag-line): Update all callers. * gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): * glep-mode.el (glep-mode-update-last-modified) (glep-mode-insert-skeleton): Update all callers. * test/ebuild-mode-tests.el (ebuild-mode-test-run-with-fixed-time): Update macro. (ebuild-mode-test-time-string): Delete test. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Add comment in testsUlrich Müller2024-10-242-0/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New test for devbook-locate-schema-fileUlrich Müller2024-10-233-1/+27
| | | | | | | | | * devbook-mode.el (devbook-locate-schema-file): Be less verbose if noninteractive. * test/devbook-mode-tests.el (devbook-mode-test-locate-schema): New test. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Avoid e as variable nameUlrich Müller2024-10-143-20/+24
| | | | | | | | * ebuild-mode.el: * test/ebuild-mode-tests.el: Avoid e as variable name because some Emacs versions define it as a global constant for Euler's number. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update a commentUlrich Müller2024-10-131-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Try harder to find the devbook schema fileUlrich Müller2024-10-122-1/+30
| | | | | | | | | * devbook-mode.el (rng-loc): Require. (devbook-schema-file-name): New variable. (devbook-locate-schema-file): New function. (devbook-mode): Call it unless we already have a schema. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Do not let-bind special variablesUlrich Müller2024-10-124-55/+64
| | | | | | | | | | | | | * ebuild-mode.el (ebuild-mode-tabify): Do not let-bind tabify-regexp because it is a special variable. (ebuild-run-command): Ditto for shell-command. * ebuild-mode.el: * glep-mode.el: * test/ebuild-mode-tests.el: Use unhyphenated names for lexical variables throughout, in order not to accidentally override any special variables. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Remove fallback to profiles.descUlrich Müller2024-10-082-20/+9
| | | | | | | * ebuild-mode.el (ebuild-mode-arch-stable-list): Don't fall back to profiles.desc to determine whether an arch has stable keywords. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update URL in commentUlrich Müller2024-10-081-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix EMACSFLAGSUlrich Müller2024-10-082-1/+3
| | | | | | * Makefile (EMACSFLAGS): Use single hyphen for compatibility. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New test for font-lock keywordsUlrich Müller2024-10-083-36/+66
| | | | | | | | | | * ebuild-mode.el (ebuild-mode-collect-and-split): Preserve order. (ebuild-mode-font-lock-keywords): Add docstring. * test/ebuild-mode-tests.el (ebuild-mode-test-collect-and-split): Update. (ebuild-mode-test-font-lock-keywords): New test. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update documentationUlrich Müller2024-10-052-2/+20
| | | | | | | | * ebuild-mode.texi (ebuild-repo-mode): Document the bug-reference feature. (devbook-mode): Add cross reference to the nXML Mode manual. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update the condition for enabling bug-referenceUlrich Müller2024-10-052-10/+15
| | | | | | | | * ebuild-mode.el (ebuild-repo-mode): Don't set the bug-reference-* variables if ebuild-mode-enable-bug-reference is nil. Test for bug-reference-prog-mode at run time instead of compile time. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Set font-lock keywords for gentoo-newsitem-mode in the mode hookUlrich Müller2024-10-022-2/+11
| | | | | | | | | * gentoo-newsitem-mode.el (gentoo-newsitem-mode): Don't set font-lock-defaults. (gentoo-newsitem-add-font-lock): New function. (gentoo-newsitem-mode-hook): Add it to the mode hook. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Shorten some function names in testsUlrich Müller2024-10-022-9/+13
| | | | | | | | * test/gentoo-newsitem-mode-tests.el (gentoo-newsitem-test-input) (gentoo-newsitem-test-font-lock, gentoo-newsitem-test-skeleton) (gentoo-newsitem-test-keybindings): Shorten names. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix a byte-compiler warning in testsUlrich Müller2024-10-023-18/+20
| | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-run-with-fixed-time): * test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time): Use func-arity to detect the calling convention for encode-time. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix some byte-compiler warnings in testsUlrich Müller2024-10-023-26/+23
| | | | | | | | | | | | | * test/ebuild-mode-tests.el (cl-letf, cl-letf*): Enclose their definition in eval-when-compile. (ebuild-mode-test-font-lock): Call font-lock-fontify-region instead of font-lock-fontify-buffer. This is silent and also avoids the noninteractive trickery. * test/gentoo-newsitem-mode-tests.el (cl-letf, cl-letf*) (gentoo-newsitem-mode-test-font-lock): Ditto. (gentoo-newsitem-mode-test-run-silently): Remove. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Remove unnecessary *-run-silently wrappers in testsUlrich Müller2024-10-023-14/+20
| | | | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-skeleton): Remove unnecessary ebuild-mode-test-run-silently. * test/gentoo-newsitem-mode-tests.el (gentoo-newsitem-mode-test-skeleton): Remove unnecessary gentoo-newsitem-mode-test-run-silently. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Drop redundant XEmacs conditionals in testsUlrich Müller2024-10-023-17/+17
| | | | | | | | * test/ebuild-mode-tests.el: * test/gentoo-newsitem-mode-tests.el: Drop redundant XEmacs conditionals. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support skip-unless in XEmacs test wrapperUlrich Müller2024-10-022-2/+13
| | | | | | | | * test/xemacs-test-wrapper.el (skip-unless): New function. (test-skipped): New error symbol. (ert-deftest): Handle it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Enable bug-reference-prog-mode in ebuild-repo-modeUlrich Müller2024-10-023-0/+60
| | | | | | | | | | | * ebuild-mode.el (ebuild-mode-enable-bug-reference): New custom variable. (ebuild-mode-bug-regexp, ebuild-mode-bug-url-format): New variables. (ebuild-repo-mode): Conditionally enable bug-reference-prog-mode. * test/ebuild-mode-tests.el (ebuild-mode-test-bug-url): New test. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't require nxml-mode at compile timeUlrich Müller2024-09-282-1/+8
| | | | | | | * ebuild-mode.el (ebuild-repo-mode): Define the nxml-* variables instead of requiring nxml-mode at compile time. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update list of obsolete eclassesUlrich Müller2024-09-252-1/+3
| | | | | | * keyword-generation.sh (OBSOLETE): Update. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update ebuild-mode-time-string testUlrich Müller2024-09-252-6/+7
| | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-time-string): Run with fixed time. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Remove ia64 from list of archsUlrich Müller2024-09-252-1/+5
| | | | | | * ebuild-mode.el (ebuild-mode-arch-list): Remove ia64. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix test for ebuild-mode-update-copyrightUlrich Müller2024-09-102-0/+6
| | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-update-copyright): Actually run ebuild-mode-update-copyright. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Version 1.75 releasedebuild-mode-1.75Ulrich Müller2024-08-293-2/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Avoid date-to-time in testsUlrich Müller2024-08-293-2/+18
| | | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-run-with-fixed-time): * test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time): Use encode-time instead of date-to-time. Bug 938666. Bug: https://bugs.gentoo.org/938666 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Version 1.74 releasedebuild-mode-1.74Ulrich Müller2024-08-283-2/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Keywords regenerated from eclassesUlrich Müller2024-08-282-11/+30
| | | | | | | * ebuild-mode-keywords.el (ebuild-mode-keywords-eclass): Regenerated. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Drop EAPI 6Ulrich Müller2024-08-282-2/+5
| | | | | | | * ebuild-mode.el (ebuild-mode-eapi-list): Drop 6 from list of supported EAPIs. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix typoUlrich Müller2024-08-281-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* More testsUlrich Müller2024-08-286-3/+299
| | | | | | | | | | | | | | | * test/ebuild-mode-tests.el (ebuild-mode-test-input): New variable and function. (ebuild-mode-test-skeleton, ebuild-mode-test-keybindings): New tests. * test/glep-mode-tests.el (glep-mode-test-input): New variable and function. (glep-mode-test-skeleton, glep-mode-test-keybindings): New tests. * test/gentoo-newsitem-mode-tests.el: * test/devbook-mode-tests.el: New files. * Makefile (TESTS): Add them. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Return a useful exit status for XEmacs testsUlrich Müller2024-08-272-0/+17
| | | | | | | * test/xemacs-test-wrapper.el (kill-emacs): Return a useful exit status. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Specify indentation for static-ifUlrich Müller2024-08-271-0/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Make the tests work with XEmacsUlrich Müller2024-08-275-24/+101
| | | | | | | | | | | | | | | | * test/ebuild-mode-tests.el (cl-letf, cl-letf*) (ebuild-mode-test-run-with-fixed-time) (ebuild-mode-test-run-silently, ebuild-mode-test-font-lock) (ebuild-mode-test-unescape-string): Portability fixes for XEmacs. * test/glep-mode-tests.el (glep-mode-test-run-with-fixed-time): Sync from ebuild-mode-test-run-with-fixed-time. * test/xemacs-test-wrapper.el: New file. * Makefile (DISTFILES): Add xemacs-test-wrapper.el. (ELCS, TESTS): Include only files that are actually supported by the Emacs version. (check): Make it work with XEmacs. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Activate ebuild-repo-mode-menu in XEmacsUlrich Müller2024-08-252-7/+13
| | | | | | | * ebuild-mode.el (ebuild-repo-mode): Activate the menu in XEmacs. Use positive condition for feature. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* More portable syntax for menusUlrich Müller2024-08-252-10/+16
| | | | | | | | | | * ebuild-mode.el (ebuild-mode-menu): Drop :active keyword because the three-element vector form of menu items is more portable. (ebuild-repo-mode-menu): Rename menu bar item to "Ebuild-Repo". Replace :visible keyword by :included; XEmacs 21.4 doesn't know the former. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* replace-match in XEmacs clobbers match dataUlrich Müller2024-08-222-19/+26
| | | | | | | * ebuild-mode.el (ebuild-mode-update-copyright): Save match data, replace-match in XEmacs 21.4 clobbers it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use push in init valueUlrich Müller2024-08-212-2/+4
| | | | | | * ebuild-mode.el (ebuild-mode-arch-stable-list): Use push. Signed-off-by: Ulrich Müller <ulm@gentoo.org>