emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ /home/n/.emacs.d/elpaca/builds/org/); org--get-expected-indentation: useless cond clause
@ 2023-09-09 18:26 No Wayman
  2023-09-10  7:39 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: No Wayman @ 2023-09-09 18:26 UTC (permalink / raw)
  To: emacs-orgmode


When compiling Org, I get the following warning:

In org--get-expected-indentation:
org.el:19192:8: Warning: Useless clause following default ‘cond’ 
clause

I looked at the source and confirmed it is not a false positive.
The following code is unreachable due to the (t ...) cond clause 
before it:

      ;; Finally, no indentation is needed, fall back to 0.
      (t (current-indentation))))))

Package: Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ 
/home/n/.emacs.d/elpaca/builds/org/)


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

* Re: Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ /home/n/.emacs.d/elpaca/builds/org/); org--get-expected-indentation: useless cond clause
  2023-09-09 18:26 Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ /home/n/.emacs.d/elpaca/builds/org/); org--get-expected-indentation: useless cond clause No Wayman
@ 2023-09-10  7:39 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-09-10  7:39 UTC (permalink / raw)
  To: No Wayman; +Cc: emacs-orgmode

No Wayman <iarchivedmywholelife@gmail.com> writes:

> When compiling Org, I get the following warning:
>
> In org--get-expected-indentation:
> org.el:19192:8: Warning: Useless clause following default ‘cond’ 
> clause
>
> I looked at the source and confirmed it is not a false positive.
> The following code is unreachable due to the (t ...) cond clause 
> before it:
>
>       ;; Finally, no indentation is needed, fall back to 0.
>       (t (current-indentation))))))

Thanks for reporting!
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=515e4ed49

-- 
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:[~2023-09-10  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-09 18:26 Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ /home/n/.emacs.d/elpaca/builds/org/); org--get-expected-indentation: useless cond clause No Wayman
2023-09-10  7:39 ` 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).