From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: master 11f44ec6dda: Enable DND handlers to receive more than one URI at a time Date: Thu, 26 Oct 2023 18:42:33 +0530 Message-ID: <87jzr94jem.fsf@gmail.com> References: <169832033169.28109.14749982523827239030@vcs2.savannah.gnu.org> <20231026113852.37241C09BEB@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 26 15:13:48 2023 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 1qw0BH-00084Z-3q for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 15:13:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw0AP-0003PV-1J; Thu, 26 Oct 2023 09:12:53 -0400 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 1qw0AK-0003OC-Oe for emacs-devel@gnu.org; Thu, 26 Oct 2023 09:12:50 -0400 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qw0AI-0002Mg-P9 for emacs-devel@gnu.org; Thu, 26 Oct 2023 09:12:48 -0400 Original-Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1c9daca2b85so6270365ad.1 for ; Thu, 26 Oct 2023 06:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698325957; x=1698930757; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E2xjorrm2UFTaVi9OVz4wIxq9b8qFJiMprhV1GdWUHo=; b=UhLCoJomb1b+WbKzyJ0QmMcVft2MGU5unIkozR663X+/6APY81pGiHG//o2rcc1wJN C6lnyyYLKlJ56+glD5q533bQgPBwhO5B5otGRPUS0OvtnkBPzOviNfYibEE07x1Y121t e3WJPnq7UX/3VPXrtxLVcIT8Y1Zt1Oyehxi9KXFZqGlxbGHvxM1wWYqKaa+3MPq8/oj6 0bbOt7xSCOYvMaOiZpaP9D80EBf9UWoGuWqzfROMa77wRoVlvYzBua+9OOTEwrKkS/Av RkTK1ZpyFyHzQ+CyXoStWKpvaeUY7+dSHUOEOxzV7szMVQwiMHZ8BLOU34l5yazo+2ue Y2ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698325957; x=1698930757; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=E2xjorrm2UFTaVi9OVz4wIxq9b8qFJiMprhV1GdWUHo=; b=WxOIBZVKxYCuXSERN8ZSVZ4nlFALSDM83MdeYD+VKdNk6jRGaxRtPXmqb2X3hUEibh ApuymRCWRfpAbhTEie5ljDBy+8gu49tkgaCqTQzHpJlmzS7ESDgCEnwylL1nnzINLuGS QJGfQnn2zHIz4292LnUJNBt+E0jfiyqyGmKZhCd7jA/GnjzKKlcyVOxswoP6h8pCXQR2 mG4LtZygeeDbPPBVd31syHORWD35JJFcslSne9YVv66WWX1Yxn5TOTPKZUehkLg79Djd VEjv/MQ6/8QDNohORe6UqnRuWsLBpBteSrX2Ep5/cT6Q23pCYTaL9EpFar9DczJaWhNI 4WVA== X-Gm-Message-State: AOJu0Yw4fW71YhFm/HCzU+ewDzuQ0BibXzXgol59B+TSAGXgHZ9sgmN6 d4k2xUm7TYcNIk0h/FcWnSlJGdtK4iXeVA== X-Google-Smtp-Source: AGHT+IEV4LYUYKi6tbZXm3+XDtRhkrVaRWl4tuaKxZsUw3TAuqrNItvPUMyW8zSsbO+w5OtEWHjbTg== X-Received: by 2002:a17:903:41c6:b0:1c3:e5bf:a9fe with SMTP id u6-20020a17090341c600b001c3e5bfa9femr3400460ple.30.1698325957424; Thu, 26 Oct 2023 06:12:37 -0700 (PDT) Original-Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id j12-20020a170902da8c00b001c61afa7009sm10977726plx.114.2023.10.26.06.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 06:12:36 -0700 (PDT) In-Reply-To: <20231026113852.37241C09BEB@vcs2.savannah.gnu.org> (Po Lu via Mailing list for Emacs changes's message of "Thu, 26 Oct 2023 07:38:51 -0400 (EDT)") Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x643.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:311910 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=85= =E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 26, 2023] P= o Lu via Mailing list for Emacs changes wrote: Thank you for working on this. > @@ -4740,9 +4740,14 @@ This variable is an alist between regexps against = which URLs are > matched and DND handler functions called on the dropping of matching > URLs. >=20=20 > -Each handler function is called with the URL that matched it and one > -of the symbols @code{copy}, @code{move}, @code{link}, @code{private} > -or @code{ask} identifying the action to be taken. > +@cindex dnd-multiple-handler, a symbol property > +If a handler function is a symbol whose @code{dnd-multiple-handler} > +property (@pxref{Symbol Properties}) is set, then upon a drop it is > +given a list of every URL that matches its regexp; absent this > +property, it is called once for each of those URLs. Following this > +first argument is one of the symbols @code{copy}, @code{move}, > +@code{link}, @code{private} or @code{ask} identifying the action to be > +taken. I find the new text is quite hard to understand, how about saying Each handler function is called with the URL that matched it and one of the symbols @code{copy}, @code{move}, @code{link}, @code{private} or @code{ask} identifying the action to be taken. @cindex dnd-multiple-handler, a symbol property If the handler function is a symbol whose property @code{dnd-multiple-handler} is non-@code{nil} (@pxref{Symbol Properties}), then it is given a list of every URL that matches its regexp as the first argument instead. ?