From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= Newsgroups: gmane.emacs.devel Subject: Re: Experimentally unbind M-o on the trunk Date: Wed, 10 Feb 2021 18:02:49 +0000 Organization: bien.comun.org Message-ID: <865z2zu7g6.fsf@gmail.com> References: <8ed9b43502ae1480e06b@heytings.org> <83r1lohqoc.fsf@gnu.org> <83czx7j0gq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6473"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bugs@gnu.support, ams@gnu.org, emacs-devel@gnu.org, gregory@heytings.org, Alan Mackenzie , larsi@gnus.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 10 19:05:22 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l9tre-0001ZX-Cz for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 19:05:22 +0100 Original-Received: from localhost ([::1]:54390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9trd-0005QC-FV for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 13:05:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9tpL-0003zb-1A for emacs-devel@gnu.org; Wed, 10 Feb 2021 13:02:59 -0500 Original-Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:35049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9tpJ-0005QL-BR; Wed, 10 Feb 2021 13:02:58 -0500 Original-Received: by mail-qk1-x730.google.com with SMTP id x14so2550670qkm.2; Wed, 10 Feb 2021 10:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:organization:references:date :message-id:mime-version; bh=0qr1sN2b7jF4BWOqqZggmgHToRMoQ8qMPUmjOJjuQEg=; b=Jw1g/qMgDMnT9cEc9VGegoG3l0ZFE+j2H0HKTOwzzElBI45uKuJKzwKEdqmzbR7g/G YWossIdd2POiWgmYo7VpJkJU0zjWa8sPOG0VtK2cO8eaY3GO1bHv2JZsGbx9heS+f0uO wZRFZyual6zPes3yLP3lXzkoISYG2HfhawO7MbtIBRrk5HHof+ZyMzFJ6J3K72VgfpVk hi/7i+Vcsyodd6dlAEujj7bBnpVV6EjaXQg7n8BjudlVWE2jeZ+3FIbPZ0VExBYLgiCQ GUa3IJRjm8nyEylkxPdSvzDm9YcGZpMdwtgbidfWc1CPsnLHiGHcDw6khcm0mt5R1oMT NA2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:organization :references:date:message-id:mime-version; bh=0qr1sN2b7jF4BWOqqZggmgHToRMoQ8qMPUmjOJjuQEg=; b=oc3X5N8/ffUcIaAOREpDOBsrXmXMjc6+3mp5E4N9z2omC3pezKKLoQ+1pzX0RoHk2o XZiOj1iPQdKHx7sRxh2+6CsX3K+RSrB9/3xBf3LIIgowpwEOyCEyeoDAzktx18X7qPC8 RXeP16Jm57L1ppXDezHCcjLN04+HlSHgDGdfJtqtlpuBsK51ijM2f+tgpCpIT0HikO77 dd5PM2Sb5BzLvkRIofi4G0ne6W/QXY0FvsBL/NXb1yhlsqfs4Un5StZ4suEiRDj0rmSX J3pHWArR9/Lg79M8h3I0CrDiESeMndNlq7R3wyy5Bh6XZ2sAJj6TxxgtfOOOznta+sou 2tEA== X-Gm-Message-State: AOAM533yhic8j8u7/xif0PJwTmjf9FVri5l87t0M7BMlAFPNnDS1eYdt poYo8FxwrzEGe7oyHdD8qjOHKtkpQho= X-Google-Smtp-Source: ABdhPJx4VJuELxpR0zZi1Qww0tK/yAxixwFwtmOacfKG4HP8vq917cbz72IpAYUoBIdnUEQ0kt5dWQ== X-Received: by 2002:ae9:e915:: with SMTP id x21mr4429532qkf.311.1612980174826; Wed, 10 Feb 2021 10:02:54 -0800 (PST) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.42.230.123]) by smtp.gmail.com with ESMTPSA id i22sm1911502qki.100.2021.02.10.10.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 10:02:54 -0800 (PST) In-Reply-To: <83czx7j0gq.fsf@gnu.org> X-Attribution: INKA Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=rrandresf@gmail.com; helo=mail-qk1-x730.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264317 Archived-At: Hi. Guys. >>>>> "Eli" == Eli Zaretskii 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.