From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QL/ZCEVLpGTQkwAASxT56A (envelope-from ) for ; Tue, 04 Jul 2023 18:39:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iO7qB0VLpGRRQgEAG6o9tA (envelope-from ) for ; Tue, 04 Jul 2023 18:39:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BFFDD124FC for ; Tue, 4 Jul 2023 18:39:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGj3F-0008FL-Pm; Tue, 04 Jul 2023 12:38:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGj3E-0007xC-0b for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 12:38:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGj3B-0002B5-Cc for emacs-orgmode@gnu.org; Tue, 04 Jul 2023 12:38:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5A996240027 for ; Tue, 4 Jul 2023 18:38:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688488726; bh=8cHu/6IHtFjG8YMi7EjHPwLUmmhDeqi6ehhflzUue7Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=O5Xk0mG8VbzCTZ3nW07EpWp1avysatUOy18vjQg5jRCMJ35NxRZomzAmyHudCbPU5 EKaI84geD1sxNoG8Pq1zq/dScwHox5aGpAaQowGL9OSZjnRLjl9XYmpmNRPdBoKKog aYbNorfVM3WLnNLnTA3bRB9YZlVSgHaozL49XT6hv6S8RHro7N8KD4YEyF0iTWroN8 lXAXAxZHwt+bBMVHvFOFeC1zdDqc7XHXuqrCZjEzbbr2kgwU0nV814VPFW3kzfCxng fzX6pcILyhNdVRRy91R57CatY6BPLacaomY6Y3GNLAGPwKr1hNPrW4eHxigEZbvtTH QNGtXYo91JzTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QwT515yn0z9rxF; Tue, 4 Jul 2023 18:38:45 +0200 (CEST) From: Ihor Radchenko To: Nick =?utf-8?Q?R=C3=B6mer?= Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] error wholenump in org agenda on reschedule [9.6.1 (9.6.1-??-fe92a3c @ /data/data/com.termux/files/home/.config/emacs/.local/straight/build-28.3/org/)] In-Reply-To: References: Date: Tue, 04 Jul 2023 16:38:45 +0000 Message-ID: <874jmjr5re.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688488772; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eqtk2VLWJEStAoDyhK/VLRQaXhE1nQ+ytkMvxGSBrOo=; b=sr8BsTUN8HN8YDTUXEGKUIRD2dqaUyOsol4QVmb58/njZY3fXfz9LV/3UCiYSlmi3oZ0Fm wrxqMaEoK//SxbnDNXIbNQG4z3aIKxgCoDx7fmQM+K26tcT+HPCw6nB5sd3Jf6H4c+uPwz QzQdubP1jd4cPmVsuYt6wE+F1u+ogb9JjY/JxqAindjeaNNqLOmrFKw4gp5nc0iYyWnF70 CCjR84sMpU1TyiPrp00G8Al/m42vwzN2s3wwjtxbeGDP64dFsBlpm7nWq6MDkA/wHFwe2U hL/WBSyXjtjUkW79h7Nj01C+oTLi2eRRlRDBi2rslyUE+21idWCul0K507DebQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=O5Xk0mG8; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688488772; a=rsa-sha256; cv=none; b=a1Ey8DL6Znmb2OgTlxQUF1w+RAQWOK2SUq1Td+hxKJObuGN+V5F9WS8rfvMGOkDIO9KGu/ dD6PMgj+FEYHNSJnyZKi/Zcd8sr/Cf8ns1XecBtdC+xDzTDeDOxmwr6HXSojebpPuPJviz YcNOaBYoBY/CCL8IiLzUnky1scR5Ib94FjJyl0KJBzo1L4AEZuMtazVSrPyMPXT1HlkJpl Acj6jDxgM5ENCUYw/xzcTf1nCo/+/fnpaPqzYbosOg9Yaz5rd4duwn9gr1tCCXgKNqnzEe c7HKNPxSHBlSBZkGXpf1QoyzoZpBnhP1b5Knknz93QOg2XcQIrNhIZD9XAowrQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=O5Xk0mG8; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BFFDD124FC X-Spam-Score: -6.24 X-TUID: 2XlpycGvjJco --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [ Adding Org ML back to CC ] Nick R=C3=B6mer writes: > Debugger entered--Lisp error: (wrong-type-argument wholenump -2)=C2=A0 > move-to-column(-2 t)=C2=A0 org-move-to-column(-2 t)=C2=A0 > org-agenda-show-new-time ... Thanks! Does the attached patch solve the problem? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-org-agenda-show-new-time-Fix-when-window-is-very-nar.patch Content-Transfer-Encoding: quoted-printable >From cd7c52972ea93029278f462fb0240e49aaba4fa2 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Tue, 4 Jul 2023 19:34:41 +0300 Subject: [PATCH] org-agenda-show-new-time: Fix when window is very narrow MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/org-agenda.el (org-agenda-show-new-time): When window is narrower than timestamp, do not try to display timestamps starting at negative column. Reported-by: Nick R=C3=B6mer Link: https://orgmode.org/list/4196e86e.19136.1891ceef131.Webtop.154@skynet= .be --- lisp/org-agenda.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 89c10403b..5594c7453 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -10100,8 +10100,10 @@ (defun org-agenda-show-new-time (marker stamp &opt= ional prefix) (line-end-position) '(display nil)) (org-move-to-column - (- (window-max-chars-per-line) - (length stamp)) + (min + 1 ;; narrow buffer and wide timestamp + (- (window-max-chars-per-line) + (length stamp))) t) (add-text-properties (1- (point)) (line-end-position) --=20 2.41.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Debugger entered--Lisp error: (wrong-type-argument wholenump -2)=C2=A0 mo= ve-to-column(-2 t)=C2=A0 org-move-to-column(-2 t)=C2=A0 org-agenda-show-new= -time(# "Scheduled to <2= 023-07-04 Tue>" " S")=C2=A0 org-agenda-schedule(nil "2023-07-04")=C2=A0 #f(= compiled-function () #)()=C2=A0 org-agenda-bulk-action= (nil)=C2=A0 funcall-interactively(org-agenda-bulk-action nil)=C2=A0 call-in= teractively(org-agenda-bulk-action nil nil)=C2=A0 command-execute(org-agend= a-bulk-action) > -------- Original message --------From: Ihor Radchenko Date: 04/07/23 14:29 (GMT+01:00) To: Nick R=C3=B6mer Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] error wholenump in org = agenda on reschedule [9.6.1 > (9.6.1-??-fe92a3c @ > /data/data/com.termux/files/home/.config/emacs/.local/straight/build-28= .3/org/)] Nick R=C3=B6mer via "General discussions about Org-mode." writes:> In org agenda view, on terminal Emacs version runn= ing in termux on my > Samsung galaxy A10, I get an Error "wholenump -3" whe= n selecting one or > more TODOs with the "m" key and subsequently trying to= reschedule using > the key sequence "x s". However, if I zoom out a bit (u= sing the pincer > gesture) the error does not happen.May you share the back= trace? (after M-x toggle-debug-on-error)-- Ihor Radchenko // yantar92,Org m= ode contributor,Learn more about Org mode at .Support= Org development at ,or support my work at = --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--