From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [PATCH]: New Add defun org-mode-or-derived-mode-p Date: Sun, 06 Nov 2011 16:11:16 +0100 Message-ID: <87bospcmln.wl%dmaus@ictsoc.de> References: <871uvz56th.fsf@thinkpad.tsdh.de> <87wrdnigpd.fsf@thinkpad.tsdh.de> <61054BA2-E0B8-40B9-B62E-FB0EB04E99CF@gmail.com> <87fwj0gfny.fsf@thinkpad.tsdh.de> <874nz1jrti.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Nov__6_16:11:16_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN4NX-0006rr-9X for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 10:11:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RN4NU-0006Hs-SZ for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 10:11:23 -0500 Received: from app1a.xlhost.de ([213.202.242.161]:42868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN4NU-0006HQ-B6 for emacs-orgmode@gnu.org; Sun, 06 Nov 2011 10:11:20 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Cassio Koshikumo Cc: Tassilo Horn , emacs-orgmode@gnu.org, Carsten Dominik --pgp-sign-Multipart_Sun_Nov__6_16:11:16_2011-1 Content-Type: text/plain; charset=US-ASCII At Thu, 03 Nov 2011 19:35:01 -0200, Cassio Koshikumo wrote: > > Hi, all, > > On the last few days I've been working on a major mode derived from org-mode. > While I was at it, I've encoutered some difficulties related to those reported > by the OP (Stefan). Specifically: in a lot of places, org-mode will check if > it's the current major-mode and, if it's not, will refuse to perform some > important task. > > ... > > So, finally, here's my question: would it be possible to change all the (eq > major-mode 'org-mode) tests and replace them with (derived-mode-p 'org-mode)? Is > there any reason not to do this? Please see Carsten's post about the issue: http://article.gmane.org/gmane.emacs.orgmode/47508 If you could provide a list of the functions that need to run in the derived mode or a patch which changes these functions we could put in the `derived-mode-p' selectively. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Nov__6_16:11:16_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk62o5QACgkQma24O1pEeObawQD/VPlBQv7KVrWPlhrdRQSS49YU ZYHDvh53YJOanrgqmIIA/iltfdxuT3zU32/10C7SMAMbCeWHip/OkOtD3e9AFCjn =3hEw -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Nov__6_16:11:16_2011-1--