From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: New package for Sweden: package-header.el - was Re: Interacting with minibuffer Date: Sun, 23 May 2021 00:55:04 +0300 Message-ID: References: <87bl925wz6.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Ien/gE0UVaPjFXUP" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33272"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 22 23:58:21 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1lkZdU-0008SC-O3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 23:58:20 +0200 Original-Received: from localhost ([::1]:41736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkZdT-0003X6-Pk for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 17:58:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkZd9-0003Wg-8l for help-gnu-emacs@gnu.org; Sat, 22 May 2021 17:57:59 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:39219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkZd6-00072D-M7 for help-gnu-emacs@gnu.org; Sat, 22 May 2021 17:57:58 -0400 Original-Received: from localhost ([::ffff:197.239.35.51]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000ADF16.0000000060A97E62.00007A2B; Sat, 22 May 2021 14:57:53 -0700 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87bl925wz6.fsf@zoho.eu> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130091 Archived-At: --Ien/gE0UVaPjFXUP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit * Emanuel Berg via Users list for the GNU Emacs text editor [2021-05-22 23:35]: > Jean Louis wrote: > > > There is more about incremental search [...] > > And less, i.e. non-incremental search which is as much > navigating as searching. Or it can be (is) both. > > I heard this isn't bad: > > https://dataswamp.org/~incal/emacs-init/wrap-search.el Debugger entered--Lisp error: (error "Package lacks a file header") signal(error ("Package lacks a file header")) error("Package lacks a file header") package-buffer-info() package-install-from-buffer() funcall-interactively(package-install-from-buffer) call-interactively(package-install-from-buffer record nil) command-execute(package-install-from-buffer record) execute-extended-command(nil "package-install-from-buffer" "package-install-fr") funcall-interactively(execute-extended-command nil "package-install-from-buffer" "package-install-fr") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) Clean it up, and I will install it. By the way there is no license. You should not call it package if it cannot be installed as Emacs Package. Please see what you already know: (info "(elisp) Packaging") Emacs: `package-header.el` your hjälpsam Package Header Assistant https://hyperscope.link/3/7/7/3/0/Your-hjälpsam-Package-Header-Assistant-37730.html Find it attached. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ --Ien/gE0UVaPjFXUP Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="package-header.el" Content-Transfer-Encoding: 8bit ;;; package-header.el --- your hjälpsam Package Header Assistant ;; Copyright (C) 2021 by Jean Louis ;; Author: Jean Louis ;; Version: 0.1 ;; Package-Requires: (finder) ;; Keywords: convenience ;; URL: https://hyperscope.link/3/7/7/3/0/Your-hjälpsam-Package-Header-Assistant-37730.html ;; This file is not part of GNU Emacs. ;; This program is free software: you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation, either version 3 of the ;; License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;;; Commentary: ;;; Change Log: ;;; Code: (require 'finder) (defcustom package-header-years "2021" "The package copyright years, set it up as you wish, could be 2021-2022 or similar." :group 'package-header :type 'string) (defcustom package-header-author user-full-name "Author's name for the package header. By default it will use `user-full-name'. You may provide a quoted string with author's name." :group 'package-header :type 'sexp) (defcustom package-header-email user-mail-address "Author's email for the package header. By default it will use `user-full-name'. You may provide a quoted string with author's e-mail address." :group 'package-header :type 'sexp) (defcustom package-header-base-url "https://" "Author's base URL. The package file name will be appended to the base URL." :group 'package-header :type 'string) (defcustom package-header-url-extension ".html" "Author's URL extension, could be `.html' or just empty string." :group 'package-header :type 'string) (defvar package-header-file-name nil "Used as global variable for package header file name.") (defun package-header-keywords () "Return Emacs package keywords completion candidates." (mapcar 'symbol-name (map-keys finder-known-keywords))) (defun package-header-ask-keywords () "Ask author for package keywords." (let ((keywords '()) (keyword)) (while (string-match "[^[:blank:]]" (setq keyword (completing-read "Keywords: " (package-header-keywords) nil t))) (push keyword keywords)) (when keywords (mapconcat 'identity (sort keywords #'string<) " ")))) (define-skeleton package-header-1 "Helps in preparing the header for Emacs Lisp packages from Sweden." nil ";;; " (setq package-header-file-name (skeleton-read "File name: " (file-name-nondirectory (buffer-file-name)))) " --- " (skeleton-read "Short description: " (string-trim (replace-regexp-in-string (regexp-opt '("." "-" "el" " *$" "[^[:alpha:]]")) " " (capitalize (file-name-nondirectory (buffer-file-name)))))) " ;; Copyright (C) " package-header-years " by " package-header-author " ;; Author: " package-header-author " <" package-header-email "> ;; Version: " (setq elisp-version (skeleton-read "Version: " "0.1")) " ;; Package-Requires: (" (setq elisp-requires (skeleton-read "Requires: ")) ") ;; Keywords: " (package-header-ask-keywords) " ;; URL: " package-header-base-url (replace-regexp-in-string "\\." "-" package-header-file-name) package-header-url-extension " ;; This file is not part of GNU Emacs. ;; This program is free software: you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation, either version 3 of the ;; License, or (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;;; Commentary: ;;; Change Log: ;;; Code: ") (defun package-header () "Generates package header for Emacs Lisp package authors." (interactive) (save-excursion (goto-char 0) (package-header-1) (goto-char (point-max)) (insert "\n;;; " package-header-file-name " ends here\n"))) ;;; package-header.el ends here --Ien/gE0UVaPjFXUP--