From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#39980: [PATCH] gnus-shorten-url: Improve and avoid args-out-of-range error Date: Sun, 12 Apr 2020 11:53:47 +0200 Message-ID: <87wo6lc9n8.fsf@gmail.com> References: <20200308090630.41238-1-stepnem@gmail.com> <87pndf17v5.fsf@gnus.org> <87zhcinbdl.fsf@gmail.com> <87d09ezudv.fsf@gnus.org> <83zhciby6s.fsf@gnu.org> <87imioo963.fsf@gmail.com> <875zeinoc0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="87354"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 39980@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 12 11:54:17 2020 Return-path: Envelope-to: geb-bug-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 1jNZJg-000MaZ-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Apr 2020 11:54:16 +0200 Original-Received: from localhost ([::1]:60214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNZJf-0007Lh-C5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Apr 2020 05:54:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42629) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNZJU-0007LH-58 for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 05:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNZJS-000499-72 for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 05:54:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNZJS-000493-4A for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 05:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jNZJS-00015K-3X for bug-gnu-emacs@gnu.org; Sun, 12 Apr 2020 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Apr 2020 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39980-submit@debbugs.gnu.org id=B39980.15866852024093 (code B ref 39980); Sun, 12 Apr 2020 09:54:02 +0000 Original-Received: (at 39980) by debbugs.gnu.org; 12 Apr 2020 09:53:22 +0000 Original-Received: from localhost ([127.0.0.1]:57386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNZIn-00013w-12 for submit@debbugs.gnu.org; Sun, 12 Apr 2020 05:53:21 -0400 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:35541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNZIl-00013k-D8 for 39980@debbugs.gnu.org; Sun, 12 Apr 2020 05:53:19 -0400 Original-Received: by mail-lj1-f173.google.com with SMTP id k21so6047268ljh.2 for <39980@debbugs.gnu.org>; Sun, 12 Apr 2020 02:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=3WCuupUelJ1sgPE2micMjhu17V0FQvAjEvDhyaZTThc=; b=Dcea/6FBP6dUsQmn9U/A7MhU+3tNX6unxHRBm9nw/vbDuFHYmmmgTxysRAP4KpjDAK g9No5N7xMJhfnksdJ6zoITRxq0pLBi5b13H48aoHUM7QQBWzBbfgEtJ0RYAtL1e71fYG JRRbWeEQRM/0UHV6XowBsFbeBDNZ8BtNK6NGyqIn9fBbllQULahms+GgRyUC9nHO+DNO LGehFJWl/gWk1S2wwRd45jY8OJRQZMlwgLitfIOUXfmdija5NxhJMPTWJ/EYCpQ6K3ll DSLPEfSQVb6oYqhQqbn5bqrafCHVoh7jDPAmVHLkhAdtDltl1AejZabB1zXkTsjEiBQW Q0Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=3WCuupUelJ1sgPE2micMjhu17V0FQvAjEvDhyaZTThc=; b=di94RVm+ys4bGWD3pyDSC5xKdaI6rqxiwwPxV62xjlrIRIP1LqRs3jP93aa3bH6r9L KhVP5/EyIl5AcuUwJr6Ho+pAty0GZYlb3pEuCjAwXYby2J+5RKjHypK3PZapURxjs/I5 6l8ese8ekUzyivyyeYmFdOBZjGOH2MWwVZxUAo1mnBlXHRP9JVLgHKU8AWgu4tFGGAiE NKNKAQU37RMLebORYrHL94/XAWvE+YW6sq4KDQ6rvJj6bqqDA+qNyOsXNXseenkGHi52 JradTDfKO0gJo1JwzecNtOY4OEmZDTVlMbnnznYd1EA7ShjdXESK89N3G+5PlsOxJ2YU tDgg== X-Gm-Message-State: AGi0PuaTnpvNSMh9m0hDZABv7TBxT7gzt2kiAsVInDn3dVMKaoqm8K8Q d2ZJSEqX6TVrLLGeRw/CP7c= X-Google-Smtp-Source: APiQypKQW4p/rRjHmYcsHu6WnI4D+fc2fllDU2DqUpq9WJy8Vv+YMNbR/8okThx79dxFhTSDJ4eslw== X-Received: by 2002:a2e:3612:: with SMTP id d18mr7878055lja.97.1586685193271; Sun, 12 Apr 2020 02:53:13 -0700 (PDT) Original-Received: from localhost ([185.112.167.47]) by smtp.gmail.com with ESMTPSA id p21sm5051890ljg.5.2020.04.12.02.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Apr 2020 02:53:12 -0700 (PDT) In-Reply-To: <875zeinoc0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 02 Apr 2020 13:01:35 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178226 Archived-At: On Thu, 02 Apr 2020 13:01:35 +0200 Lars Ingebrigtsen wrote: > =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > >> Considering the opinions expressed here and in >> https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00541.html I >> have reverted to defun and autoload the function instead to prevent >> having to load subr-x at runtime whenever gnus-sum is loaded, as it is >> currently only used there by `gnus-summary-browse-url'. >> >> Revised patch attached. > > Looks good to me. This can go to emacs-27, right? `gnus-summary-browse-url' is new in Emacs 27, it would seem a shame to ship it with this bug. --=20 =C5=A0t=C4=9Bp=C3=A1n