unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "andrés ramírez" <rrandresf@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: bugs@gnu.support, ams@gnu.org, emacs-devel@gnu.org,
	gregory@heytings.org, Alan Mackenzie <acm@muc.de>,
	larsi@gnus.org
Subject: Re: Experimentally unbind M-o on the trunk
Date: Wed, 10 Feb 2021 18:02:49 +0000	[thread overview]
Message-ID: <865z2zu7g6.fsf@gmail.com> (raw)
In-Reply-To: <83czx7j0gq.fsf@gnu.org>

Hi. Guys.

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

    Eli> I doubt it.  Because the keybindings which are being discussed as candidates for usurpation
    Eli> are those most newbies don't know about and many never will.

Indeed. I have never will.

I spent 99% of my emacs time on the tty. I have never used any of the
commands on the M-o set. I have just tried:
--8<---------------cut here---------------start------------->8---
1 center-line
2 center paragraph
--8<---------------cut here---------------end--------------->8---

On my opinion those commands seem to be useful for quotation or for
writing prose (I could be wrong).
But on my personal case when I wan to quote something I use:
--8<---------------cut here---------------start------------->8---
1 mark the region
2 C-u shell-command-on-region and feeding at the prompt with "boxes -d boxquote -i box"
--8<---------------cut here---------------end--------------->8---

