From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephan Mueller Newsgroups: gmane.emacs.devel Subject: RE: Thinking about changed buffers Date: Mon, 28 Mar 2016 20:33:49 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459198136 25877 80.91.229.3 (28 Mar 2016 20:48:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 20:48:56 +0000 (UTC) To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 28 22:48:50 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 1ake5f-0003qM-Aj for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 22:48:47 +0200 Original-Received: from localhost ([::1]:42753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ake5b-0002NN-C9 for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 16:48:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ake5L-0002N2-Lh for emacs-devel@gnu.org; Mon, 28 Mar 2016 16:48:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ake5I-0006I8-FV for emacs-devel@gnu.org; Mon, 28 Mar 2016 16:48:27 -0400 Original-Received: from mail-bl2on0143.outbound.protection.outlook.com ([65.55.169.143]:46857 helo=na01-bl2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ake5I-0006Hg-6P for emacs-devel@gnu.org; Mon, 28 Mar 2016 16:48:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lPJ9Z33tKnaJ/TnHDhOc1MdJvGmCmgPWR5QO4t+tROg=; b=W8+hSc/wYnpY7dxWF6tbGS7si32Uo2g+jHGXnYtYVP/LCp6llm0yfjIfgiZs9P6R6GxL8aBDHlVTIA8e0xV/tkBcg2Jr+37VdVOcmRS7UtNMescJoi4EM8BHG8dMREAGmtgiSYq8hLKcprMB/NnBR2EGXdU6aPiMyMWW4LoISVY= Original-Received: from CY1PR0301MB1659.namprd03.prod.outlook.com (10.162.166.145) by CY1PR0301MB1657.namprd03.prod.outlook.com (10.162.166.143) with Microsoft SMTP Server (TLS) id 15.1.447.15; Mon, 28 Mar 2016 20:34:00 +0000 Original-Received: from CY1PR0301MB1659.namprd03.prod.outlook.com ([10.162.166.145]) by CY1PR0301MB1659.namprd03.prod.outlook.com ([10.162.166.145]) with mapi id 15.01.0434.023; Mon, 28 Mar 2016 20:34:00 +0000 Thread-Topic: Thinking about changed buffers Thread-Index: AQHRiRtwDzFZOS6EzEaUmyNeN8gGTJ9vLw4QgAAKpkmAAAI2foAADXfw Deferred-Delivery: Mon, 28 Mar 2016 20:33:00 +0000 In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none; gnu.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2001:4898:80e8::28] x-ms-office365-filtering-correlation-id: fc1b51af-3ec1-4c76-5964-08d357484b98 x-microsoft-exchange-diagnostics: 1; CY1PR0301MB1657; 5:JMqf56Be5sPQi2VeIrLUivkzqD7UkfBsgT0KmlQANHANoOXryrXNqAZjI6mOUUHr+5TUscWxCebG7SXN58PNRtAHJDjmLJniYT6I9vw6qeScQ1iSTkikKqN0IBBmUo3wipDJ9qdeYueO/WTNTBf7Eg==; 24:HJl3xx1IF3GJNvFVCudvyYNAFueiR9alF8potJM+PbUVTks60lSpY0NFNCvIY7EbGBaLx9srNRDFQYAt+pBN90GF6NDPTJxUoidKQ2Asdfs= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1657; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(61426038)(61427038); SRVR:CY1PR0301MB1657; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1657; x-forefront-prvs: 0895DF8FFD x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(164054003)(99286002)(3660700001)(93886004)(2351001)(2501003)(77096005)(5640700001)(3280700002)(3480700003)(106116001)(2906002)(10090500001)(5005710100001)(10290500002)(2950100001)(10400500002)(450100001)(1096002)(81166005)(74316001)(2900100001)(1220700001)(11100500001)(86362001)(54356999)(76176999)(6116002)(102836003)(50986999)(86612001)(5008740100001)(5003600100002)(122556002)(92566002)(87936001)(19580405001)(19580395003)(33656002)(5004730100002)(107886002)(110136002)(189998001)(5002640100001)(586003)(76576001)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1657; H:CY1PR0301MB1659.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2016 20:34:00.5659 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1657 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 65.55.169.143 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202364 Archived-At: Stefan Monnier writes: " For this, `SPC C-x u' at point-min should be sufficient to cause " cperl-mode (and perl-mode as well) to flush all the existing " highlighting data. Thanks, I'll try that. Moving to point-min and back may make that more awkward than revert-buffer. Regardless, at the very least, I should hide one or the other approach in a function and bind it to a key. Lars writes: " Does this perhaps mean that the interactive `C-x C-s' command should " always save the file, even if it's unchanged? We've apparently all " taken to doing pointless modifications because we haven't found an easy " way to make Emacs re-save the file... I follow your logic, but I'm not sure about this simplification; I find that I hit `C-x C-s' all the time (whenever I enter my mental idle loop, perhaps), and am pleased that it doesn't do anything unnecessarily on those extremely numerous occasions. Perhaps a new, distinct command really-save-buffer, bound to C-x C-S-s ? Or prefix save-buffer with four `C-u's (1 through 3 are already taken)? stephan();