From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Karpov Newsgroups: gmane.emacs.bugs Subject: bug#19700: 24.4; Message in minibuffer put by y-or-n-p function does not disappear after pressing 'y' key Date: Tue, 27 Jan 2015 15:21:52 +0600 Message-ID: <87egqglgsv.fsf@opmbx.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422350779 25371 80.91.229.3 (27 Jan 2015 09:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 09:26:19 +0000 (UTC) To: 19700@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 10:26:15 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 1YG2PW-0004EF-Q5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 10:26:15 +0100 Original-Received: from localhost ([::1]:45987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2PW-0008Gp-9U for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 04:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2PS-0008FU-U0 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:26:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG2PK-0006mz-1z for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:26:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2PJ-0006mp-VN for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:26:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YG2PJ-0008Of-NS for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Karpov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jan 2015 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19700 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142235071232217 (code B ref -1); Tue, 27 Jan 2015 09:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jan 2015 09:25:12 +0000 Original-Received: from localhost ([127.0.0.1]:57508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YG2OV-0008NY-Qi for submit@debbugs.gnu.org; Tue, 27 Jan 2015 04:25:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41689) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YG2OS-0008NI-RR for submit@debbugs.gnu.org; Tue, 27 Jan 2015 04:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG2OM-0006I0-Cp for submit@debbugs.gnu.org; Tue, 27 Jan 2015 04:25:03 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2OM-0006Ht-Ak for submit@debbugs.gnu.org; Tue, 27 Jan 2015 04:25:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2OK-00074W-Po for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:25:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG2OE-0006C1-Dt for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:25:00 -0500 Original-Received: from mail2.openmailbox.org ([62.4.1.33]:48204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG2OE-0006BU-8K for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 04:24:54 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 81B43202908 for ; Tue, 27 Jan 2015 10:24:53 +0100 (CET) X-Virus-Scanned: amavisd-new at openmailbox.org Original-Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id p-2J8oVC4EY6 for ; Tue, 27 Jan 2015 10:24:48 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:98786 Archived-At: *** I use the following alias in my .emacs file: (defalias 'yes-or-no-p 'y-or-n-p) It works OK, but when I press 'y' key in response to the query, necessary actions are carried, but minibuffer prompt remains visible until I press any key. For example, I see: Buffer "*shell*" has a running process; kill it? (y or n) y when the process has been already killed. I find it really confusing. I can reproduce this starting emacs with -Q flag and evaluating '(defalias 'yes-or-no-p 'y-or-n-p)' in scratch. *** In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.7) of 2015-01-18 on bisson Windowing system distributor `The X.Org Foundation', version 11.0.11603000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t fci-mode: t rainbow-delimiters-mode: t flycheck-mode: t flyspell-mode: t global-auto-revert-mode: t which-function-mode: t show-paren-mode: t minibuffer-electric-default-mode: t display-time-mode: t delete-selection-mode: t smooth-scroll-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t auto-fill-mode: 1 Recent input: M-x s h l s C-x k y M-x r e p o r t - e m Recent messages: Loading /home/mark/quicklisp/slime-helper.elc...done Starting new Ispell process /usr/bin/aspell with default dictionary... For information about GNU Emacs and the GNU system, type C-h C-a. *Minibuf-0* Buffer "*shell*" has a running process; kill it? (y or n) y Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete disp-table fill-column-indicator rainbow-delimiters flycheck find-func help-mode rx subr-x flyspell ispell solarized-dark-theme solarized dash autorevert filenotify which-func imenu paren minibuf-eldef time delsel byte-opt slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree advice slime-scratch slime-presentations bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc eldoc help-fns slime-repl slime-parse slime compile etags arc-mode archive-mode noutline outline easy-mmode pp comint ansi-color ring hyperspec thingatpt browse-url slime-autoloads cl-macs bytecomp byte-compile cconv smooth-scroll server cl gv finder-inf edmacro kmacro cl-loaddefs cl-lib info easymenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 217054 117321) (symbols 48 30233 1) (miscs 40 354 1294) (strings 32 50336 49422) (string-bytes 1 1351856) (vectors 16 22631) (vector-slots 8 524820 26735) (floats 8 161 385) (intervals 56 283 145) (buffers 960 11) (heap 1024 34615 3053))