From unknown Mon Aug 18 11:22:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14509: Centerd calendar buffer Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2013 23:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14509 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14509@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13698692169988 (code B ref -1); Wed, 29 May 2013 23:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 May 2013 23:13:36 +0000 Received: from localhost ([127.0.0.1]:40924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhpYm-0002b2-3X for submit@debbugs.gnu.org; Wed, 29 May 2013 19:13:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47260) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhpYj-0002aq-Um for submit@debbugs.gnu.org; Wed, 29 May 2013 19:13:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhpX9-0007AO-RT for submit@debbugs.gnu.org; Wed, 29 May 2013 19:12:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpX9-0007AK-OY for submit@debbugs.gnu.org; Wed, 29 May 2013 19:11:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpX2-0004pz-IG for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:11:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhpWw-00078T-Fx for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:11:48 -0400 Received: from mail-qe0-f53.google.com ([209.85.128.53]:36156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhpWw-00078N-BG for bug-gnu-emacs@gnu.org; Wed, 29 May 2013 19:11:42 -0400 Received: by mail-qe0-f53.google.com with SMTP id s14so5465212qeb.40 for ; Wed, 29 May 2013 16:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Yf2iUXkmWivP8fuPt+LI6Gug5zKMlOK/3IeCJvX82xw=; b=1CDyARs4/o2Cvc19wnzJhCn/AbcZNMd/jG0D/xzq2LOK2DM48YmCTTv8oXFqo6xsG8 I82z/8/ApXPJ3z0k/EiKa9+42xC1uKhJ+gm0yDbFfVP4C08q2CkXwWkji9hBpdmPabbg /4fFIaBAm11nAoAueTiyt0MRJ6Fo+/BbwgGL6G+iiilxq7mjSmbe3FPKTFXe2hKZo9GV vOEpPdFt70boi9HYs+f8kykMBhVr5h9s1JgTwMCbyKJ/zOJdsYtre9DhIWfqspO9S+o6 y74974r13Q1WmodxzHzNeL9c2tIVgafCMjT8kgXh2/iOmu+XDikb3/BKKWVO8i+MPbt2 sn5w== MIME-Version: 1.0 X-Received: by 10.229.136.213 with SMTP id s21mr1862871qct.9.1369869101848; Wed, 29 May 2013 16:11:41 -0700 (PDT) Received: by 10.49.18.162 with HTTP; Wed, 29 May 2013 16:11:41 -0700 (PDT) Date: Thu, 30 May 2013 00:11:41 +0100 Message-ID: From: E Sabof Content-Type: multipart/alternative; boundary=002354790f1c34660904dde3811c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --002354790f1c34660904dde3811c Content-Type: text/plain; charset=ISO-8859-1 The following snippet will center the content of the calendar window. If there is interest in integrating this into emacs, I can reformat it as a patch. A possible interface to enable it could be (setq calendar-left-margin 'auto) Evgeni (require 'cl-lib) (defun calendar-mode-options () (setq calendar-left-margin 1) (add-hook 'window-configuration-change-hook 'es-calendar-win-config-hook nil t)) (add-hook 'calendar-mode-hook 'calendar-mode-options) (defun es-calendar-win-config-hook () (catch 'exit (with-current-buffer (or (get-buffer calendar-buffer) (throw 'exit nil)) (dolist (win (get-buffer-window-list nil nil t)) (with-selected-window win (let* (( max (+ (* 7 3 3) (* 2 calendar-intermonth-spacing) -1)) ( left (max 0 (/ (- (window-body-width) max) 2)))) (dolist (ov (overlays-in (point-min) (point-max))) (when (and (overlay-get ov 'left-center-margin) (eq (selected-window) (overlay-get ov 'window))) (delete-overlay ov))) (save-excursion (goto-char (point-min)) (cl-loop for ov = (make-overlay (line-beginning-position) (1+ (line-beginning-position))) do (progn (overlay-put ov 'window (selected-window)) (overlay-put ov 'display (make-string left ?\s )) (overlay-put ov 'left-center-margin t) ) while (zerop (forward-line)) )))))))) (defadvice calendar-generate (after center-calendar activate) (es-calendar-win-config-hook)) --002354790f1c34660904dde3811c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The following snippet will center the content of the calen= dar window. If there is interest in integrating this into emacs, I can refo= rmat it as a patch. A possible interface to enable it could be (setq=A0cale= ndar-left-margin 'auto)

Evgeni

(require 'cl-lib)

(defun calendar-mode-options ()
=A0 (setq c= alendar-left-margin 1)
=A0 (add-hook 'window-configuration-ch= ange-hook
=A0 =A0 =A0 =A0 =A0 =A0 'es-calendar-win-config-hook nil t))
=
(add-hook 'calendar-mode-hook 'calendar-mode-options)

(defun es-calendar-win-config-hook ()
=A0 (catch= 'exit
=A0 =A0 (with-current-buffer
=A0 =A0 =A0 =A0 (or (get-buffer= calendar-buffer)
=A0 =A0 =A0 =A0 =A0 =A0 (throw 'exit nil))<= /div>
=A0 =A0 =A0 (dolist (win (get-buffer-window-list nil nil t))
=A0 =A0 =A0 =A0 (with-selected-window win
=A0 =A0 =A0 =A0 =A0 (let* (( max (+ (* 7 3 3)
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (* 2 calendar-intermonth-spacing)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -1))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0( left (max 0 (/ (- (window-body-width)= max) 2))))
=A0 =A0 =A0 =A0 =A0 =A0 (dolist (ov (overlays-in (point-min) (point-ma= x)))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 (when (and (overlay-get ov '= left-center-margin)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0(eq (selected-window)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0(overlay-get ov 'window)))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (delete-overlay ov)))
=A0 = =A0 =A0 =A0 =A0 =A0 (save-excursion
=A0 =A0 =A0 =A0 =A0 =A0 =A0 (= goto-char (point-min))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 (cl-loop for o= v
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D (make-overla= y
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (line-beginning-po= sition)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (1+ (= line-beginning-position)))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0do (progn
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 (overlay-put ov 'window (selected-window))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (overlay-put o= v 'display (make-string left ?\s ))
=A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (overlay-put ov 'left-center-margin t)<= /div>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 )
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0while (zerop (forward-lin= e))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0))))))))

=
(defadvice calendar-generate (after center-calendar activate)
=A0 (es-calendar-win-config-hook))

=
--002354790f1c34660904dde3811c-- From unknown Mon Aug 18 11:22:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14509: Fwd: bug#14509: Centerd calendar buffer Resent-From: E Sabof Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2013 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14509 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 14509@debbugs.gnu.org Received: via spool by 14509-submit@debbugs.gnu.org id=B14509.137002496111165 (code B ref 14509); Fri, 31 May 2013 18:30:02 +0000 Received: (at 14509) by debbugs.gnu.org; 31 May 2013 18:29:21 +0000 Received: from localhost ([127.0.0.1]:44959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiU4m-0002u2-Ts for submit@debbugs.gnu.org; Fri, 31 May 2013 14:29:21 -0400 Received: from mail-qe0-f52.google.com ([209.85.128.52]:42902) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiU4l-0002ti-EL for 14509@debbugs.gnu.org; Fri, 31 May 2013 14:29:20 -0400 Received: by mail-qe0-f52.google.com with SMTP id 1so1134127qec.11 for <14509@debbugs.gnu.org>; Fri, 31 May 2013 11:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=is26CBPdSJsUeaLB6IXw1hSP6WtG+c7RKuTfi6DcmpA=; b=aRVWIfiH5ostK48OGx3v1soNQiKokAOFsB3rt43LUNlprnYYVF4n2absbRS2j0ag60 9p21fXZdY8L43i8zC645WBDWEAiOfBgMoFsvVGDynrZOBiKREL7U3fVQZ9S9T9KRAXh7 EKDSjBtedEGwxlkyOQeAjzxbPkeLuxilzotbdNtB7xWf2cX5lDIKd3b3/hrHYNFuXao4 AdWhCOBX6Ff5Nieg9ltEZMtmF7iorywpwCpOHm4uqhZotpWrLmhS7UgjNYZk6QMQM6Ly QQjzUQe57rGPCkhPUHve9fGEEjhHa40W/aCljp2BNaM9UA8PgbKfP0N+dJugVX0spFpl WzbA== MIME-Version: 1.0 X-Received: by 10.229.76.137 with SMTP id c9mr3850944qck.98.1370024857724; Fri, 31 May 2013 11:27:37 -0700 (PDT) Received: by 10.49.18.162 with HTTP; Fri, 31 May 2013 11:27:37 -0700 (PDT) In-Reply-To: References: Date: Fri, 31 May 2013 19:27:37 +0100 Message-ID: From: E Sabof Content-Type: multipart/alternative; boundary=002354333ab6fa730604de07c445 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --002354333ab6fa730604de07c445 Content-Type: text/plain; charset=ISO-8859-1 A better version: (defun es-calendar-recenter (&optional all-frames) (let (( calendar-width (+ (* 7 3 3) (* 2 calendar-intermonth-spacing) -1))) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "^ +" nil t) (put-text-property (match-beginning 0) (match-end 0) 'display `(space :align-to (+ center (,(/ calendar-width -2) . width)))))))) (defadvice calendar-generate (after center-calendar activate) (es-calendar-recenter t)) (eval-after-load 'calendar '(defun calendar-update-mode-line () "Update the calendar mode line with the current date and date style." (if (bufferp (get-buffer calendar-buffer)) (with-current-buffer calendar-buffer (let* ((start (- calendar-left-margin 2)) (date (condition-case nil (calendar-cursor-to-nearest-date) (error (calendar-current-date)))) (content-string (calendar-string-spread (mapcar 'eval calendar-mode-line-format) ?\s (- calendar-right-margin (1- start))))) (setq mode-line-format (concat (propertize " " 'display `(space :align-to (+ center (,(/ (length content-string) -2) . width)))) content-string))) (force-mode-line-update))))) --002354333ab6fa730604de07c445 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
A better version:
<= div style=3D"font-family:arial,sans-serif;font-size:13px">
(defun es-calendar-recenter (&optional all-frames)
=A0 (let (= ( calendar-width
=A0 =A0 =A0 =A0 =A0 (+ (* 7 3 3)
=A0 = =A0 =A0 =A0 =A0 =A0 =A0(* 2 calendar-intermonth-spacing)
=A0 =A0 = =A0 =A0 =A0 =A0 =A0-1)))
=A0 =A0 (save-excursion
=A0 =A0 =A0 (goto-char (point-min))
=A0 =A0 =A0 (while (sear= ch-forward-regexp "^ +" nil t)
=A0 =A0 =A0 =A0 (put-tex= t-property
=A0 =A0 =A0 =A0 =A0(match-beginning 0)
=A0 = =A0 =A0 =A0 =A0(match-end 0)
=A0 =A0 =A0 =A0 =A0'display
=A0 =A0 =A0 =A0 =A0`(space :align= -to (+ center (,(/ calendar-width -2)
=A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 . width))))))))
= (defadvice calendar-generate (after center-calendar activate)
=A0 (es-calendar-recenter t))

(eval-after-loa= d 'calendar
=A0 '(defun calendar-update-mode-line ()
=A0 =A0 =A0"Update the calendar mode line with the current date = and date style."
=A0 =A0 =A0(if (bufferp (get-buffer calendar-buffer))
=A0 = =A0 =A0 =A0 =A0(with-current-buffer calendar-buffer
=A0 =A0 =A0 = =A0 =A0 =A0(let* ((start (- calendar-left-margin 2))
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 (date (condition-case nil
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (calendar-curs= or-to-nearest-date)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 (error (calendar-current-date))))
=A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 (content-string (calendar-string-spread
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(mapcar 'eva= l calendar-mode-line-format)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0?\s (- calendar-right-margin (1- start)))))
=A0 =A0 =A0 =A0 = =A0 =A0 =A0(setq mode-line-format
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0(concat (propertize
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 " "
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'display
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 `(space :a= lign-to (+ center (,(/ (length content-string) -2) . width))))
= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0content-string)))
=A0 =A0 =A0 =A0 =A0 =A0(force-mode-line-update)))))

--002354333ab6fa730604de07c445-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 23:49:34 2017 Received: (at control) by debbugs.gnu.org; 29 May 2017 03:49:34 +0000 Received: from localhost ([127.0.0.1]:42378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFBgU-0006GK-LF for submit@debbugs.gnu.org; Sun, 28 May 2017 23:49:34 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:33292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFBgT-0006G8-0o for control@debbugs.gnu.org; Sun, 28 May 2017 23:49:33 -0400 Received: by mail-io0-f176.google.com with SMTP id p24so34998367ioi.0 for ; Sun, 28 May 2017 20:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=sjwVAAULhE1pmvQl32IW22PMwnTXSHcDQh4ex00sf2M=; b=iQrxECbQCijRwh5W+RYJk97DwSdPHIwCCm3Wa6yYusJdjzRWvgfAdG/Ps020ECpyHW fnEQCgmMUoHyddOa5U282HqPVkIqzMwvI1OLB/FSmRiYTA+VBE/0RIntgUWVjDldR18B UfXDfqxfkrwSGJ6w4GciU1LSsaZXGkzmmho7UMO6eQ/J+X2QxAZQkPp3PdF3pky36j2y r3KneIPkFgHwM1g/UN8ORuGYf1rJBEah/xCHWd2r8xjem/YovFI5UlTMVsKQaTPAaMsV P4DTVRYr62jvPLMz+f5f8OVpTuOWei4Fn6owyKKQyEyjScapNJ8/ZL5GWt+SfWexrFCz X/4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=sjwVAAULhE1pmvQl32IW22PMwnTXSHcDQh4ex00sf2M=; b=EOh1cK2ZMN1jw9MoIpuHeH7vTcseTp91GOWrJE+KipFIWFmcK18L174CsH6P2h0eJO EJdp3oHnn/sP93ndBL3SklnbBjmrnhNZtIG0CBDhGrhfpg6xwO4xVezWtKerUjjnzro1 e4zKieekgi+Z97ktgiOYmC+6fbRM4qItpO/QHUWDHxL+mPpAfrKywQ5xql+xmUdUz2dC nTy0NXd0B2EUSnk+eybsdO8XNGAB7fi2gxsJywMVBny97naAq+O6SGGz0JjJMP03n0Ot gy2RClz4WzK1ko/hn7yRjETaNR5jo+70cpvIfe2z0Py3abneSil7wa59DolN0LNc4S/t EfVQ== X-Gm-Message-State: AODbwcA0ZKShd/RYa298SCxzOF2paOwnbfQ/0tt0/8aAHeg+BJ/yrZXr Ox8xigX70EMQmyKP X-Received: by 10.107.6.69 with SMTP id 66mr11326213iog.163.1496029767354; Sun, 28 May 2017 20:49:27 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id x31sm7817427ita.2.2017.05.28.20.49.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 May 2017 20:49:26 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #14509 Date: Sun, 28 May 2017 23:51:03 -0400 Message-ID: <87o9uc48yg.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) # There is a code snippet, not a patch tags 14509 - patch quit From unknown Mon Aug 18 11:22:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14509: Centerd calendar buffer Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2020 23:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14509 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: E Sabof Cc: 14509@debbugs.gnu.org Received: via spool by 14509-submit@debbugs.gnu.org id=B14509.15888079876018 (code B ref 14509); Wed, 06 May 2020 23:34:03 +0000 Received: (at 14509) by debbugs.gnu.org; 6 May 2020 23:33:07 +0000 Received: from localhost ([127.0.0.1]:41554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWTXG-0001Yz-QL for submit@debbugs.gnu.org; Wed, 06 May 2020 19:33:06 -0400 Received: from mail-yb1-f170.google.com ([209.85.219.170]:42409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWTXE-0001YV-PD for 14509@debbugs.gnu.org; Wed, 06 May 2020 19:33:05 -0400 Received: by mail-yb1-f170.google.com with SMTP id i16so1915755ybq.9 for <14509@debbugs.gnu.org>; Wed, 06 May 2020 16:33:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=BKK1nP9PdyTtbxWfj532A1yyCboRFm3Rsgc2zy4X3BA=; b=fDmdM330RFG0+ZjT/KVr/ge8VHF8Tuwxo2fbzmZ7kGgk1FosRk2O3qx/NfSJ/Upbd8 Okd2sh6RWahny2IHZhWx5o7cgL0LqtiuToqX8HgNDOe7N2WclHAUsGfAtJiUt47H0azG 5fvD5vjuZ8InNtXXOTjrwWaibpc+0taPVi3I20Vn/gCkC+htcJct3l0NLvT5KZrvtaID DqVLFnY5WnTUSHUVWsV/6bMJ9S36MR5ExaJhDnaZ3xS61SF265DoejrXPh++bBMmiHqm cDP3WtAPijnp0xZFes/T2RyMCw5FrpeJLfBxp2wgpHlnW9G0jSqNFO6iJZZX7tRShCnW 9+Vg== X-Gm-Message-State: AGi0PuYXH7x9QdCr91ef/xR+/TiF3yX0BtLZ2ujACc5uXuG69o5VoA7u hiGkSVxNe2cMBQoA8Ty+FX8c8kipuSw9As6qC4g= X-Google-Smtp-Source: APiQypJQgx71BFYDeGIHVGs/FbVHzwCw7e3NroL3gUR6rZj3mMXfWiiaAN3RDodLEUwuZtuo/U4Wq4z/qNEFmGizSAo= X-Received: by 2002:a25:5c4:: with SMTP id 187mr18297829ybf.181.1588807979055; Wed, 06 May 2020 16:32:59 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 6 May 2020 19:32:58 -0400 From: Stefan Kangas In-Reply-To: (E. Sabof's message of "Thu, 30 May 2013 00:11:41 +0100") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 6 May 2020 19:32:58 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) E Sabof writes: > The following snippet will center the content of the calendar > window. If there is interest in integrating this into emacs, I can > reformat it as a patch. A possible interface to enable it could be > (setq calendar-left-margin 'auto) (This was filed in 2013 but never got a reply.) Thanks for your interest in Emacs, and sorry you didn't get a reply sooner. I don't know if you're still interested in working on this. If you are, here are some questions: Could you please explain a bit about the motivation for this feature. Any particular reason you feel that the calendar buffer is better centered? Most other buffers just display text to the left. And wouldn't it be better to have a general mode to center *any* buffer? I know there have been attempts in that direction, and quite possibly there already exists functioning packages to do it. That would mean users could pick and choose where to apply this effect, rather than having to write code to achieve it "manually" for every mode. If I don't hear back from you, I'm inclined to close this bug as wontfix. So please let us know what you think. Thanks in advance. Best regards, Stefan Kangas From unknown Mon Aug 18 11:22:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14509: Centerd calendar buffer Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jul 2020 17:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14509 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: E Sabof Cc: 14509@debbugs.gnu.org Received: via spool by 14509-submit@debbugs.gnu.org id=B14509.159543732922652 (code B ref 14509); Wed, 22 Jul 2020 17:03:01 +0000 Received: (at 14509) by debbugs.gnu.org; 22 Jul 2020 17:02:09 +0000 Received: from localhost ([127.0.0.1]:42921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyI89-0005tH-4F for submit@debbugs.gnu.org; Wed, 22 Jul 2020 13:02:09 -0400 Received: from mail-yb1-f180.google.com ([209.85.219.180]:35617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyI83-0005s9-Po for 14509@debbugs.gnu.org; Wed, 22 Jul 2020 13:02:06 -0400 Received: by mail-yb1-f180.google.com with SMTP id f5so1378040ybq.2 for <14509@debbugs.gnu.org>; Wed, 22 Jul 2020 10:02:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=aSDoc/vP7C45cglvDr60EZidN4HU+n76kMZ+GRHUly4=; b=OG80PrkrYWMHIYFpZ7t06c49iXxRwCG0JfXrlMlUjVjVPJMeJ9O8KMJpO4O67j4iaP 884MNO+H8u0yzOAKAbJrObjwTTlict6L1xOX8VSYlbyjxzQ5md0b1gnbjnl49SKRDTQF +IiloloQhKdbPdFOEeZ23/Ga9amamaT+1VefXhGTZ4haL5EAm+s0Hyh3+n7+WLBM07NK LydYI+bR/JdA5/BiRj/EoIdmKsXr4P3chElW3iWAWJ4FrrN2H5KYyn+7lhGejWLdzHCm R5F5rsE6JJoEKgFlX3B50Cv0vtGBfflkr1qbR4eLKvsAYXWT225+kPB/JgyqI65ooRv+ lpeg== X-Gm-Message-State: AOAM533ZFhxa23cbh0zxxpqQXoFe0CLRf6JjRUmcjaKtxuon71yGbNC9 F8geYXcD42CQCe2JKgvxlahDvpy4TJ22Tw74JRZvjQ== X-Google-Smtp-Source: ABdhPJxsd1EDMkf3pMzN4Eymzv3ScHYqztyHKjgrnX/RseMJBa/irZw2j9DvyIYzXk8s+bdLj3g7FH8EkjGD5pM8Cvc= X-Received: by 2002:a25:3b4e:: with SMTP id i75mr425869yba.231.1595437318333; Wed, 22 Jul 2020 10:01:58 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 22 Jul 2020 10:01:57 -0700 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Wed, 6 May 2020 19:32:58 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 22 Jul 2020 10:01:57 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 14509 + wontfix close 14509 thanks Stefan Kangas writes: > If I don't hear back from you, I'm inclined to close this bug as > wontfix. So please let us know what you think. Thanks in advance. No reply within 10 weeks, so I'm closing this as wontfix now. If you are still interested in working on this feature, please reply back and we can reopen the bug. Best regards, Stefan Kangas