From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.help Subject: Re: debug-ignored-errors usage Date: Tue, 30 Apr 2019 23:13:52 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="85327"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Budi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 01 04:14:26 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLelN-000M2C-7y for geh-help-gnu-emacs@m.gmane.org; Wed, 01 May 2019 04:14:25 +0200 Original-Received: from localhost ([127.0.0.1]:59389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLelL-0008JV-Em for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Apr 2019 22:14:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLel8-0008JI-Gv for help-gnu-emacs@gnu.org; Tue, 30 Apr 2019 22:14:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLel5-0005H9-Fh for help-gnu-emacs@gnu.org; Tue, 30 Apr 2019 22:14:10 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:35040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLel5-0005GX-63 for help-gnu-emacs@gnu.org; Tue, 30 Apr 2019 22:14:07 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id z26so14587321ljj.2 for ; Tue, 30 Apr 2019 19:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ImPhfZsRC5zINxCJpVRm00InCS85keAuDtE43EydpoE=; b=ek0iVRGNWw20jUAe/0bsjYRntgKl+yMryZ/EWM29VCO2Or7ok0IQCjCBGJF6xlsF96 5tn2bXP32lNDI4JRQhhVQZOvHmgxlwO5zxve9cki+vDgHP4zKGQUCm2QGlN5V6Y/x0d0 zWfMsVwLgtFjN/FLYxk37yOh475RZ6GfLlTiDtxuJSB5WBI2RAQOQaf+ZolR+SrCPgY+ MWHNynwHDZLfDW9Q22Fmvpy6lbf5zH8pX6E5G8ArNnoxYsaaJYUJkOC61rysKq9Dvh6I JU3dIMZnCi5MSr17WjmecW4VMitr4w3OjSug6dgID2nnEfD4Wn+jr3Bdg2EfG9cLo/qH AeKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ImPhfZsRC5zINxCJpVRm00InCS85keAuDtE43EydpoE=; b=CX7wt3yulH8f5hd05prMosEBEG/VBqHETLP7F1D8tOmPWptlIS0z8mZlnD8HXX4IRd ZcKbAV20bmJS1Dj/Sq+lxdMeVRjqjtEeGDwCe8vm+jULPijC2M6KuicCdC8LMt+dw4Sf NgvejQWgrlqzptZ6v6ZCisvANbbQgpJTRp/HncQsN9VzVgaZ+cMTDM3sk1ghhbEud5Zt +f0BWGUcD3UUmA1yhKgunwiuB7YUPCCpY6559GSTnefDchBs28ybhZXP4EtpbjkNv+rS zok9PO3SipKPQj0AKJ2YkphTK9ZvcoSnaV9inK0U6Eah8pQb84Ytl5XJBi15JQdtW/Kc B2Cg== X-Gm-Message-State: APjAAAUZwdYCoGvxU6eq/KCjKXnSYF2JDVn0EGSv4EJP78VsZDPmMbWN 8F6aRaS+EKcMa0MzynfIVOQD8fr2jMhVHNp27Zw= X-Google-Smtp-Source: APXvYqzOvwgHw2rfMzvtay1Oze/YhbSkpIuj9sgWC2wYYlt5tKtyyyBped/fG7jtEICDVmpbuCxQ/ABTEj4c+Gs8HNs= X-Received: by 2002:a2e:8794:: with SMTP id n20mr39576594lji.76.1556676844705; Tue, 30 Apr 2019 19:14:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120117 Archived-At: Budi writes: > How's the usage of debug-ignored-errors ? > I've tried with no benefit whatsoever; > > (setq debug-ignored-errors (beginning-of-buffer)) > Not sure what is that you are trying to achieve, but with the expression you wrote you are setting debug-ignored-errors to the return value of beginning-of-buffer, which is nil when called like that. So you end up not ignoring errors. The doc string (which you can read by typing `C-h v debug-ignored-errors RET') says it is a list, and with emacs -Q its value is: (beginning-of-line beginning-of-buffer end-of-line end-of-buffer end-of-file buffer-read-only file-supersession mark-inactive user-error) This setting is done in the file lisp/bindings.el, so you might want to take a look at that file to see how it's done. Also notice beginning-of-buffer is already an element of debug-ignored-errors. If you really want to set debug-ignored-errors to only beginning-of-buffer you can do the following: (setq debug-ignored-errors '(beginning-of-buffer)) Best regards, Mauro.