From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: [PATCH] Remove unused variable `command-debug-status' Date: Wed, 28 Sep 2016 12:45:23 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1475059639 24169 195.159.176.226 (28 Sep 2016 10:47:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Sep 2016 10:47:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 28 12:47:16 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpCOK-0004u5-Sb for ged-emacs-devel@m.gmane.org; Wed, 28 Sep 2016 12:47:08 +0200 Original-Received: from localhost ([::1]:57559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpCOJ-0008G9-As for ged-emacs-devel@m.gmane.org; Wed, 28 Sep 2016 06:47:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpCNA-00072H-OH for emacs-devel@gnu.org; Wed, 28 Sep 2016 06:45:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpCN8-0007lu-UN for emacs-devel@gnu.org; Wed, 28 Sep 2016 06:45:55 -0400 Original-Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:34882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpCN8-0007ku-Q0 for emacs-devel@gnu.org; Wed, 28 Sep 2016 06:45:54 -0400 Original-Received: by mail-vk0-x22f.google.com with SMTP id 192so39863439vkl.2 for ; Wed, 28 Sep 2016 03:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=odX1O0Pv58AjpAcI2cA1YgC1RwgS3LBjYFqV/X5Zzk4=; b=eRtIkBUBmM9MpiHjl49u2Liumwk5CubfLfDtHi8bX0gbN3ufoqjCNRm2L0DmpPrdMF wwugPy/fAJgH7rSZspwQ+GG89NnhyJ4jHyEfnOK1GBrwbKi5yXXEU04+LyR52pFyxS8L bbHmMWev40e+ZUsXJdc76CPl6TRvmxG41dtAkVnet9m84jF2Rcro4/sgzhCGL5G/q4zX QkQM2rL9Gf7VTaSplpSFopz1Een8+lCpxwFRin+Mu52hSfILPnbST3U9HOLpS1JlYM4u OBcuH389FA/NjKdeibPLgMlEI9aQijVW69O0N3DyZIpgpxWtQZqBslbr7B3XKEiltl8T GMAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=odX1O0Pv58AjpAcI2cA1YgC1RwgS3LBjYFqV/X5Zzk4=; b=Wa+l9UfMQw6EEX0ToN/YS2uiK18bt8xGUDH0BUYIwlMdbhjzPz3yinj1q4cwlAhvvi fY1toHqwlgqkXCDAig59grG5VLWZfPVtlekiNqyM8RK8MpmYAHv39zPZEQD3igvpLXbQ wgdP5PJV+t/aTrOYgpHvTd2frqWEy9Nf9uzlS/UmLM1ETtmX18sD01H7n6CKKnvJ1s0P REVUIHBreGbeVFp7lSYEbbAozhyQaJTIIsOKPESO+nhPtilHURh5/0gED99M6ZgpIYNR Ct3rmyS8Tq+mS26twjuwyLXLbBcr9Wn/dJRr2MdwSuCzmFlwR+pNLO0dETt/ieONXyUk VC5Q== X-Gm-Message-State: AA6/9RmwUeAWGv+Dm1WVCLn2D5GpVQGxOP7o1YtYzolopEJ95Q9Mi1bbeeX9E2yRa+OwBj8rGSgW46uBSPlzQQ== X-Received: by 10.31.40.138 with SMTP id o132mr16578613vko.171.1475059553677; Wed, 28 Sep 2016 03:45:53 -0700 (PDT) Original-Received: by 10.103.0.197 with HTTP; Wed, 28 Sep 2016 03:45:23 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207852 Archived-At: Hello, This is my first attempt at submitting a patch, so keep that in mind in case I messed up somewhere. I already did the copyright assignment dance and it was accepted & sent to me the 2016-09-07, do I need to send the confirmation to someone in order to post here? Just to be sure, I should send emails to emacs-devel as plain text right? no html? Anyway, back to the subject: this patch removes the variable `command-debug-status', which really seems to be unused since a long time to me (that's what "git -G Vcommand-debug-status" says). I fell on it while looking to solve another problem (which will be discussed in another email). Thanks, Philippe --- doc/lispref/debugging.texi | 12 ------------ src/callint.c | 6 ------ 2 files changed, 18 deletions(-) diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 2f83b40..f4e63ae 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi @@ -644,18 +644,6 @@ the debugger. This function is used only by the debugger. @end defun -@defvar command-debug-status -This variable records the debugging status of the current interactive -command. Each time a command is called interactively, this variable is -bound to @code{nil}. The debugger can set this variable to leave -information for future debugger invocations during the same command -invocation. - -The advantage of using this variable rather than an ordinary global -variable is that the data will never carry over to a subsequent command -invocation. -@end defvar - @defun backtrace-frame frame-number The function @code{backtrace-frame} is intended for use in Lisp debuggers. It returns information about what computation is happening diff --git a/src/callint.c b/src/callint.c index 053ee6c..ccb5c6a 100644 --- a/src/callint.c +++ b/src/callint.c @@ -928,12 +928,6 @@ Maximum length of the history list is determined by the value of `history-length', which see. */); Vcommand_history = Qnil; - DEFVAR_LISP ("command-debug-status", Vcommand_debug_status, - doc: /* Debugging status of current interactive command. -Bound each time `call-interactively' is called; -may be set by the debugger as a reminder for itself. */); - Vcommand_debug_status = Qnil; - DEFVAR_LISP ("mark-even-if-inactive", Vmark_even_if_inactive, doc: /* Non-nil means you can use the mark even when inactive. This option makes a difference in Transient Mark mode. -- 2.10.0