From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.bugs Subject: bug#21112: 25; Patch: show minibuffer messages with a face Date: Wed, 22 Jul 2015 17:27:47 +0200 Message-ID: <55AFB673.1030703@gmail.com> References: <55AF90B9.5040401@gmail.com> <16d72285-8829-40db-a82c-3548b0b84f83@default> <0628db88-9d3c-41ad-8084-6bd33c32a01f@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1437578904 15140 80.91.229.3 (22 Jul 2015 15:28:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2015 15:28:24 +0000 (UTC) To: Drew Adams , 21112@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 22 17:28:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZHvwK-0000jy-KO for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 17:28:12 +0200 Original-Received: from localhost ([::1]:37073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHvwK-0006VZ-2O for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Jul 2015 11:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHvwF-0006Rs-9w for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2015 11:28:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHvwB-0007KT-45 for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2015 11:28:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHvwB-0007KO-0r for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2015 11:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZHvwA-0000NA-Lm for bug-gnu-emacs@gnu.org; Wed, 22 Jul 2015 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Raffaele Ricciardi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jul 2015 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21112 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21112-submit@debbugs.gnu.org id=B21112.14375788771408 (code B ref 21112); Wed, 22 Jul 2015 15:28:02 +0000 Original-Received: (at 21112) by debbugs.gnu.org; 22 Jul 2015 15:27:57 +0000 Original-Received: from localhost ([127.0.0.1]:56483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHvw4-0000Mb-Id for submit@debbugs.gnu.org; Wed, 22 Jul 2015 11:27:57 -0400 Original-Received: from mail-wi0-f170.google.com ([209.85.212.170]:36250) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHvw3-0000MN-5x for 21112@debbugs.gnu.org; Wed, 22 Jul 2015 11:27:55 -0400 Original-Received: by wicgb10 with SMTP id gb10so103500577wic.1 for <21112@debbugs.gnu.org>; Wed, 22 Jul 2015 08:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=6LCpOn03c8NU7u+zAqf6CjJ9Qd9ZKNpHIAlVxaAh7K4=; b=bRFXRF1vrUdCqE6l1y/3yktudrGpFSAqtmHscs4FnSJ08eFYts03ssRJcfRkJ9be26 174yPbdvxRQtpxe1Vr/0i7zv3r0/h2I7fBzXa5YDLmYTufB9s7CDlCdYLvlU3LsyJAu6 i6F1BizphqsofgjwZl0Wbj54eC1mp7td0u+Svx+WhSXEaGMIDnXaFa8+BLoL9S32FbLK oxvwJ9/4DHSPlUrIcYQ2+lW/kYX0s4ig4UWYTwErSEsPBCA79tR6XyoxZv4z1YtCl9R0 FLQ8PIe6VXamzHw3sfnYtrER5+eJWAFUT/4TPifCG0AzRl5DFuQTm8bQU+4h78ZgKRpV ogtA== X-Received: by 10.181.13.241 with SMTP id fb17mr44236868wid.13.1437578869664; Wed, 22 Jul 2015 08:27:49 -0700 (PDT) Original-Received: from [192.168.1.129] (81.203.145.32.dyn.user.ono.com. [81.203.145.32]) by smtp.gmail.com with ESMTPSA id s16sm22557966wib.16.2015.07.22.08.27.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jul 2015 08:27:49 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: <0628db88-9d3c-41ad-8084-6bd33c32a01f@default> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105074 Archived-At: On 22/07/15 15:44, Drew Adams wrote: > I haven't looked at the patch, and I misread the request as applying > to `message' output, not `minibuffer-message'. But I have the same > response in the latter case - leave it alone, so users can do with > it what they like. I understand what you mean and I agree when you say that the current implementation is more flexible. The problem that this patch tries to solve is that -- as far as I can see -- all Emacs messages are currently passed as plain strings, and thus appear in the same face as user input, making it seem that Emacs is meddling with user input, which is not the case. Now, requiring callers to specify a face for every single message would be burdensome, wouldn't it? Maybe, could we make `minibuffer-message' apply the `minibuffer-prompt' face only if the message lacks its own faces? Or maybe, could we split `minibuffer-message' in two functions, one -- internal -- that applies the `minibuffer-prompt' face and one that doesn't? The same approach could be applied to the minibuffer prompt, too.