summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for checkdocUlrich Müller2024-08-191-2/+2
| | | | | | | | | | * ebuild-mode.el: * ebuild-mode-keywords.el: * gentoo-newsitem-mode.el: * glep-mode.el: * devbook-mode.el: Doc fixes. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update glep-mode template from GLEP 2Ulrich Müller2024-06-291-3/+4
| | | | | | | * glep-mode.el (glep-mode-insert-skeleton): Update from GLEP 2, specify that all dates must be in UTC. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright yearsUlrich Müller2024-01-081-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't use variables for faces in glep-modeUlrich Müller2023-11-291-3/+3
| | | | | | | * glep-mode.el (glep-mode-add-font-lock): Specify faces directly instead of using variables. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Doc fixesUlrich Müller2023-11-051-3/+8
| | | | | | * glep-mode.el: Doc fixes. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use #' for quoting of function namesUlrich Müller2023-10-231-9/+10
| | | | | | | | | * ebuild-mode.el: * gentoo-newsitem-mode.el: * glep-mode.el: * devbook-mode.el: Sharp-quote all function names. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Replace unnecessary backquotes by normal quotesUlrich Müller2023-10-231-1/+1
| | | | | | | | | * ebuild-mode.el (ebuild-repo-mode-menu): * gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu): * glep-mode.el (glep-mode-menu): * devbook-mode.el (devbook-mode-menu): Backquote is not needed. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update parent of glep custom groupUlrich Müller2023-10-151-1/+1
| | | | | | | * glep-mode.el (glep): Change parent group to text, because the wp group is deprecated since Emacs 26. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Drop unnecessary require commandsUlrich Müller2023-10-151-4/+2
| | | | | | | | * gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): * glep-mode.el (glep-mode-insert-skeleton): Drop local require for ebuild-mode, as it is required globally. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use named functions in hook variablesUlrich Müller2023-10-061-8/+9
| | | | | | | | * ebuild-mode.el (ebuild-mode-add-font-lock): New function. (ebuild-mode-hook): Add it, instead of an anonymous function. * glep-mode.el (glep-mode-add-font-lock, glep-mode-hook): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Simplify advice function in glep-modeUlrich Müller2023-09-161-5/+4
| | | | | | | | * glep-mode.el (rst-classify-adornment) (glep-mode-ignore-preamble): Use :before-while instead of :around as advice combinator. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Enable lexical bindingUlrich Müller2023-08-241-1/+1
| | | | | | | | | | | | | * ebuild-mode.el: * ebuild-mode-keywords.el: * gentoo-newsitem-mode.el: * glep-mode.el: * devbook-mode.el: Enable lexical binding. * ebuild-mode.el (ebuild-run-command, ebuild-mode-run-pkgdev) (ebuild-mode-run-pkgcheck): Add underscore to name of unused function argument. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Port to new advice functionsUlrich Müller2023-08-241-5/+4
| | | | | | | * glep-mode.el (rst-classify-adornment, glep-ignore-preamble): Port from defadvice to advice-add. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix byte-compiler warning for glep-mode.elUlrich Müller2023-08-241-1/+1
| | | | | | * glep-mode.el (glep-mode-format-html): Move docstring to the top. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use UTC dates in gentoo-newsitem-mode and glep-modeUlrich Müller2023-02-211-3/+4
| | | | | | | | | * gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): Call ebuild-mode-time-string, so that the date is in the UTC time zone. * glep-mode.el (glep-mode-update-last-modified) (glep-mode-insert-skeleton): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright yearsUlrich Müller2023-02-211-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Test for file name when calling an external commandUlrich Müller2022-05-211-0/+2
| | | | | | | | * ebuild-mode.el (ebuild-run-command): Signal an error when not visiting a file. * glep-mode.el (glep-mode-format-html): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix package keywords and docstringsUlrich Müller2022-05-081-2/+2
| | | | | | | | | * devbook-mode.el: Drop unknown package keyword "XML". (devbook-mode-menu): Quote lisp symbol in docstring. * gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu): Ditto. * glep-mode.el (rst-classify-adornment, glep-mode-menu): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update URL in glep-modeUlrich Müller2022-05-071-1/+1
| | | | | | * glep-mode.el (glep-mode-insert-skeleton): Update URL in comment. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't use #' for quoting of function namesUlrich Müller2022-05-011-2/+2
| | | | | | | | * ebuild-mode.el (ebuild-repo-mode, find-file-hook): Use ' rather than #' for quoting of function names. * glep-mode.el (glep-mode): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright yearsUlrich Müller2022-01-161-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Better default for author in gentoo-newsitem-mode and glep-modeUlrich Müller2022-01-161-1/+4
| | | | | | | | | * gentoo-newsitem-mode.el (gentoo-newsitem-insert-skeleton): Use ebuild-mode-full-name and ebuild-mode-mail-address as default author information. * glep-mode.el (glep-mode-insert-skeleton): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix byte-compile warningsUlrich Müller2021-03-171-2/+2
| | | | | | | | | | | | * ebuild-mode.el: Fix byte-compile warnings. (ebuild-mode-make-keywords-list): Test if delete-duplicates is bound. (ebuild-repo-mode): Use write-contents-functions for GNU Emacs. * glep-mode.el (glep-mode): Fix byte-compile warning. We don't support XEmacs anyway for its missing rst-mode, so we can use write-contents-functions as well. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update package keywords.Ulrich Müller2021-03-051-2/+2
| | | | | | | | * devbook-mode.el: Add "wp" and "XML" to package keywords. * gentoo-newsitem-mode.el: Change package keywords to "wp". * glep-mode.el: Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2020-02-081-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright years.Ulrich Müller2019-12-111-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update glep-mode template to CC-BY-SA-4.0.Ulrich Müller2019-12-111-4/+4
| | | | | | | * glep-mode.el (glep-mode-insert-skeleton): Update template to use the CC-BY-SA-4.0 license, following the change in GLEP 2. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use simplified copyright notice for GLEP 76 compliance.Ulrich Müller2018-12-091-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update copyright notices.Ulrich Müller2018-09-041-1/+1
| | | | | To the best of my knowledge, copyright remains with the authors because none of them has assigned to the Gentoo Foundation.
* Fix line breaks in GLEP footer.Ulrich Müller2018-06-051-3/+3
| | | | | * glep-mode.el (glep-mode-insert-skeleton): Fold lines as in the standard GLEP footer.
* Use 9999 as dummy GLEP number.Ulrich Müller2018-04-141-1/+1
| | | | | * glep-mode.el (glep-mode-insert-skeleton): Use 9999 as dummy GLEP number, because XXX causes a warning in docutils-glep. Bug 653126.
* Don't autoload ebuild-run-command and glep-mode-format-html.Ulrich Müller2018-02-151-1/+0
| | | | | * ebuild-mode.el (ebuild-run-command): * glep-mode.el (glep-mode-format-html): Don't autoload.
* New command to format a GLEP as HTML.Ulrich Müller2018-01-281-3/+16
| | | | | | * glep-mode.el (glep-mode-format-html): New command. (glep-mode-map): Bind to "C-c C-f". (glep-mode-menu): Add to menu.
* Add missing Content-Type to GLEP skeleton.Ulrich Müller2018-01-281-0/+1
| | | | | * glep-mode.el (glep-mode-insert-skeleton): Add missing Content-Type header line.
* Update copyright years.Ulrich Müller2018-01-121-1/+1
|
* Make sentence-end-double-space local in glep-mode.Ulrich Müller2017-11-051-1/+1
| | | | | * glep-mode.el (glep-mode): Make sentence-end-double-space local in this buffer.
* Suppress byte-compiler warnings in glep-mode.Ulrich Müller2017-10-281-0/+3
| | | | | * glep-mode.el (font-lock-beg, font-lock-end): Define to suppress byte-compiler warnings.
* Update the Last-Modified header when saving a GLEP.Ulrich Müller2017-10-281-1/+35
| | | | | | | | | | * glep-mode.el (glep-mode-update-last-modified): New function, updates the Last-Modified header when saving the file. (glep): New customisation group. (glep-mode-update-last-modified): New custom variable. (glep-mode-last-modified-re): New variable. (glep-mode-before-save): New function. (glep-mode): Add glep-mode-before-save to write-contents-hook.
* Update glep-mode template text from GLEP 2.Ulrich Müller2017-10-271-5/+6
| | | | | * glep-mode.el (glep-mode-insert-skeleton): Update from GLEP 2. Inclusion of that modification under GPL-2+ acked by mgorny.
* Relicense glep-mode to GPL 2 or later.Ulrich Müller2017-10-151-19/+8
| | | | | | | | * glep-mode.el: The template text in glep-mode-insert-skeleton has not much changed from the last CVS version of GLEP 2, which is in the public domain. We can therefore base it on that version and avoid the complications of including CC-BY-SA licensed material. Relicense glep-mode to GPL version 2, or any later version.
* Update URLs and header info in glep-mode.Ulrich Müller2017-10-151-3/+3
| | | | | * glep-mode.el (glep-mode-insert-skeleton): Update URLs of GLEP 1 and GLEP 2. Update info on header format from GLEP 1.
* New mode for editing of GLEPs in RST.Ulrich Müller2017-09-171-0/+353
* glep-mode.el: New file. Mode for editing Gentoo Linux Enhancement Proposals that are written in reStructuredText. * Makefile (DISTFILES): Add glep-mode.el.