From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Copyright assignment and questions about package submission Date: Sat, 26 Dec 2020 17:01:39 -0500 Message-ID: References: <87k0t7ci1n.fsf@dsemy.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11770"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daniel Semyonov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 26 23:02:45 2020 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 1ktHe8-0002xJ-Kd for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Dec 2020 23:02:44 +0100 Original-Received: from localhost ([::1]:44072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktHe7-0000Z7-Mq for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Dec 2020 17:02:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktHdD-0008Rl-MY for emacs-devel@gnu.org; Sat, 26 Dec 2020 17:01:47 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktHdA-0005uO-PL for emacs-devel@gnu.org; Sat, 26 Dec 2020 17:01:46 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6626F1004DF; Sat, 26 Dec 2020 17:01:43 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 69DD81002B8; Sat, 26 Dec 2020 17:01:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1609020101; bh=PaOvN/p6eF7eKWbyTGHRqkpBl+VeoehFcjqy+nxOfKg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TjVXgmLeUHcj2xMH3pLdOgN/84q+I/R5iQUJ0p1Ln9LA6YhqvaejScFrG5eSm877m 9SrpZnk8HEOog4qovvATYRjqMHLlQqeQeY20RI/iSgWl25ZxDGG7oN3PYrxR9UbwDs vjwBbzwW4e7D1oF+FNGawbwmf3b7tys5FZqKZebv7RQZzv4KqG4gSJYfRjBmbqDH9G 1h35nE7DKAdtAiaBLXt0WbX06ETrFddsHNKKcw7jH756DZU/MUuz7qOH3+3fp/kidx Xq3CIBaTlug9lBxVqkx6nSxclDp0nbjQB+irqChxMbuvYt2XXK4B0RgGPcvhpnOEJe bkXXNVuLQIrXw== Original-Received: from alfajor (unknown [104.247.243.191]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C2F3B120281; Sat, 26 Dec 2020 17:01:40 -0500 (EST) In-Reply-To: <87k0t7ci1n.fsf@dsemy.com> (Daniel Semyonov's message of "Thu, 24 Dec 2020 17:58:28 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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.23 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" Xref: news.gmane.io gmane.emacs.devel:261870 Archived-At: >> Please fill the form below and send it to the FSF as instructed so they >> can send you the relevant paperwork to sign. > Thanks, I've sent the form. BTW, I just looked at your package. The code looks clean, but when I tried to enable it in my main Emacs session it got stuck in `swsw-update`, apparently more specifically inside `swsw--get-possible-ids` (see sample backtrace below obtained with `debug-on-quit`). It looks like your algorithm has a bad asymptotic complexity (my session has currently 88 frames, most of them with a single window in it). Stefan Debugger entered--Lisp error: (quit) (closure ((char-lists (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 = 103 104 106 107 108) (97 115 100 102 103 104 106 107 108)) t) (inner) (mapc= ar #'(lambda (outer) (cons outer inner)) (car char-lists)))((103 106 106 10= 7 102 103)) mapcan((closure ((char-lists (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 1= 00 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108)) t) (inner= ) (mapcar #'(lambda (outer) (cons outer inner)) (car char-lists))) ((97 97 = 97 97 97 97) (115 97 97 97 97 97) (100 97 97 97 97 97) (102 97 97 97 97 97)= (103 97 97 97 97 97) (104 97 97 97 97 97) (106 97 97 97 97 97) (107 97 97 = 97 97 97) (108 97 97 97 97 97) (97 115 97 97 97 97) (115 115 97 97 97 97) (= 100 115 97 97 97 97) (102 115 97 97 97 97) (103 115 97 97 97 97) (104 115 9= 7 97 97 97) (106 115 97 97 97 97) (107 115 97 97 97 97) (108 115 97 97 97 9= 7) (97 100 97 97 97 97) (115 100 97 97 97 97) (100 100 97 97 97 97) (102 10= 0 97 97 97 97) (103 100 97 97 97 97) (104 100 97 97 97 97) (106 100 97 97 9= 7 97) (107 100 97 97 97 97) (108 100 97 97 97 97) (97 102 97 97 97 97) (115= 102 97 97 97 97) (100 102 97 97 97 97) (102 102 97 97 97 97) (103 102 97 9= 7 97 97) (104 102 97 97 97 97) (106 102 97 97 97 97) (107 102 97 97 97 97) = (108 102 97 97 97 97) (97 103 97 97 97 97) (115 103 97 97 97 97) (100 103 9= 7 97 97 97) (102 103 97 97 97 97) (103 103 97 97 97 97) (104 103 97 97 97 9= 7) (106 103 97 97 97 97) (107 103 97 97 97 97) (108 103 97 97 97 97) (97 10= 4 97 97 97 97) (115 104 97 97 97 97) (100 104 97 97 97 97) (102 104 97 97 9= 7 97) (103 104 97 97 97 97) ...)) (if char-lists (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons = outer inner)) (car char-lists))) (apply #'swsw--get-possible-ids (cdr char-= lists))) (list nil)) swsw--get-possible-ids((97 115 100 102 103 104 106 107 108) (97 115 100 1= 02 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108)) apply(swsw--get-possible-ids ((97 115 100 102 103 104 106 107 108) (97 11= 5 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108))) (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons outer inner)) (= car char-lists))) (apply #'swsw--get-possible-ids (cdr char-lists))) (if char-lists (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons = outer inner)) (car char-lists))) (apply #'swsw--get-possible-ids (cdr char-= lists))) (list nil)) swsw--get-possible-ids((97 115 100 102 103 104 106 107 108) (97 115 100 1= 02 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 = 103 104 106 107 108)) apply(swsw--get-possible-ids ((97 115 100 102 103 104 106 107 108) (97 11= 5 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 1= 00 102 103 104 106 107 108))) (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons outer inner)) (= car char-lists))) (apply #'swsw--get-possible-ids (cdr char-lists))) (if char-lists (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons = outer inner)) (car char-lists))) (apply #'swsw--get-possible-ids (cdr char-= lists))) (list nil)) swsw--get-possible-ids((97 115 100 102 103 104 106 107 108) (97 115 100 1= 02 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 = 103 104 106 107 108) (97 115 100 102 103 104 106 107 108)) apply(swsw--get-possible-ids ((97 115 100 102 103 104 106 107 108) (97 11= 5 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 1= 00 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108))) (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons outer inner)) (= car char-lists))) (apply #'swsw--get-possible-ids (cdr char-lists))) (if char-lists (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons = outer inner)) (car char-lists))) (apply #'swsw--get-possible-ids (cdr char-= lists))) (list nil)) swsw--get-possible-ids((97 115 100 102 103 104 106 107 108) (97 115 100 1= 02 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 = 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 1= 03 104 106 107 108)) apply(swsw--get-possible-ids ((97 115 100 102 103 104 106 107 108) (97 11= 5 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 1= 00 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 10= 0 102 103 104 106 107 108))) (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons outer inner)) (= car char-lists))) (apply #'swsw--get-possible-ids (cdr char-lists))) (if char-lists (mapcan #'(lambda (inner) (mapcar #'(lambda (outer) (cons = outer inner)) (car char-lists))) (apply #'swsw--get-possible-ids (cdr char-= lists))) (list nil)) swsw--get-possible-ids((97 115 100 102 103 104 106 107 108) (97 115 100 1= 02 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 10= 2 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102= 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 = 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 100 102 1= 03 104 106 107 108) (97 115 100 102 103 104 106 107 108)) apply(swsw--get-possible-ids ((97 115 100 102 103 104 106 107 108) (97 11= 5 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115= 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 = 100 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 1= 00 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108) (97 115 10= 0 102 103 104 106 107 108) (97 115 100 102 103 104 106 107 108))) (let ((acc 0) (len (swsw--get-id-length)) char-lists) (while (< acc len) = (setq char-lists (cons swsw-id-chars char-lists)) (setq acc (1+ acc))) (app= ly #'swsw--get-possible-ids char-lists)) (setq swsw-window-list nil swsw-ids (let ((acc 0) (len (swsw--get-id-leng= th)) char-lists) (while (< acc len) (setq char-lists (cons swsw-id-chars ch= ar-lists)) (setq acc (1+ acc))) (apply #'swsw--get-possible-ids char-lists)= )) swsw-update() (progn (swsw-update) (if (eq swsw-display-function 'lighter) nil (funcall= swsw-display-function t)) (add-hook 'window-configuration-change-hook #'sw= sw-update) (add-hook 'minibuffer-setup-hook #'swsw-update) (add-hook 'minib= uffer-exit-hook #'swsw-update) (add-hook 'after-delete-frame-functions #'sw= sw-update)) (if swsw-mode (progn (swsw-update) (if (eq swsw-display-function 'lighter= ) nil (funcall swsw-display-function t)) (add-hook 'window-configuration-ch= ange-hook #'swsw-update) (add-hook 'minibuffer-setup-hook #'swsw-update) (a= dd-hook 'minibuffer-exit-hook #'swsw-update) (add-hook 'after-delete-frame-= functions #'swsw-update)) (if (eq swsw-display-function 'lighter) nil (func= all swsw-display-function nil)) (remove-hook 'window-configuration-change-h= ook #'swsw-update) (remove-hook 'minibuffer-setup-hook #'swsw-update) (remo= ve-hook 'minibuffer-exit-hook #'swsw-update) (remove-hook 'after-delete-fra= me-functions #'swsw-update)) (let ((last-message (current-message))) (progn (set-default 'swsw-mode (c= ond ((eq arg 'toggle) (not (default-value 'swsw-mode))) ((and (numberp arg)= (< arg 1)) nil) (t t)))) (if swsw-mode (progn (swsw-update) (if (eq swsw-d= isplay-function 'lighter) nil (funcall swsw-display-function t)) (add-hook = 'window-configuration-change-hook #'swsw-update) (add-hook 'minibuffer-setu= p-hook #'swsw-update) (add-hook 'minibuffer-exit-hook #'swsw-update) (add-h= ook 'after-delete-frame-functions #'swsw-update)) (if (eq swsw-display-func= tion 'lighter) nil (funcall swsw-display-function nil)) (remove-hook 'windo= w-configuration-change-hook #'swsw-update) (remove-hook 'minibuffer-setup-h= ook #'swsw-update) (remove-hook 'minibuffer-exit-hook #'swsw-update) (remov= e-hook 'after-delete-frame-functions #'swsw-update)) (run-hooks 'swsw-mode-= hook (if (default-value 'swsw-mode) 'swsw-mode-on-hook 'swsw-mode-off-hook)= ) (if (called-interactively-p 'any) (progn (customize-mark-as-set 'swsw-mod= e) (if (and (current-message) (not (equal last-message (current-message))))= nil (let ((local "")) (message "Swsw mode %sabled%s" (if (default-value ..= .) "en" "dis") local)))))) swsw-mode(toggle) funcall-interactively(swsw-mode toggle) call-interactively(swsw-mode record nil) command-execute(swsw-mode record) execute-extended-command(nil "swsw-mode" nil) funcall-interactively(execute-extended-command nil "swsw-mode" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)