see the result below (on this particular case fill-paragraph was applied
before invoking shell-command-on-region):
,---- [  ]
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
| tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim
| veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
| commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
| velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt
| mollit anim id est laborum.
`----

That's the reason I have never used M-o all this long time. But YMMV.

On the contrary. What I have used when checking email from my phone
(using the phone as a mobile terminal 800x480) and for very long subjects is the
function "horizontal-recenter-derived" (which was based on
gnus-horizontal-recenter) .

I have an alias:
(defalias 'hr 'horizontal-recenter-derived)

--8<---------------cut here---------------start------------->8---
(defun horizontal-recenter-derived ()
  "Recenter the current buffer horizontally. based on gnus-horizontal-recenter"
  (interactive)
  (if (< (current-column) (/ (window-width) 2))
      (set-window-hscroll (get-buffer-window (current-buffer) t) 0)
    (let* ((orig (point))
	   (end (window-end (get-buffer-window (current-buffer) t)))
	   (max 0))
      (when end
	;; Find the longest line currently displayed in the window.
	(goto-char (window-start))
	(while (and (not (eobp))
		    (< (point) end))
	  (end-of-line)
	  (setq max (max max (current-column)))
	  (forward-line 1))
	(goto-char orig)
	;; Scroll horizontally to center (sort of) the point.
	(if (> max (window-width))
	    (set-window-hscroll
	     (get-buffer-window (current-buffer) t)
	     (min (- (current-column) (/ (window-width) 3))
		  (+ 2 (- max (window-width)))))
	  (set-window-hscroll (get-buffer-window (current-buffer) t) 0))
	max))))
        --8<---------------cut here---------------end--------------->8---

Hope it helps. Best Regards
ps: probably we the tty-frame-guys have a lot of bindings that just apply for
the X-frames that we never use.



  reply	other threads:[~2021-02-10 18:02 UTC|newest]

Thread overview: 153+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09 12:30 Experimentally unbind M-o on the trunk Gregory Heytings
2021-02-09 15:24 ` Lars Ingebrigtsen
2021-02-10 14:51   ` Jean Louis
2021-02-10  8:44 ` Alfred M. Szmidt
2021-02-10 13:57   ` Tassilo Horn
2021-02-10 14:54   ` Jean Louis
2021-02-10 15:12     ` Alfred M. Szmidt
2021-02-10 15:45       ` Eli Zaretskii
2021-02-10 16:47         ` Alfred M. Szmidt
2021-02-10 17:19           ` Eli Zaretskii
2021-02-10 19:17           ` Matt Armstrong
2021-02-10 16:56         ` Alan Mackenzie
2021-02-10 17:29           ` Eli Zaretskii
2021-02-10 18:02             ` andrés ramírez [this message]
2021-02-10 17:58           ` [External] : " Drew Adams
2021-02-11  5:27           ` Jean Louis
2021-02-10 19:10         ` Matt Armstrong
2021-02-10 19:16           ` Lars Ingebrigtsen
2021-02-11  2:50             ` Smarter M-x that filters on major-mode Stefan Kangas
2021-02-11  3:44               ` Stefan Monnier
2021-02-11  5:02                 ` Yuan Fu
2021-02-11  6:15                   ` [External] : " Drew Adams
2021-02-11  6:11                 ` Drew Adams
2021-02-11  8:58                 ` Lars Ingebrigtsen
2021-02-11 11:00                   ` Lars Ingebrigtsen
2021-02-11 13:46                     ` Lars Ingebrigtsen
2021-02-11 14:16                     ` Eli Zaretskii
2021-02-11 15:04                       ` Lars Ingebrigtsen
2021-02-11 16:05                         ` Stefan Monnier
2021-02-11 16:13                           ` Lars Ingebrigtsen
2021-02-11 16:14                             ` Lars Ingebrigtsen
2021-02-11 19:09                             ` Óscar Fuentes
2021-02-11 19:52                               ` Lars Ingebrigtsen
2021-02-11 20:39                                 ` Óscar Fuentes
2021-02-11 21:08                                   ` Lars Ingebrigtsen
2021-02-11 22:22                                     ` Jose A. Ortega Ruiz
2021-02-12  9:32                                       ` Lars Ingebrigtsen
2021-02-12 16:18                                         ` jao
2021-02-12 17:05                                           ` Stefan Kangas
2021-02-12 17:58                                             ` jao
2021-02-12 17:36                                           ` Stefan Monnier
2021-02-12 17:57                                             ` jao
2021-02-12 18:12                                             ` Dmitry Gutov
2021-02-12 18:16                                               ` Stefan Monnier
2021-02-12 23:58                                                 ` Óscar Fuentes
2021-02-13  0:14                                                   ` [External] : " Drew Adams
2021-02-13  0:47                                                     ` Óscar Fuentes
2021-02-13  2:26                                                       ` Drew Adams
2021-02-13  3:18                                                       ` Stefan Monnier
2021-02-13 11:33                                                   ` Lars Ingebrigtsen
2021-02-13 11:28                                             ` Lars Ingebrigtsen
2021-02-13 11:30                                               ` Lars Ingebrigtsen
2021-02-14  2:40                                               ` [External] : " Drew Adams
2021-02-14  4:30                                                 ` Stefan Monnier
2021-02-14 23:30                                                   ` Drew Adams
2021-02-14 23:36                                                     ` Stefan Monnier
2021-02-14 13:30                                                 ` Lars Ingebrigtsen
2021-02-14 14:20                                                   ` Basil L. Contovounesios
2021-02-14 14:23                                                     ` Lars Ingebrigtsen
2021-02-14 14:32                                                       ` Basil L. Contovounesios
2021-02-14 14:45                                                         ` Lars Ingebrigtsen
2021-02-15 18:16                                                           ` Sean Whitton
2021-02-14 15:00                                                       ` Dmitry Gutov
2021-02-14 15:03                                                       ` Alan Mackenzie
2021-02-14 16:11                                                         ` Stefan Kangas
2021-02-14 16:49                                                           ` Alan Mackenzie
2021-02-14 23:33                                                             ` Stefan Kangas
2021-02-15 15:15                                                               ` Alan Mackenzie
2021-02-16 17:07                                                                 ` Stefan Kangas
2021-02-14 16:57                                                           ` Eli Zaretskii
2021-02-14 17:10                                                             ` Lars Ingebrigtsen
2021-02-14 17:59                                                               ` Basil L. Contovounesios
2021-02-14 18:02                                                                 ` Lars Ingebrigtsen
2021-02-14 18:44                                                                   ` Basil L. Contovounesios
2021-02-14 18:53                                                                     ` Lars Ingebrigtsen
2021-02-14 19:01                                                                       ` Basil L. Contovounesios
2021-02-15  2:59                                                                         ` Lars Ingebrigtsen
2021-02-15  5:25                                                                           ` [External] : " Drew Adams
2021-02-15 12:34                                                                           ` Eric S Fraga
2021-02-14 16:15                                                         ` Óscar Fuentes
2021-02-14 16:55                                                         ` Eli Zaretskii
2021-02-14 17:43                                                       ` Juri Linkov
2021-02-14 18:00                                                         ` Lars Ingebrigtsen
2021-02-14 23:30                                                           ` [External] : " Drew Adams
2021-02-14 23:30                                                         ` Drew Adams
2021-02-15  2:49                                                       ` Stefan Monnier
2021-02-15  3:09                                                         ` Lars Ingebrigtsen
2021-02-14 15:20                                                   ` Lars Ingebrigtsen
2021-02-13 11:22                                           ` Lars Ingebrigtsen
2021-02-12 17:37                                         ` [External] : " Drew Adams
2021-02-13 11:48                                           ` Lars Ingebrigtsen
2021-02-11 14:38                   ` Stefan Monnier
2021-02-11 15:29                     ` Lars Ingebrigtsen
2021-02-11 17:29                     ` Lars Ingebrigtsen
2021-02-11 17:43                       ` Lars Ingebrigtsen
2021-02-11 18:57                     ` Lars Ingebrigtsen
2021-02-11 21:12                       ` Lars Ingebrigtsen
2021-02-11 23:21                         ` Stefan Monnier
2021-02-12  8:59                           ` Lars Ingebrigtsen
2021-02-12 13:39                             ` Stefan Monnier
2021-02-13 11:43                               ` Lars Ingebrigtsen
2021-02-12  9:59                     ` Lars Ingebrigtsen
2021-02-12 10:29                       ` Lars Ingebrigtsen
2021-02-12 10:47                         ` Robert Pluim
2021-02-12 11:19                           ` Lars Ingebrigtsen
2021-02-12 13:40                             ` Robert Pluim
2021-02-13 11:44                               ` Lars Ingebrigtsen
2021-02-11  8:40               ` tomas
2021-02-11 15:56                 ` [External] : " Drew Adams
2021-02-11 19:03                 ` Óscar Fuentes
2021-02-11 20:05                   ` Eli Zaretskii
2021-02-11 20:11                     ` tomas
2021-02-11 20:12                     ` Lars Ingebrigtsen
2021-02-12  7:06                 ` Jean Louis
2021-02-11  8:53               ` Lars Ingebrigtsen
2021-02-12 16:39               ` Basil L. Contovounesios
2021-02-12 17:20                 ` Stefan Kangas
2021-02-12 17:56                   ` Basil L. Contovounesios
2021-02-11  4:55           ` Experimentally unbind M-o on the trunk Yuri Khan
2021-02-11  5:15             ` Matt Armstrong
2021-02-11  6:29               ` [External] : " Drew Adams
2021-02-11 14:02             ` Eli Zaretskii
2021-02-11 15:46               ` Matt Armstrong
2021-02-11 16:08               ` Yuri Khan
2021-02-11 16:58                 ` Eli Zaretskii
2021-02-11 17:28                   ` [External] : " Drew Adams
2021-02-11 19:03                     ` Eli Zaretskii
2021-02-11 19:31                       ` Drew Adams
2021-02-11 17:53                   ` Yuri Khan
2021-02-11 18:06                     ` [External] : " Drew Adams
2021-02-11 19:26                     ` Eli Zaretskii
2021-02-11 20:32                       ` Yuri Khan
2021-02-11 20:43                         ` Eli Zaretskii
2021-02-12  4:38                           ` Yuri Khan
2021-02-12  7:18                             ` Eli Zaretskii
2021-02-11 18:07                   ` Yuri Khan
2021-02-11 19:39                     ` Eli Zaretskii
2021-02-11  5:15         ` Jean Louis
2021-02-11 14:04           ` Eli Zaretskii
2021-02-11 18:55             ` Jean Louis
2021-02-11 19:46               ` Eli Zaretskii
2021-02-11 20:20                 ` Jean Louis
2021-02-11 20:38                   ` Eli Zaretskii
2021-02-10 15:14   ` Eli Zaretskii
2021-02-10 14:50 ` Jean Louis
2021-02-10 16:37   ` [External] : " Drew Adams
2021-02-10 17:19     ` Stefan Kangas
2021-02-10 17:55     ` Clément Pit-Claudel
2021-02-10 18:29       ` Drew Adams
2021-02-11  5:07     ` Jean Louis
2021-02-11  6:18       ` Drew Adams
2021-02-12  6:54         ` Jean Louis
2021-02-12 17:35           ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865z2zu7g6.fsf@gmail.com \
    --to=rrandresf@gmail.com \
    --cc=acm@muc.de \
    --cc=ams@gnu.org \
    --cc=bugs@gnu.support \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gregory@heytings.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).