From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Condider adding buffer-mode Date: Wed, 30 Oct 2013 08:41:22 -0400 Message-ID: References: <859D68184C604AE8AC385A3C5255FDAA@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383136902 12845 80.91.229.3 (30 Oct 2013 12:41:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2013 12:41:42 +0000 (UTC) Cc: emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 30 13:41:45 2013 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 1VbV5g-00077j-Rh for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2013 13:41:40 +0100 Original-Received: from localhost ([::1]:52195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbV5g-0005El-Db for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2013 08:41:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbV5X-0005EX-3W for emacs-devel@gnu.org; Wed, 30 Oct 2013 08:41:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbV5P-0002PO-Ew for emacs-devel@gnu.org; Wed, 30 Oct 2013 08:41:30 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbV5P-0002PH-Aa for emacs-devel@gnu.org; Wed, 30 Oct 2013 08:41:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="36662984" Original-Received: from 108-161-119-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.119.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 Oct 2013 08:41:22 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6C6EC60309; Wed, 30 Oct 2013 08:41:22 -0400 (EDT) In-Reply-To: (Bozhidar Batsov's message of "Wed, 30 Oct 2013 11:34:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:164692 Archived-At: > current buffer). While this is OK for interactive code, it seems pretty > obnoxious when done in library code. We can very well have a version of > `derived-mode-p' that operates on an explicit buffer argument as opposed to > an implicit one. But this applies to many other things. IOW you're complaining about Emacs's design. > I know that Emacs Lisp places little value on functional programming > principles, but I don't see the harm in embracing them at > least occasionally. Just adding something like buffer-mode is not going to help enough to justify adding a function. You're trying to work against the tool. Stefan