emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] lisp/org-colview.el: [refactor] replace anonymouse function with `forward-char
@ 2024-02-04 16:30 Sławomir Grochowski
  2024-02-04 16:50 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Sławomir Grochowski @ 2024-02-04 16:30 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 101 bytes --]

Dear All,

It's a TINYCHANGE and the patch is self-explanatory.

Regards,
Sławomir Grochowski

[-- Attachment #1.2: Type: text/html, Size: 190 bytes --]

[-- Attachment #2: 0001-lisp-org-colview.el-refactor-replace-anonym.-functio.patch --]
[-- Type: text/x-patch, Size: 1298 bytes --]

From 884e57101de6baf92d6d4e6c2c3476c7c3498185 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= <slawomir.grochowski@gmail.com>
Date: Sat, 3 Feb 2024 19:30:03 +0100
Subject: [PATCH] lisp/org-colview.el: [refactor] replace anonym. function with
 `forward-char

* org-colview.el: [refactor] Replace an anonymous function with
a named function `forward-char'.

TINYCHANGE
---
 lisp/org-colview.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index d0af89b61..81254c483 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -188,10 +188,8 @@ See `org-columns-summary-types' for details.")
 (org-defkey org-columns-map "\M-b"     #'backward-char)
 (org-defkey org-columns-map "a"        #'org-columns-edit-allowed)
 (org-defkey org-columns-map "s"        #'org-columns-edit-attributes)
-(org-defkey org-columns-map "\M-f"
-	    (lambda () (interactive) (goto-char (1+ (point)))))
-(org-defkey org-columns-map [right]
-	    (lambda () (interactive) (goto-char (1+ (point)))))
+(org-defkey org-columns-map "\M-f"     #'forward-char)
+(org-defkey org-columns-map [right]    #'forward-char)
 (org-defkey org-columns-map [down]
 	    (lambda () (interactive)
 	      (let ((col (current-column)))
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] lisp/org-colview.el: [refactor] replace anonymouse function with `forward-char
  2024-02-04 16:30 [PATCH] lisp/org-colview.el: [refactor] replace anonymouse function with `forward-char Sławomir Grochowski
@ 2024-02-04 16:50 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-02-04 16:50 UTC (permalink / raw)
  To: Sławomir Grochowski; +Cc: emacs-orgmode

Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> It's a TINYCHANGE and the patch is self-explanatory.

Thanks!
Applied, onto main, with amendments to the commit message.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0938795fd

You don't need TINYCHANGE cookie when you already have FSF copyright
assignment.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-04 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-04 16:30 [PATCH] lisp/org-colview.el: [refactor] replace anonymouse function with `forward-char Sławomir Grochowski
2024-02-04 16:50 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).