GNU bug report logs -
#41410
Patch: Add function ffap-other-tab
Previous Next
Reported by: ej32u <at> protonmail.com
Date: Tue, 19 May 2020 21:47:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 28.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41410 in the body.
You can then email your comments to 41410 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Tue, 19 May 2020 21:47:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ej32u <at> protonmail.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 19 May 2020 21:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
Attached is a patch to add a function to open files at point in another tab. It is basically the same as the function ffap-other-window.
Please use it.
Thank you.
[Message part 2 (text/html, inline)]
[0001-Add-ffap-other-tab.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Tue, 19 May 2020 22:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
> Attached is a patch to add a function to open files at point in another
> tab. It is basically the same as the function ffap-other-window.
Thanks, this is a useful addition. Please push it to master.
> +(defun ffap-other-tab (filename)
> + "Like `ffap', but put buffer in another tab.
> +Only intended for interactive use."
> + (interactive (list (ffap-prompter nil " other tab")))
> + (pcase (save-window-excursion (find-file-at-point filename))
> + ((or (and (pred bufferp) b) `(,(and (pred bufferp) b) . ,_))
> + (switch-to-buffer-other-tab b))))
> +
> (defun ffap--toggle-read-only (buffer-or-list)
> (dolist (buffer (if (listp buffer-or-list)
> buffer-or-list
> @@ -2013,6 +2023,7 @@ ffap-bindings
>
> (global-set-key [remap find-file-other-window] 'ffap-other-window)
> (global-set-key [remap find-file-other-frame] 'ffap-other-frame)
> + (global-set-key [remap find-file-other-tab] 'ffap-other-tab)
> (global-set-key [remap find-file-read-only-other-window] 'ffap-read-only-other-window)
> (global-set-key [remap find-file-read-only-other-frame] 'ffap-read-only-other-frame)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Tue, 19 May 2020 22:47:03 GMT)
Full text and
rfc822 format available.
Severity set to 'wishlist' from 'normal'
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 20 May 2020 15:49:02 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 20 May 2020 15:49:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Sun, 24 May 2020 22:11:03 GMT)
Full text and
rfc822 format available.
Message #18 received at 41410 <at> debbugs.gnu.org (full text, mbox):
>> Attached is a patch to add a function to open files at point in another
>> tab. It is basically the same as the function ffap-other-window.
>>
>> +(defun ffap-other-tab (filename)
>> + "Like `ffap', but put buffer in another tab.
>> +Only intended for interactive use."
>> + (interactive (list (ffap-prompter nil " other tab")))
>> + (pcase (save-window-excursion (find-file-at-point filename))
>> + ((or (and (pred bufferp) b) `(,(and (pred bufferp) b) . ,_))
>> + (switch-to-buffer-other-tab b))))
>> +
>> (defun ffap--toggle-read-only (buffer-or-list)
>> (dolist (buffer (if (listp buffer-or-list)
>> buffer-or-list
>> @@ -2013,6 +2023,7 @@ ffap-bindings
>>
>> (global-set-key [remap find-file-other-window] 'ffap-other-window)
>> (global-set-key [remap find-file-other-frame] 'ffap-other-frame)
>> + (global-set-key [remap find-file-other-tab] 'ffap-other-tab)
>> (global-set-key [remap find-file-read-only-other-window] 'ffap-read-only-other-window)
>> (global-set-key [remap find-file-read-only-other-frame] 'ffap-read-only-other-frame)
>
> Thanks, this is a useful addition. Please push it to master.
Maybe someone could check if this requires papers and
could push it to master when I'm away from computer.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Sun, 24 May 2020 22:27:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 41410 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
>>> Attached is a patch to add a function to open files at point in another
>>> tab. It is basically the same as the function ffap-other-window.
>>>
>>> +(defun ffap-other-tab (filename)
>>> + "Like `ffap', but put buffer in another tab.
>>> +Only intended for interactive use."
>>> + (interactive (list (ffap-prompter nil " other tab")))
>>> + (pcase (save-window-excursion (find-file-at-point filename))
>>> + ((or (and (pred bufferp) b) `(,(and (pred bufferp) b) . ,_))
>>> + (switch-to-buffer-other-tab b))))
>>> +
>>> (defun ffap--toggle-read-only (buffer-or-list)
>>> (dolist (buffer (if (listp buffer-or-list)
>>> buffer-or-list
>>> @@ -2013,6 +2023,7 @@ ffap-bindings
>>>
>>> (global-set-key [remap find-file-other-window] 'ffap-other-window)
>>> (global-set-key [remap find-file-other-frame] 'ffap-other-frame)
>>> + (global-set-key [remap find-file-other-tab] 'ffap-other-tab)
>>> (global-set-key [remap find-file-read-only-other-window] 'ffap-read-only-other-window)
>>> (global-set-key [remap find-file-read-only-other-frame] 'ffap-read-only-other-frame)
>>
>> Thanks, this is a useful addition. Please push it to master.
>
> Maybe someone could check if this requires papers and
> could push it to master when I'm away from computer.
OK.
I could find no previous commit by ej32u <at> protonmail.com, and this patch
is only 11 lines. I therefore believe we could safely install it as
Copyright-paperwork-exempt. Unless anyone disagrees with that analysis,
I'll push this to master in the next couple of days.
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#41410
; Package
emacs
.
(Mon, 25 May 2020 00:47:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 41410 <at> debbugs.gnu.org (full text, mbox):
tags 41410 fixed
close 41410 28.1
quit
Stefan Kangas <stefankangas <at> gmail.com> writes:
> I could find no previous commit by ej32u <at> protonmail.com, and this patch
> is only 11 lines. I therefore believe we could safely install it as
> Copyright-paperwork-exempt. Unless anyone disagrees with that analysis,
> I'll push this to master in the next couple of days.
There's an assignment on file for that address; I've pushed to master.
[1: 0cdedf612b]: 2020-05-24 20:45:05 -0400
Add command ffap-other-tab (Bug#41410)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0cdedf612b9da14fccc39c4a4e81cbf400e4552f
Added tag(s) fixed.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 25 May 2020 00:47:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
41410 <at> debbugs.gnu.org and ej32u <at> protonmail.com
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 25 May 2020 00:47:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 22 Jun 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.