unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist
@ 2017-01-18  8:29 Jens Lechtenboerger
  2017-01-18 16:00 ` Kyle Meyer
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Lechtenboerger @ 2017-01-18  8:29 UTC (permalink / raw)
  To: 25473

Hi there,

I cannot create new diary entries from the org agenda view.

Recipe from 'emacs -Q':

M-x org-agenda
Press 'a' (agenda for current week)
Press 'i' (create diary entry)
Press 'd' (choose daily entry)

Observe message: "org-agenda-diary-entry: Wrong type argument:
commandp, insert-diary-entry"

Note that in diary-lib.el there is a function diary-insert-entry,
not insert-diary-entry.

Best wishes
Jens

In GNU Emacs 26.0.50.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2017-01-18 built on D-3140W11
Repository revision: dbb29d7eb428dd53617d31a9cc159d889deb1e8e





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

* bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist
  2017-01-18  8:29 bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist Jens Lechtenboerger
@ 2017-01-18 16:00 ` Kyle Meyer
  2017-01-18 18:38   ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2017-01-18 16:00 UTC (permalink / raw)
  To: Jens Lechtenboerger; +Cc: 25473

Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:

> I cannot create new diary entries from the org agenda view.
>
> Recipe from 'emacs -Q':
>
> M-x org-agenda
> Press 'a' (agenda for current week)
> Press 'i' (create diary entry)
> Press 'd' (choose daily entry)
>
> Observe message: "org-agenda-diary-entry: Wrong type argument:
> commandp, insert-diary-entry"
>
> Note that in diary-lib.el there is a function diary-insert-entry,
> not insert-diary-entry.

685d3ba4a (Replace obsolete aliases of calendar functions, 2014-11-15)
in the Org mode repo switched the commands over to the diary prefix.
Here's the patch for that, with the paths adjusted so that it can be
applied to the Emacs repo without using -p<n>.

--8<---------------cut here---------------start------------->8---
From: Florian Beck <fb@miszellen.de>
Date: Sat, 15 Nov 2014 19:14:27 +0100
Subject: [PATCH] Replace obsolete aliases of calendar functions

* lisp/org/org-agenda.el (org-agenda-diary-entry): Replace obsolete functions.
---
 lisp/org/org-agenda.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 7632e1b17..b4b0a24de 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -9473,13 +9473,13 @@ (defun org-agenda-diary-entry ()
                   (message "Diary entry: [d]ay [w]eekly [m]onthly [y]early [a]nniversary [b]lock [c]yclic")
                   (read-char-exclusive)))
           (cmd (cdr (assoc char
-			    '((?d . insert-diary-entry)
-			      (?w . insert-weekly-diary-entry)
-			      (?m . insert-monthly-diary-entry)
-			      (?y . insert-yearly-diary-entry)
-			      (?a . insert-anniversary-diary-entry)
-			      (?b . insert-block-diary-entry)
-			      (?c . insert-cyclic-diary-entry)))))
+			    '((?d . diary-insert-entry)
+			      (?w . diary-insert-weekly-entry)
+			      (?m . diary-insert-monthly-entry)
+			      (?y . diary-insert-yearly-entry)
+			      (?a . diary-insert-anniversary-entry)
+			      (?b . diary-insert-block-entry)
+			      (?c . diary-insert-cyclic-entry)))))
           (oldf (symbol-function 'calendar-cursor-to-date))
           ;; (buf (get-file-buffer (substitute-in-file-name diary-file)))
           (point (point))
--
2.11.0

--8<---------------cut here---------------end--------------->8---

--
Kyle





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

* bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist
  2017-01-18 16:00 ` Kyle Meyer
@ 2017-01-18 18:38   ` Glenn Morris
  2017-08-15 23:25     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2017-01-18 18:38 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: Jens Lechtenboerger, 25473

Kyle Meyer wrote:

> 685d3ba4a (Replace obsolete aliases of calendar functions, 2014-11-15)
> in the Org mode repo switched the commands over to the diary prefix.

There is a clear problem if Org changes aren't being synced to Emacs for
over 2 years.





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

* bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist
  2017-01-18 18:38   ` Glenn Morris
@ 2017-08-15 23:25     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2017-08-15 23:25 UTC (permalink / raw)
  To: 25473-done

Version: 26.1

This was fixed in 5cecd27.





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

end of thread, other threads:[~2017-08-15 23:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18  8:29 bug#25473: 26.0.50; org-agenda tries to invoke insert-diary-entry, which does not exist Jens Lechtenboerger
2017-01-18 16:00 ` Kyle Meyer
2017-01-18 18:38   ` Glenn Morris
2017-08-15 23:25     ` Glenn Morris

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).