Received: (at 1503) by debbugs.gnu.org; 20 Oct 2021 16:46:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 20 12:45:59 2021 Received: from localhost ([127.0.0.1]:55340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mdEj1-0005qS-G7 for submit <at> debbugs.gnu.org; Wed, 20 Oct 2021 12:45:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1mdEiy-0005jm-LO for 1503 <at> debbugs.gnu.org; Wed, 20 Oct 2021 12:45:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47484) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1mdEit-00069p-6s; Wed, 20 Oct 2021 12:45:51 -0400 Received: from [87.69.77.57] (port=2709 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1mdEis-0001lf-Jy; Wed, 20 Oct 2021 12:45:50 -0400 Date: Wed, 20 Oct 2021 19:46:03 +0300 Message-Id: <83tuhbablg.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefan Kangas <stefan@HIDDEN> In-Reply-To: <CADwFkmkCnq6U66h_BvtyOfxV73_i33rA+z_-LD0TyKsVgzPQXQ@HIDDEN> (message from Stefan Kangas on Wed, 20 Oct 2021 08:53:45 -0700) Subject: Re: bug#1503: feature request: multiline header (and mode) lines References: <6da7452a0812052243h34c713b9qf0ee659251d71764@HIDDEN> <493A58A6.6090508@HIDDEN> <CADwFkmkCnq6U66h_BvtyOfxV73_i33rA+z_-LD0TyKsVgzPQXQ@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 1503 Cc: rudalics@HIDDEN, 1503 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Stefan Kangas <stefan@HIDDEN> > Date: Wed, 20 Oct 2021 08:53:45 -0700 > Cc: 1503 <at> debbugs.gnu.org > > >> I thought of putting that text in the buffer, but that makes it much > >> harder to update the text. > > > > At the moment, we can't do that because the fact that a header-line > > occupies exactly one line of text is hardwired into many lower-level > > primitives. > > Could those primitives be changed to support this use-case? Of course. It's just a lot of work, and will probably have a long tail (because many places assume that without stating the assumption clearly enough for you to catch it).
bug-gnu-emacs@HIDDEN
:bug#1503
; Package emacs
.
Full text available.Received: (at 1503) by debbugs.gnu.org; 20 Oct 2021 15:53:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 20 11:53:54 2021 Received: from localhost ([127.0.0.1]:55251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mdDub-0003bu-W3 for submit <at> debbugs.gnu.org; Wed, 20 Oct 2021 11:53:54 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]:46733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1mdDuZ-0003bd-OH for 1503 <at> debbugs.gnu.org; Wed, 20 Oct 2021 11:53:52 -0400 Received: by mail-pl1-f171.google.com with SMTP id 21so16427860plo.13 for <1503 <at> debbugs.gnu.org>; Wed, 20 Oct 2021 08:53:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=eextQyqOFK7IcFL+7aYhlO3e36rKTJ0gsgMGGv6ihpE=; b=YtIUlOfWesBSdgOe0llKDVQy4Hdq6aNO1m0T0T4gGc0gg+zDp/vCyW3ivPOJzsqHlq PUJAOhaYaDmjgXduFZrN73Tz9WTDM+d7Z8ViwlvpMnFNyOrm8MeTTIfSn8MCzQRHf2iQ NVgyfhe6gQ6hb5H2r/XniCcM4cAhw9OgJGzVeZN/qB3E509SG5QEHeAdql7+3r53B1rz kriLV10+MmWLlT+GYwVyWQWOAr92uvQQexAarM8BxnFWqT1A2cMKXy/VpSc05T3KbYsl tbAnii0u+oU30Py3fhhuZbRBu8WxnJ8xPF7PFkYgGbJxkcfFPBibkY0BxpTMHPFs7PyO eQ6Q== X-Gm-Message-State: AOAM5313nTR/uDmssw+IhMBg+AolEfp/2zsZp9EkTJb7KqM476wfNrtK t/Q+lqQgJxvqId5mn+/4PlKzoOdWX26GazTYdUk= X-Google-Smtp-Source: ABdhPJxIy8j9cEfDGRXOBEWCUSHVvFQE5hpIKpMvTYCsMmu18cTSD3/S8AHaFZ/O8xMXD8vwjWRnezT0AfNhaC2qPKA= X-Received: by 2002:a17:902:e74a:b0:13f:3538:fca0 with SMTP id p10-20020a170902e74a00b0013f3538fca0mr420916plf.22.1634745225796; Wed, 20 Oct 2021 08:53:45 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 20 Oct 2021 08:53:45 -0700 From: Stefan Kangas <stefan@HIDDEN> In-Reply-To: <493A58A6.6090508@HIDDEN> (martin rudalics's message of "Sat, 06 Dec 2008 11:49:10 +0100") References: <6da7452a0812052243h34c713b9qf0ee659251d71764@HIDDEN> <493A58A6.6090508@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 20 Oct 2021 08:53:45 -0700 Message-ID: <CADwFkmkCnq6U66h_BvtyOfxV73_i33rA+z_-LD0TyKsVgzPQXQ@HIDDEN> Subject: Re: bug#1503: feature request: multiline header (and mode) lines To: martin rudalics <rudalics@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 1503 Cc: 1503 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) martin rudalics <rudalics@HIDDEN> writes: >> Can emacs be given the gift of a header-line that word wraps, so that >> the header can be more than one line tall? I imagine the same could >> go for the mode line, but I don't have a clear need for that right >> now. I know that the fringes can occupy > 1 column, so it seems like >> an oversight if the header and mode lines are restricted to 1 line. >> >> I've written a minor mode for reading/sorting physics abstracts from >> the physics arXiv. The mode either lists subdirectories directly >> under the current directory, or recursively lists all subdirectories >> of the pwd. Either way, the list could potentially be longer than the >> width of the screen, making some directory names unviewable. A >> multiline header would make it perfect. >> >> I thought of putting that text in the buffer, but that makes it much >> harder to update the text. > > At the moment, we can't do that because the fact that a header-line > occupies exactly one line of text is hardwired into many lower-level > primitives. Could those primitives be changed to support this use-case? I'm not very interested in a multi-line mode-line myself, but I can see many uses for a multi-line header line.
bug-gnu-emacs@HIDDEN
:bug#1503
; Package emacs
.
Full text available.Glenn Morris <rgm@HIDDEN>
to control@HIDDEN
.
Full text available.Received: (at unknown) by unknown; unknown X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1503) by emacsbugs.donarmstrong.com; 6 Dec 2008 10:51:26 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mB6ApMD4000603 for <1503@HIDDEN>; Sat, 6 Dec 2008 02:51:23 -0800 Received: (qmail invoked by alias); 06 Dec 2008 10:51:16 -0000 Received: from 62-47-60-181.adsl.highway.telekom.at (EHLO [62.47.60.181]) [62.47.60.181] by mail.gmx.net (mp032) with SMTP; 06 Dec 2008 11:51:16 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19PyZwtU55PzboAkPWGd6NfmVxvuekMtAD7d9KTuX s+x6grNMQmOqrA Message-ID: <493A58A6.6090508@HIDDEN> Date: Sat, 06 Dec 2008 11:49:10 +0100 From: martin rudalics <rudalics@HIDDEN> User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1503 <at> debbugs.gnu.org Subject: Re: bug#1503: feature request: multiline header (and mode) lines References: <6da7452a0812052243h34c713b9qf0ee659251d71764@HIDDEN> In-Reply-To: <6da7452a0812052243h34c713b9qf0ee659251d71764@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 > Can emacs be given the gift of a header-line that word wraps, so that > the header can be more than one line tall? I imagine the same could > go for the mode line, but I don't have a clear need for that right > now. I know that the fringes can occupy > 1 column, so it seems like > an oversight if the header and mode lines are restricted to 1 line. > > I've written a minor mode for reading/sorting physics abstracts from > the physics arXiv. The mode either lists subdirectories directly > under the current directory, or recursively lists all subdirectories > of the pwd. Either way, the list could potentially be longer than the > width of the screen, making some directory names unviewable. A > multiline header would make it perfect. > > I thought of putting that text in the buffer, but that makes it much > harder to update the text. At the moment, we can't do that because the fact that a header-line occupies exactly one line of text is hardwired into many lower-level primitives. In principle, what you want could be accomplished by the routines below, but this will certainly have wrinkles (Emacs is not really good at handling zero-length overlays). martin (defvar my-overlay (make-overlay (point-min) (point-min))) (defun my-move (window start) (move-overlay my-overlay start start)) (add-hook 'window-scroll-functions 'my-move nil t) (defun my-text (text) (overlay-put my-overlay 'before-string (propertize text 'face 'header-line))) (my-text "a first line\nand another one\nand a third one\n")
martin rudalics <rudalics@HIDDEN>
:Emacs Bugs <bug-gnu-emacs@HIDDEN>
.
Full text available.bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>
:bug#1503
; Package emacs
.
Full text available.Received: (at unknown) by unknown; unknown X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Dec 2008 06:43:26 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB66hNtD002495 for <submit@HIDDEN>; Fri, 5 Dec 2008 22:43:24 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8qss-0007iV-S5 for bug-gnu-emacs@HIDDEN; Sat, 06 Dec 2008 01:43:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8qsr-0007iA-Vh for bug-gnu-emacs@HIDDEN; Sat, 06 Dec 2008 01:43:22 -0500 Received: from [199.232.76.173] (port=45452 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8qsr-0007i7-JN for bug-gnu-emacs@HIDDEN; Sat, 06 Dec 2008 01:43:21 -0500 Received: from yw-out-1718.google.com ([74.125.46.155]:56641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <peter.mao@HIDDEN>) id 1L8qsr-0005q7-2N for bug-gnu-emacs@HIDDEN; Sat, 06 Dec 2008 01:43:21 -0500 Received: by yw-out-1718.google.com with SMTP id 9so183215ywk.66 for <bug-gnu-emacs@HIDDEN>; Fri, 05 Dec 2008 22:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=E9dLGwqNO5rT2acPftmEN5agC+TLVuxhSxnObrLCiOU=; b=Zmd56Mg7RzutAIWckCohD/VhDz4vRdyj42tSEqeM6phb3NMtabPTzmCF5sbf9Tb+mE BlTuL48LVj3Rrdq+f7zk2syN2ZwMM+uqasypJ1xptG2rS4LcMPKTwTxFTrzVVq+Uxlwn IbaJLp9qKOzM1e7pLqH4bZxL0R96jLGH+upXk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ozm7VL9jcIje7XCshVPZq8DkOaDkNoM5dzzYy6FjIwRaaDtSQi5rh3absbSYL/G/4m sdlY+Ek4s07TFI3k4j1c+D8368aKU56R9Zyz9AsfZHTnRxlhHW3tUgDggbASacMv3C9M j8IpqNx5dxOe8yB+kDwbzlk+V9rinNZyoNxWY= Received: by 10.151.105.13 with SMTP id h13mr1639272ybm.171.1228545799011; Fri, 05 Dec 2008 22:43:19 -0800 (PST) Received: by 10.151.14.3 with HTTP; Fri, 5 Dec 2008 22:43:18 -0800 (PST) Message-ID: <6da7452a0812052243h34c713b9qf0ee659251d71764@HIDDEN> Date: Fri, 5 Dec 2008 22:43:18 -0800 From: "Peter Mao" <peter.mao@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: feature request: multiline header (and mode) lines MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) I realize this requires tweaking of the C-code, but I'm not awesome enough to do it myself: Can emacs be given the gift of a header-line that word wraps, so that the header can be more than one line tall? I imagine the same could go for the mode line, but I don't have a clear need for that right now. I know that the fringes can occupy > 1 column, so it seems like an oversight if the header and mode lines are restricted to 1 line. I've written a minor mode for reading/sorting physics abstracts from the physics arXiv. The mode either lists subdirectories directly under the current directory, or recursively lists all subdirectories of the pwd. Either way, the list could potentially be longer than the width of the screen, making some directory names unviewable. A multiline header would make it perfect. I thought of putting that text in the buffer, but that makes it much harder to update the text. Peter Mao
"Peter Mao" <peter.mao@HIDDEN>
:Emacs Bugs <bug-gnu-emacs@HIDDEN>
.
Full text available.bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>
:bug#1503
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.