From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#2224: [PATCH] add-log.el: Modularize add-log-current-defun, new types supported Date: Wed, 11 Apr 2012 14:44:34 +0200 Message-ID: References: <87bptf5upl.fsf@jondo.cante.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334148317 31946 80.91.229.3 (11 Apr 2012 12:45:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 12:45:17 +0000 (UTC) Cc: 2224@debbugs.gnu.org To: Jari Aalto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 14:45:14 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SHwvC-0001Ff-32 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 14:45:14 +0200 Original-Received: from localhost ([::1]:55746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwvB-0007lX-H8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 08:45:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwv4-0007iV-BR for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:45:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHwuu-0000mW-Di for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:45:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwuu-0000mR-BE for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:44:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHwvy-0001dd-Ar for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 2224-submit@debbugs.gnu.org id=B2224.13341483546274 (code B ref 2224); Wed, 11 Apr 2012 12:46:02 +0000 Original-Received: (at 2224) by debbugs.gnu.org; 11 Apr 2012 12:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:50688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwvo-0001d6-EZ for submit@debbugs.gnu.org; Wed, 11 Apr 2012 08:45:54 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53671) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwvl-0001cx-F1 for 2224@debbugs.gnu.org; Wed, 11 Apr 2012 08:45:50 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SHwuZ-0002a5-8W; Wed, 11 Apr 2012 14:44:35 +0200 X-Now-Playing: Zazou, Bikaye & Cy1's _Noir et Blanc_: "Keba" In-Reply-To: <87bptf5upl.fsf@jondo.cante.net> (Jari Aalto's message of "Fri, 06 Feb 2009 19:41:26 +0200") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-MailScanner-ID: 1SHwuZ-0002a5-8W MailScanner-NULL-Check: 1334753075.75243@59HehjOWK8y4amafKnGJNQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58794 Archived-At: Jari Aalto writes: > The following patch breaks down monolithic `add-log-current-defun' into > separate testing functions. Support for New buffer types is also > provided. The patch is against version control as of 2009-02-06. [...] > 2009-02-06 Jari Aalto > > * add-log.el (add-log-current-defun): Split function into > separate parts: add-log-current-defun-type-*. Add support > for new types: python, ruby, Bourne Shell, Makefile, > X?HTML, CSS, PHP, Javascript, Asciidoc. > (add-log-current-defun-type-c-like): New function. > (add-log-current-defun-type-tex-like): New function. > (add-log-current-defun-type-texinfo-like): New function. > (add-log-current-defun-type-perl-like): New function. > (add-log-current-defun-type-python-like): New function. > (add-log-current-defun-type-shell-ruby-like): New function. > (add-log-current-defun-type-autoconf-like): New function. > (add-log-current-defun-type-html-like): New function. > (add-log-current-defun-type-css-like): New function. > (add-log-current-defun-type-php-like): New function. > (add-log-current-defun-type-javascript-like): New function. > (add-log-current-defun-type-shell-bourne-like): New function. > (add-log-current-defun-type-makefile-like): New function. > (add-log-current-defun-type-text-asciidoc-like): New function. > (add-log-current-defun-type-default): New function. That's a lot of functions, but it does makes stuff clearer. Does anybody have an opinion here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/