* bug#44413: 28.0.50; Provide function to close the tab
@ 2020-11-03 9:24 Jean Louis
2020-11-03 15:04 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2020-11-03 9:24 UTC (permalink / raw)
To: 44413
Instead of lambda anonymous function it would be more useful to
provide named function to close the tab. This way keybinding can be
customized easily. There exists function to open the tab, while
anonymous one is handling closing of the tab.
<tab-bar> <C-current-tab> runs the command (lambda nil (interactive)
(tab-bar-close-tab 6)) (found in global-map), which is an interactive
Lisp function.
(anonymous)
Not documented.
In GNU Emacs 28.0.50 (build 25, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
of 2020-11-01 built on protected.rcdrun.com
Repository revision: 76d522e59ef03397e15d30bb3b4de3840c917e63
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11907000
System Description: Hyperbola GNU/Linux-libre
Configured using:
'configure --prefix=/package/text/emacs-2020-11-01 --with-modules
--with-x-toolkit=lucid --with-modules --with-x-toolkit=lucid'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON
PDUMPER LCMS2
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: de_DE.UTF-8
value of $XMODIFIERS: @im=exwm-xim
locale-coding-system: utf-8-unix
Major mode: Help
--
Thanks,
Jean Louis
⎔ λ 🄯 𝍄 𝌡 𝌚
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#44413: 28.0.50; Provide function to close the tab
2020-11-03 9:24 bug#44413: 28.0.50; Provide function to close the tab Jean Louis
@ 2020-11-03 15:04 ` Lars Ingebrigtsen
2020-11-03 15:12 ` Jean Louis
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-03 15:04 UTC (permalink / raw)
To: Jean Louis; +Cc: 44413
Jean Louis <bugs@gnu.support> writes:
> Instead of lambda anonymous function it would be more useful to
> provide named function to close the tab. This way keybinding can be
> customized easily. There exists function to open the tab, while
> anonymous one is handling closing of the tab.
>
> <tab-bar> <C-current-tab> runs the command (lambda nil (interactive)
> (tab-bar-close-tab 6)) (found in global-map), which is an interactive
> Lisp function.
These are dynamically created actions to close specific tabs. The only
potentially confusing thing here is that `C-h k' gives you an output at
all, but I guess there's not much we can do about that.
If you want to close the current tab, use `C-x t 0', for instance, or
rebind `tab-close' to any key you want.
So I don't think there's anything to fix here, and I'm closing this bug
report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#44413: 28.0.50; Provide function to close the tab
2020-11-03 15:04 ` Lars Ingebrigtsen
@ 2020-11-03 15:12 ` Jean Louis
0 siblings, 0 replies; 3+ messages in thread
From: Jean Louis @ 2020-11-03 15:12 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 44413
* Lars Ingebrigtsen <larsi@gnus.org> [2020-11-03 18:05]:
> Jean Louis <bugs@gnu.support> writes:
>
> > Instead of lambda anonymous function it would be more useful to
> > provide named function to close the tab. This way keybinding can be
> > customized easily. There exists function to open the tab, while
> > anonymous one is handling closing of the tab.
> >
> > <tab-bar> <C-current-tab> runs the command (lambda nil (interactive)
> > (tab-bar-close-tab 6)) (found in global-map), which is an interactive
> > Lisp function.
>
> These are dynamically created actions to close specific tabs. The only
> potentially confusing thing here is that `C-h k' gives you an output at
> all, but I guess there's not much we can do about that.
>
> If you want to close the current tab, use `C-x t 0', for instance, or
> rebind `tab-close' to any key you want.
>
> So I don't think there's anything to fix here, and I'm closing this bug
> report.
Oh, you are right. I was inspecting how to close the bug and found
that function. My expectation was that I will find to which key is tab
closing bound.
Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-03 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-03 9:24 bug#44413: 28.0.50; Provide function to close the tab Jean Louis
2020-11-03 15:04 ` Lars Ingebrigtsen
2020-11-03 15:12 ` Jean Louis
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).