bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57532: Restructure mailcap-add-mailcap-entry to improve readability


From: Felix Dietrich
Subject: bug#57532: Restructure mailcap-add-mailcap-entry to improve readability
Date: Thu, 01 Sep 2022 23:37:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Package: emacs
Tags: patch
Severity: wishlist

Hello,

‘mailcap-add-mailcap-entry’ is written in a way that makes it hard to
follow.  My patch aims to improve its readability.  In order to show
that my modification retains the original functionality, another Patch
adds ERT test cases for this function.  The new version also shows
clearer an issue with the current implementation that causes some
mailcap entries to be forgotten; this is mentioned in a comment.  A
docstring for the function is added as well.

As was suggested by Lars in March on the emacs-devel mailing list [1], I
am submitting my patches now to the bug tracker for them not to be
forgotten (which I should have done then – but life got in the way).  By
now, I have signed the copyright assignment papers, and they have been
processed.


Footnotes:
[1]  Message-ID: <878rt3nync.fsf@gnus.org>
     https://lists.gnu.org/archive/html/emacs-devel/2022-03/msg00593.html

-- 
Felix Dietrich


Attachment: 0001-Add-tests-for-mailcap-add-mailcap-entry.patch
Description: Patch to add tests for ‘mailcap-add-mailcap-entry’

Attachment: 0001-Restructure-mailcap-add-mailcap-entry.patch
Description: Patch to restructure ‘mailcap-add-mailcap-entry’


reply via email to

[Prev in Thread] Current Thread [Next in Thread]