From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#9054: 24.0.50; show source in other window Date: Sun, 26 Sep 2021 11:11:14 +0200 Message-ID: References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <82a9592e-b05a-399c-419e-fcbb3e829b35@gmx.at> <87czpfymhj.fsf@mail.linkov.net> <44514af3-09b8-8b6b-c436-cfc5f899142a@gmx.at> <87fsu8pdcp.fsf@mail.linkov.net> <87lf40nwol.fsf@mail.linkov.net> <875122a9-0ff9-4479-97dc-3860466a2b11@gmx.at> <871r5px383.fsf@mail.linkov.net> <87y27vk6pd.fsf@mail.linkov.net> <878rzv8obc.fsf@mail.linkov.net> <76b6ea1e-1256-2205-b6df-cde10330da53@gmx.at> <87czp4lg3p.fsf@mail.linkov.net> <23460cdb-c773-4e60-2770-8aa75e0d5693@gmx.at> <874kaftrgk.fsf@mail.linkov.net> <8bb2944d-29f7-d01b-cd6f-d2a8b1721b46@gmx.at> <87k0j9ixov.fsf@mail.linkov.net> <8803a606-8194-1727-1d79-634fe543d7ad@gmx.at> <87czp0vgw2.fsf@mail.linkov.net> <8c3c7826-5dad-db2e-382a-30894f1b43f9@gmx.at> <877df7p7z5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 9054@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 26 11:20:16 2021 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 1mUQKV-0007uG-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 11:20:15 +0200 Original-Received: from localhost ([::1]:49734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUQKU-00054c-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Sep 2021 05:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUQCZ-0003iM-BT for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 05:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUQCY-0006Zd-Hu for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 05:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUQCY-0002x3-DA for bug-gnu-emacs@gnu.org; Sun, 26 Sep 2021 05:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Sep 2021 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9054-submit@debbugs.gnu.org id=B9054.163264748311245 (code B ref 9054); Sun, 26 Sep 2021 09:12:02 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 26 Sep 2021 09:11:23 +0000 Original-Received: from localhost ([127.0.0.1]:35847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUQBv-0002vJ-5y for submit@debbugs.gnu.org; Sun, 26 Sep 2021 05:11:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUQBt-0002v3-Hb for 9054@debbugs.gnu.org; Sun, 26 Sep 2021 05:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=badeba3b8450; t=1632647475; bh=lpJevb4KuNXmPC/7CNAXUXiZRbev1+OZbM3LL1aUU4E=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=RY3AQQXFdnO3abu06cctrWq6WK6D7/YoXSTWHHXNYO6uovksrL+Y0q6ELJtoX8/Ws g/qN0nCeeoR3GE7HNRuF8G+VLp0IMQhFhYByXYvio63iiJ7/OV0BUHpuYKefU5ZtvH y5Yka+sYGxIbccqxmWCF9JGYhSp3EYb0B1hrB25E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.179]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N0oG5-1mjBkU20er-00wouZ; Sun, 26 Sep 2021 11:11:15 +0200 In-Reply-To: <877df7p7z5.fsf@mail.linkov.net> Content-Language: en-US X-Provags-ID: V03:K1:g93YaGcY8qGvzqWajIr/DjcRGn2BTOURZCgyXVFfezIKKrvr2N7 IbuuOIWoqRvOqkl6ydV6BSRXkGwY1N/3tqe4J1ohhbSU1gqvQXu9s3DbOD0QPC0BT6aruW+ QtGpCgLnaUi+v7sl2fRU3SnCVIJibFDegYSR+GttT5fVvfPlOLa9drDNeUaKT0GSEHYWm0a wTrohKMeQr3tYN0fCVftA== X-UI-Out-Filterresults: notjunk:1;V03:K0:omnkfwXqqZs=:c+pMlBIE+Ttc67nP8qFKuV ALfo4V7Sweaj5NmqYWckacvLAk0trW42KBipDBugp2xn9Ly3F/SU/KpZ5jeoMDmFwnj/Mid5s n7cKJGThd5UJZC6aUIpRJnEnKXJQ9mh4W9tmhP9fePuNDBKW2aNHd1VkPDJqjlcXttyqqtd/g q3YOv/QXMR8g1MeB6z4hcw5Kf8TXfDEt+PU+f4T0iXWj8P4g4FZN7IVWndBkOE13SqJRV2Ge2 hhAQt2i9FSQTkPPHAUzW9QLxq5zbBwfmFkOsg14TyOA0wvUSLxWuMlpZ0oSfyHqOdSUP5IsuW 2E9TFx+lwwo6D6AYsPEkINsDI0gDyyrBzxYRSAlqHoY+xTGqjx0ZcYHZ/xPV6MCqWHG5XlyFC JDZlKPdNeXU0HdrO1yE1+m79Aa+QkRb6Tlteo+ipPRNqIl8xbi9WmJe+T9meoLe64WgAWXmos IHYxqyqK11y5gJNN5KGpXgejnjrVkAAZWEpJEMXPKZw02z3NX2580/ewzwZBZ8wTDKGlnQ9BB oXe58PYYkrMQtX5uW5DXYIXIGZKE/gEKz4s7Dwg8UZwBKrpBKGUBjZNpnm3UhXw1bl3ZweG3v T6ojxc5w+k3vRCm9pUQ0Rj2LvAy0PtjjgzQa+5zWw+FDtGbC/rQNzEFCha0mZ433aViBFGQ9X wpJ1jsi83kLKnHiMptXWl8oiNo8bgdivJZ87NN/jTDiOpo/e5zMotMHXUkYS71KYKtrbtUPUj /SDu6SrDF1Dy6zE+gIaicfJcLPHLcUYNVQFdS1ZZd6xyBtSgq4Wbix2aFAcV4XjhOZpxceJ5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:215583 Archived-At: > Done (but not in inverse because other apps like Gimp use such order: All>None). OK. >> - In comments and strings it might be nice to advertise selecting the >> entire comment or string. > > This is a great idea. I missed such ability for a long time > to be able to select the entire string. Now this is implemented > using a new thing-at-point target 'list-or-string'. And no such thing for comments? Instead of (nth 3 (save-excursion (syntax-ppss pos) I'd use something like (let ((state (save-excursion (syntax-ppss pos)))) (cond ((nth 3 state) ... use (nth 8 state) and parse until end of string) ((nth 4 state) ... use (nth 8 state) and parse until end of comment))) and thus immediately get type, start and end of the syntactic entity at pos. >> - Choosing All, in particular, will practically always relocate point >> and scroll the window. This might be confusing - many people might >> not understand the combined effect of our "point is always visible" >> and "point is at one end of the active region" paradigms - so we >> should provide some way to retract that action and restore the window >> point and start position afterwards. Maybe None could do that by >> default but where should List followed by Defun followed by None >> scroll to? > > Good idea, but not implementable. This supposes that selecting All > should remember the old position of point, then None could restore it. > But what if the user selected the entire buffer with the key 'C-x h', > then selected None? What would be bad about that? Anyway, you could add some variable you'd set via 'All' or whatever causes pos to move off-screen and have 'None' inspect that flag to tell whether it should go back. Clearing the active region would clear that variable too. martin