From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: [Patch] hard-widen-limits [was Re: Syntax tables for multiple modes [was: bug#22983: syntax-ppss returns wrong result.]] Date: Sun, 24 Apr 2016 13:33:54 +0200 Message-ID: <87a8kjdyvx.fsf@gmail.com> References: <20160311151512.GD2888@acm.fritz.box> <87pounew9e.fsf@gmail.com> <87twjzda4h.fsf@gmail.com> <87lh5bd4ib.fsf@gmail.com> <87egb3ryjc.fsf@gmail.com> <877fgusum3.fsf@gmail.com> <8737risu8d.fsf@gmail.com> <87mvpqqxy7.fsf@gmail.com> <877fguqp8x.fsf@gmail.com> <87bn65pgk2.fsf@gmail.com> <87y499nz79.fsf@gmail.com> <87zithez9b.fsf@gmail.com> <940ff677-80dc-848b-5626-23c7ac1591df@yandex.ru> <87k2jneaio.fsf@gmail.com> <87mvoj4gai.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1461497653 14419 80.91.229.3 (24 Apr 2016 11:34:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2016 11:34:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 24 13:34:08 2016 Return-path: Envelope-to: ged-emacs-devel@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 1auIIh-0004xQ-EF for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 13:34:07 +0200 Original-Received: from localhost ([::1]:55085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auIIg-0003LM-Kf for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 07:34:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auIIc-0003Ed-GW for emacs-devel@gnu.org; Sun, 24 Apr 2016 07:34:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auIIX-0004di-GS for emacs-devel@gnu.org; Sun, 24 Apr 2016 07:34:02 -0400 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auIIX-0004dd-6E for emacs-devel@gnu.org; Sun, 24 Apr 2016 07:33:57 -0400 Original-Received: by mail-wm0-x234.google.com with SMTP id n3so87573291wmn.0 for ; Sun, 24 Apr 2016 04:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JTM+MAiiZFLGZ9ejorE67ovXTH3c3s3IQw9fdgkGx1A=; b=V2Zdn2E9vHqFd2IBj/kEscMnOyP1CYoWoNszAhXf+8JLTzIBGVkOxJGQFPGAoyptev vkLrGdPU7lT1BuXbHXqVQ096OjOz0AqUKOcWbhwtDwyMaL5S9YmvJr9uAA+OYvh2dem5 VEv850HCIXKJvBI1w3V31OG74+uVoyoDqZEfsLnWgJ650hXHj0K2bYcRfbpsMVNpzj1I Y4yAgft3ZKL7tM3GEHfSwykOIUJ37m+wXxJSAkmh0wzRfa7OvKzVMViMrnJS7vlZRmHt 3pADXi0VF8tBdnzrIc5SaHnBvqH6tTskEJwwjZcjxVVDAFoNbIA/hdF73fxl3cQ9Bh1h vWhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=JTM+MAiiZFLGZ9ejorE67ovXTH3c3s3IQw9fdgkGx1A=; b=HUDY6JfV3YzxaDPILVt3e08UT7EAscLSHV4JqCD/qvMljlv7xRuRzFyZ4P48kj2nvB FgEcCuXEeoaA2/O/pREX2YQAI7v4EGuCk2F+TJQltLdtGXAjQNG+Bf2xzBOEx/5FQv7q Aup4iCzY3rRtKDZW9hiqCuaVmB66qZyelxa3hF+nRRtI+F//DWwSHU2OvrGoB7KQyZw7 kG9W86kPRe/PD0dValkR+QcL9Ib18sxNKeA/nL5dbFVuiQXk545teaAuGf/lzpGS3eaO wXFjSWe6yX4ip5xAd56GC0q1D06zqLI4VeEIniuX4dSppPJ80oLAGx8sRorsLHw7ZYan qm1A== X-Gm-Message-State: AOPr4FXW+1fH8HIshlJT2CCFZbF/FjdyerIgGaFeGGf7GJ5+oHsxWXEE1zfRpWBvahxbHw== X-Received: by 10.194.216.33 with SMTP id on1mr11878907wjc.120.1461497636540; Sun, 24 Apr 2016 04:33:56 -0700 (PDT) Original-Received: from localhost ([143.176.214.220]) by smtp.gmail.com with ESMTPSA id l124sm13128686wmf.11.2016.04.24.04.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Apr 2016 04:33:54 -0700 (PDT) In-Reply-To: <87mvoj4gai.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 24 Apr 2016 09:28:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 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:203242 Archived-At: --=-=-= Content-Type: text/plain >> On Sun, Apr 24 2016 09:28, Achim Gratz wrote: > Do a 'make extraclean' and try again. Doesn't help either. I have narrowed it down to adding an extra args to primitives. This is how I do it right now. --=-=-= Content-Type: text/x-diff Content-Disposition: inline 5 files changed, 7 insertions(+), 6 deletions(-) src/buffer.c | 2 +- src/bytecode.c | 2 +- src/editfns.c | 5 +++-- src/fileio.c | 2 +- src/process.c | 2 +- modified src/buffer.c @@ -2165,7 +2165,7 @@ Any narrowing restriction in effect (see `narrow-to-region') is removed, so the buffer is truly empty after this. */) (void) { - Fwiden (); + Fwiden (Qnil); del_range (BEG, Z); modified src/bytecode.c @@ -1692,7 +1692,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, CASE (Bwiden): BEFORE_POTENTIAL_GC (); - PUSH (Fwiden ()); + TOP = Fwiden (TOP); AFTER_POTENTIAL_GC (); NEXT; modified src/editfns.c @@ -3483,11 +3483,12 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, return empty_unibyte_string; return del_range_1 (XINT (start), XINT (end), 1, 1); } + -DEFUN ("widen", Fwiden, Swiden, 0, 0, "", +DEFUN ("widen", Fwiden, Swiden, 0, 1, "", doc: /* Remove restrictions (narrowing) from current buffer. This allows the buffer's full text to be seen and edited. */) - (void) + (Lisp_Object hard) { if (BEG != BEGV || Z != ZV) current_buffer->clip_changed = 1; modified src/fileio.c @@ -4764,7 +4764,7 @@ write_region (Lisp_Object start, Lisp_Object end, Lisp_Object filename, This is useful in tar-mode. --Stef XSETFASTINT (start, BEG); XSETFASTINT (end, Z); */ - Fwiden (); + Fwiden (Qnil); } record_unwind_protect (build_annotations_unwind, modified src/process.c @@ -5514,7 +5514,7 @@ Otherwise it discards the output. */) /* If the output marker is outside of the visible region, save the restriction and widen. */ if (! (BEGV <= PT && PT <= ZV)) - Fwiden (); + Fwiden (Qnil); /* Adjust the multibyteness of TEXT to that of the buffer. */ if (NILP (BVAR (current_buffer, enable_multibyte_characters)) --=-=-= Content-Type: text/plain And this is the error which `make bootstrap` gives: make -C ../lisp autoloads EMACS="../src/bootstrap-emacs" make[3]: Entering directory '/home/vspinu/bin/emacs-test/lisp' GEN calendar/cal-loaddefs.el Loading macroexp.elc... appt.el:0:0: error: wrong-type-argument: (markerp /home/vspinu/bin/emacs-test/lisp/calendar/appt.el) Makefile:406: recipe for target 'calendar/cal-loaddefs.el' failed make[3]: *** [calendar/cal-loaddefs.el] Error 255 make[3]: Leaving directory '/home/vspinu/bin/emacs-test/lisp' Makefile:727: recipe for target '../lisp/loaddefs.el' failed make[2]: *** [../lisp/loaddefs.el] Error 2 make[2]: Leaving directory '/home/vspinu/bin/emacs-test/src' Makefile:398: recipe for target 'src' failed make[1]: *** [src] Error 2 make[1]: Leaving directory '/home/vspinu/bin/emacs-test' Makefile:1091: recipe for target 'bootstrap' failed make: *** [bootstrap] Error 2 What am I doing wrong here? Vitalie --=-=-=--