From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] 11 new packages! Date: Mon, 28 Nov 2022 01:22:08 +0600 Message-ID: <87edtomcdb.fsf@disroot.org> References: <87r0y6ug9z.fsf@disroot.org> <87y1sct2hp.fsf@posteo.net> <87k03vf5m8.fsf@disroot.org> <87edu2narn.fsf@posteo.net> <8735aieqtr.fsf@disroot.org> <87cz9mlq3o.fsf@posteo.net> <875yfdd5ad.fsf@disroot.org> <87v8n2zwc6.fsf@posteo.net> <87cz9arw7t.fsf@disroot.org> <8735a46cls.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Developer List To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 27 21:01:52 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozNqY-0008ba-Jo for ged-emacs-devel@m.gmane-mx.org; Sun, 27 Nov 2022 21:01:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozNpe-0008C2-TU; Sun, 27 Nov 2022 15:00:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozNpb-0008Bp-PM for emacs-devel@gnu.org; Sun, 27 Nov 2022 15:00:51 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozNpY-0006e2-F9 for emacs-devel@gnu.org; Sun, 27 Nov 2022 15:00:51 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2B90F413E5; Sun, 27 Nov 2022 21:00:45 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tSAz_BsqC_gI; Sun, 27 Nov 2022 21:00:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669579242; bh=sowbWBkaJwEbtWL3eCi3WskzC5rm4cZ+y7NeKhaXZ+g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IYMsFEkEqQwgV1GsX6kTIcUp9EFvM5XCVSdknEH1A60yvUV5KxX8kAezHV0QyHiOH c5Vmby1ITaytKFr4E2W1RwHpHTG2AdIlIdSlC+R2ABHuLJqW0+QAoCX6QUgj+tXgdF H0Y4Y0WtFlK1pHxQKL3O11eh/gH11W6W7cgaSrFPBObY8bsP+QIZRNh5VMovrlmZTg W0nOhkmcZf7lVihvHuHoEd2AwxnlWjv494CAha4yFlcF1aa72UtO+qvhc0YJheCDqy 6cV+zewBFhKN36F9+XgxfiTQvwTaR8eQRYdvwGvbJmxXtqboYI8BMgiDTxKcKGd38i xlc9aw1FnUxXg== In-Reply-To: <8735a46cls.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 27 Nov 2022 08:11:27 +0000") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300645 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: [...] >>> +;; A little suggestion >>> +;;;###autoload >>> +(defun gnu-indent-defun-or-fill (arg) >>> + "Indent current function with GNU Indent. >>> +If point is in a comment, call `fill-paragraph' instead. A >>> +prefix argument ARG is passed to `fill-paragraph'." >>> + (interactive "P") >>> + (if (nth 8 (syntax-ppss)) ;if in a comment >>> + (fill-paragraph arg) >>> + (let ((bounds (bounds-of-thing-at-point 'defun))) >>> + (if (consp bounds) >>> + (gnu-indent-region (car bounds) (cdr bounds)) >>> + (user-error "No defun at point"))))) >>> + >> >> Great idea. But would it cause problem to assign copyright if I take >> your change? (AFAIK you've completed paperwork, but in this case you're >> not contributing to FSF-copyrighted code, so is this change covered by >> your paperwork? Right now, no, you're the copyright holder. (According >> to Section 2 of copyright assignment agreement sent to me.)) > > I don't think there should be an issue, as we want to add the package to > NonGNU ELPA. If the package is later moved to GNU ELPA, then my CA > should cover it. Pushed, with you attributed as the author. [...] >>> @@ -48,6 +48,10 @@ >>> ;; "~/.guix-profile/share/doc/" >>> ;; "~/.guix-profile/share/gtk-doc/html/")) >>> >>> +;; Do you think it makes sense to automatically detect this (if the >>> +;; user has a ~/.guix-profile directory) and make the changes to the >>> +;; default value? >>> + >> >> Yes, it makes sense. But I didn't find any way to detected the >> directories, except heuristics. > > What would the problem be with checking the existence of these specific > (or other well known directories)? > > (append [default value] > (and (file-exists-p "~/.guix-profile/share/doc/" > (list "~/.guix-profile/share/doc/"))) > (and (file-exists-p "~/.guix-profile/share/gtk-doc/html/") > (list "~/.guix-profile/share/gtk-doc/html/")))) > Done. Does anybody know the Nix directories to add? >>> @@ -219,6 +224,7 @@ If a single file was opened, only show that book's = table of contents." >>> See `devhelp-toc' for more details." >>> (let ((inhibit-read-only t)) >>> (erase-buffer) >>> + ;; Why not prepare the document in SXML and then use `dom-print'? >>> (insert >>> "Table of contents
    " >>> (let ((book-tocs >> >> Hmm, that would be a cleaner approach. Now I need to research the >> format of SXML. > > This gives a brief demonstration: > > (dom-print '(tag ((key . "value")) (sub-tag () "body"))) > ;; Output: body Done. [...] =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmODuOAACgkQVTX89U2I YWt3mxAAxOHAkKCfNUKnNEirks9USnQ/Z4pByr0yP93PWPZp3oURWwHUbK1BKxEY SUhYhaD6dFIIOOmpI8hu/4OJCrOqt3Be4jkl7Z7DTP5ru46lWDb9DxBPdpMxLx9j RgOkxw0BSlSdY+ZHpqfWk6onwZzJrl879IYa22J6U5+ct9bmbHovJJgda56u64e4 6h4F/yds5svGiznObHSOCketn278l2zGQb561P/avwT7TroIbueSRCXcMYN4T9xA 5rRI6j7F+bme8x/bbtNJlDfe4mZbWswF4WtUrcJ8x1W0U4P+EC9UnZZLh3N+qbhC rB9qH2u3u31Cd1PctVwZs3aBbe6ceHUorXeTmlK4pGA/7zSOryvPsyhsQRguuiYZ nSluz9f5gBejPo8yI6jUwSx2PU1OCAw5DG24zujLYYGJFGKyGO3HyWx+x9IuphzP yTNxiLGB5oE16W6fhUfZOFkJdFVlruaX2LJ48vFLk+jiUpFKa0zZahsHa5GweVml hpotbdiOkfSl6AVYI3kfBuJ6VMh/gFM1XGUDjwOvsgslvspA4rBR07BZh3ytKHln +HPL+kU55yTs7hqrtGzTNTi4qi9lxkS+eGg1T0LfDubpVEn273CfaS54QZj9W6n6 Peejiq8+jgDrz6S3pzezSjZOOiVQVzS5sPcWVy4mc3nCaOtqlxo= =vfaR -----END PGP SIGNATURE----- --=-=-=--