From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: ndame Newsgroups: gmane.emacs.help Subject: Re: How can I contextually override shift selection functions? Date: Sun, 4 Aug 2019 22:04:24 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="192133"; mail-complaints-to="usenet@blaine.gmane.org" To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 22:04:37 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1huMk8-000nt3-IP for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 22:04:36 +0200 Original-Received: from localhost ([::1]:49414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huMk7-00082i-Gd for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 16:04:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60771) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huMk0-00082a-FM for help-gnu-emacs@gnu.org; Sun, 04 Aug 2019 16:04:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huMjz-0007KO-Ge for help-gnu-emacs@gnu.org; Sun, 04 Aug 2019 16:04:28 -0400 Original-Received: from fmfe09.onbox.hu ([46.107.16.202]:27632 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huMjy-0007Ii-Pl for help-gnu-emacs@gnu.org; Sun, 04 Aug 2019 16:04:27 -0400 X-fm-smtp-source: yes Original-Received: from localhost (localhost [188.143.64.183]) by web-out.onbox.hu (Postfix) with SMTP id 461sLJ0LGqzxWX for ; Sun, 4 Aug 2019 22:04:24 +0200 (CEST) X-AccountId: 57978162 X-Originating-Ip: 188.143.64.183 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddthedgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdcuhfftgffgofetkffnnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffkufggtgfvihffsegrtdersgdttdejnecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedukeekrddugeefrdeigedrudekfeenucfrrghrrghmpehhvghloheppdhinhgvthepudekkedrudegfedrieegrddukeefpdhmrghilhhfrhhomhepvghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuhdprhgtphhtthhopehhvghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1564949064; s=20181004; d=freemail.hu; h=From:Message-ID:Subject:MIME-Version:Content-Type:To:Date; l=3338; bh=gCp6mDPbQiXFaLDML+ZFp/rClZWsboCs+ttou+AoyTg=; b=M+cHxFk8kL/on/YWwIh0PrOVRyO2KLZ+1DQ8sjuWhNgDs4FjechFJpuGb5gCBYy9 Ga1D34RFFtPmmwW5h6gq4ZjdoYFPoFhoO5vA+EH3nDk7Dy752PPauF03MD1DcWbVsLL yXb1ZTVkuxpX1KMv9uU7hhVKlhZIeElcuQAbmfEAlGi2jhpyB8t1hMgDeUo7fLmbqxb gAzMNBuYlXhKc4N33DzZgdx/qDO6DiYQ8eXvQVnKgf/0Tiu76AK3tGeZdRsGn4sWZjW DK8Sq5Ao8/jx6AQCnNUbCA8ubF6LPAWSI0t915TP2SOHl1zsRDEuSyJrR9r0L/Pz3Y6 oYtO/rSyfA== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 46.107.16.202 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121311 Archived-At: (Sorry, I accidentally messed up the thread subject in the previous message= .) > Did you already study the handle-shift-selection function? Thanks, I've taken a look and this seems to solve the issue: =C2=A0 =C2=A0(let ((this-command-keys-shift-translated t)) =C2=A0 =C2=A0 =C2=A0(call-interactively 'next-line))))) though I'm wondering why simply adding the caret to the interactive spec doesn't fix the =C2=A0issue: =C2=A0 (local-set-key (kbd "S-") (lambda () =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (interactive "^") =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (my-context) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (do 'som= ething 'else) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; call S-down = as usual =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (call-interacti= vely 'next-line)))) =C2=A0