From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Tweaking the output of `C-h b' Date: Sun, 31 Oct 2021 21:24:21 +0100 Message-ID: <87v91dvt6y.fsf@gnus.org> References: <87lf29xdkf.fsf@gnus.org> <87h7cxx9bh.fsf@gnus.org> <87zgqpvtky.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12264"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 31 21:25:09 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mhHO9-0002zw-5M for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Oct 2021 21:25:09 +0100 Original-Received: from localhost ([::1]:35652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhHO6-0002dL-0t for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Oct 2021 16:25:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhHNU-0008T6-NA for emacs-devel@gnu.org; Sun, 31 Oct 2021 16:24:28 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:60140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhHNS-0004r2-PR for emacs-devel@gnu.org; Sun, 31 Oct 2021 16:24:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SKfX+jvR23HNydlHRt4WPJZ5cTztvMVpeQtyIey8fck=; b=dQMesnfeu8VubI82i99ybDLZl6 ky9lIOCMW6l9B8U7Xw7XIl5mxVHbTpydqdj7K2RNvaug8/wSjrFFjDVoxKCce9S/4HGCb+jv5iGql +H7E/Vb//2VMWvE6ve+Y3XrL7TYkk3WRT2ko2OsV0ndmsreA6fcXl0GBPhqmbQwPOAaQ=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhHNO-0006UJ-4C for emacs-devel@gnu.org; Sun, 31 Oct 2021 21:24:24 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUCAgQcHS9BRFth aI2gprd+hLXp7PP////jB7ddAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UKHxQVCOrWGnMAAAG7SURB VDjLvZNNc+MgDIaRk72D0t4NuHtuAOec2IRz44+9r034/z9hhTvpxDvucfe9MKMHSa+Qzdg/Em5G C6nU9vUCzXcZYhOAEPw7sJ3BALYz/oc4lNue+P7G+CZ47dZ+4XNgECDXQDyJAGwS9gzgr5QvIcBm nAGsaz0R9SUp1inaWmUXrYcXOI79mFWX61K88tZn2fVbgCyMCYl0fAZYokSuTxSPJTV/WIaCzKA4 ZDCtOhcGlaiWShON9PhM0Vpj7bDE0yx0/5jE+fYtDkuYoCLGcenyM7ZVrHK8rk/EZqVrk5EL0356 yY4kvuXDj9dBkm0d5pf3xWrHfjg6Gz20SA4wzQdMNQHB4BBSmHb+oj8Ye00zVp2mqxearUpN4PE2 OWruIyrpliacHVKyZyf6Xcn66q4OLo9hGg74K93VXlxo8cY1lacZTuG3oQ06DA3wDHSwdL1xuvGM ZrOxpT/0Qi+pfa4zY9e270AguVveBGd19D7E4YhaSSZM1UvsOBP5ra45pWUFAIGdS2e97Nf73qU4 +J5TAaZ21svPD9VfRzJ17+gfz6A47s96efbkl1VEdSTECyFZqfJ2/wD0b20EJXtFTgAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMS0xMC0zMVQyMDoyMTowOCswMDowMOYOq1QAAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjEtMTAtMzFUMjA6MjE6MDgrMDA6MDCXUxPoAAAAAElFTkSuQmCC X-Now-Playing: Coil's _Musick to Play in the Dark (Vol 1)_: "Are You Shivering?" In-Reply-To: <87zgqpvtky.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 31 Oct 2021 21:15:57 +0100") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278334 Archived-At: Lars Ingebrigtsen writes: > This happens when calling indent-to on something that's 7 characters > long, and it inserts two TABs to get to 16. Anybody know what's up with > that? I.e., a TAB at position 6 takes us to 8, but at 7 it takes us to > 16 instead. It's the face: (defface help-key-binding [...] (((class color) (min-colors 88) (background dark)) :background "grey19" :foreground "LightBlue" :box (:line-width (1 . -1) :color "grey35")) The box makes a TAB in column 7 think it needs more space. It also makes cursor movement misbehave. Test case: (insert "1234567\n" (propertize "1234567\n" 'face 'help-key-binding)) Put point on 3 on the first line and hit . It'll take you to 2. (At least that's what happens to me.) The thing is that they're of identical width -- the box is on the "inside" of the glyph. Perhaps the stuff that handles :box believes that all en-:box-ened glyphs are bigger? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no