From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#45068: [PATCH] Modus themes 1.2.0 Date: Fri, 05 Mar 2021 21:11:33 +0000 Message-ID: <81b38e8b77db937f064a@heytings.org> References: <87im9fgm27.fsf@protesilaos.com> <83czxt2fpd.fsf@gnu.org> <87h7m0n0em.fsf@protesilaos.com> <83v9agryuz.fsf@gnu.org> <87tupyw83e.fsf@protesilaos.com> <83zgzqncxx.fsf@gnu.org> <874khwn1qf.fsf@protesilaos.com> <603b8171.1c69fb81.aa664.7f40@mx.google.com> <87mtvoxsvs.fsf@protesilaos.com> <603b9b9d.1c69fb81.f37aa.cb7c@mx.google.com> <83eegz7xcx.fsf@gnu.org> <87o8g3exjv.fsf@protesilaos.com> <603d053a.1c69fb81.f4cb8.fb14@mx.google.com> <87h7luga3p.fsf@protesilaos.com> <87o8g2bg89.fsf@tcd.ie> <87r1kyrtrl.fsf@protesilaos.com> <878s75x2uk.fsf@tcd.ie> <87o8g0ryfz.fsf@tcd.ie> <6040d37e.1c69fb81.63467.ad62@mx.google.com> <87wnun9dgo.fsf_-_@protesilaos.com> <87ft1aoj74.fsf@tcd.ie> <87eeguab7o.fsf@protesilaos.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28192"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45068@debbugs.gnu.org To: Protesilaos Stavrou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 05 22:12:21 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIHkC-0007A8-M0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 22:12:20 +0100 Original-Received: from localhost ([::1]:33374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIHkB-0007ri-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 16:12:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIHju-0007rW-DA for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 16:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIHju-0002f4-5b for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 16:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIHju-0004aG-04 for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 16:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Mar 2021 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45068 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45068-submit@debbugs.gnu.org id=B45068.161497869817590 (code B ref 45068); Fri, 05 Mar 2021 21:12:01 +0000 Original-Received: (at 45068) by debbugs.gnu.org; 5 Mar 2021 21:11:38 +0000 Original-Received: from localhost ([127.0.0.1]:35569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIHjV-0004Zd-TG for submit@debbugs.gnu.org; Fri, 05 Mar 2021 16:11:38 -0500 Original-Received: from heytings.org ([95.142.160.155]:44736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIHjT-0004ZT-M7 for 45068@debbugs.gnu.org; Fri, 05 Mar 2021 16:11:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1614978694; bh=YHfDDNgFx9rINkvIPpi1jGGvKYxIyjsgef2ARpNw/BQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=IPv+xZOMpaX/7kjihGpyEe7Huv7CI7+jU4OFIGqtmiCRw7KwKQUzaDY60g5Lx5cxZ PeE9fEVAQTN74Hu3YvSCRgjrsAA7VJn6sLJmW4aHSHlSOCqV+MHQSZdV3N74ZMoV7e 05OfGYbOpLGdLoAEte9haqTqx4xCfEqxtwuLQW78nO75DrmUzdy71Xfkhy5Eu5cpis vxLDPajBRK+LLwG79IazMGczpN9kNREPJgswCKrFvzizx9bxjubv67nDN2Z2/gQ0aP uECmzz9p4bfQDZgzlitNRJpeX8rwXxGOt/VROtU/uO22zDoyRRhlJx5rYRRWOhRoUO lmXFwzFcRISYA== In-Reply-To: <87eeguab7o.fsf@protesilaos.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201579 Archived-At: >>> +(deftheme modus-vivendi >>> + "Accessible and customizable light theme (WCAG AAA standard). >> ^^^^^ >> dark > > [ Answer only if it is easy: how do you draw those ^^^ below the text? ] > (defun undercaret (&optional arg) (interactive "p") (let* ((b (region-beginning)) (e (region-end)) (c (save-excursion (goto-char b) (current-column)))) (when (and (region-active-p) (= (line-number-at-pos b) (line-number-at-pos e))) (forward-line 1) (dotimes (_ c) (insert " ")) (dotimes (_ (- e b)) (insert "^")) (insert "\n") (when (/= arg 1) (dotimes (_ c) (insert " ")) (insert "\n")) (backward-char))))