From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#24398: [PATCH] Refactor common code in {upcase, downcase, capitalize}-word functions Date: Mon, 12 Sep 2016 13:26:16 +0200 Organization: http://mina86.com/ Message-ID: References: <1473458359-29865-1-git-send-email-mina86@mina86.com> <83pooc8d6s.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473680030 14146 195.159.176.226 (12 Sep 2016 11:33:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2016 11:33:50 +0000 (UTC) User-Agent: Notmuch/0.19+53~g2e63a09 (http://notmuchmail.org) Emacs/25.1.50.106 (x86_64-unknown-linux-gnu) Cc: 24398-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 13:33:46 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjPUY-0002Uj-TH for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 13:33:39 +0200 Original-Received: from localhost ([::1]:41828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPUW-0002Yt-Sr for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 07:33:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPOD-0005Pf-FY for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 07:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjPOA-0002s1-9d for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 07:27:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPOA-0002rr-5R for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 07:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bjPO9-0005sh-Qu for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 07:27:01 -0400 Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2016 11:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 24398@debbugs.gnu.org, mina86@mina86.com, mina86@mina86.com Original-Received: via spool by 24398-done@debbugs.gnu.org id=D24398.147367958722561 (code D ref 24398); Mon, 12 Sep 2016 11:27:01 +0000 Original-Received: (at 24398-done) by debbugs.gnu.org; 12 Sep 2016 11:26:27 +0000 Original-Received: from localhost ([127.0.0.1]:57059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjPNb-0005rp-G3 for submit@debbugs.gnu.org; Mon, 12 Sep 2016 07:26:27 -0400 Original-Received: from mail-wm0-f42.google.com ([74.125.82.42]:38051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjPNZ-0005rc-LV for 24398-done@debbugs.gnu.org; Mon, 12 Sep 2016 07:26:26 -0400 Original-Received: by mail-wm0-f42.google.com with SMTP id 1so138785578wmz.1 for <24398-done@debbugs.gnu.org>; Mon, 12 Sep 2016 04:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references :user-agent:face:date:message-id:mime-version :content-transfer-encoding; bh=ypPP1tUU2xLoa3sYJ9e3MlwOOEF4krOBDkbfVKj/iLo=; b=K3VpgRFFNjoC5p7HN1OYLPyHoYFkyJvjf5uAbfSy8zU8l02Nv4CmILzAhywAz08/Bb jeOc7ayxKq0UCgCvuTV3WLw6sGk8GOvSfOgEiWG1hI8qCDYcJWkyg5DJ7pUEDbdYETr9 a2Km+p2k3LlSWfhN6aQCDuX3ytzimdt3+d6KMsyRBCnh9IdCqHik8zbBjbldeBzx4UFR gVkCAp5oU7KQXVkuCuuzoZbfCydGbL+zm+IOJfhsymZupeBkYhEZ3dj0WVgiLeWicVvY zvntrkMpkOL+v9NeMQSs2py7j7AMrji1ZdyiYcALDwl62ci13VA8EkzhdzD6XVCF2wh3 OiiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to :organization:references:user-agent:face:date:message-id :mime-version:content-transfer-encoding; bh=ypPP1tUU2xLoa3sYJ9e3MlwOOEF4krOBDkbfVKj/iLo=; b=gWfAkEtmt7IOFK8lFXZpYnPHoTgCYEF9UeqBEjHSMFMaZ5jt69K5I1rUVu4KvNWdM7 EurPVSXnGi28cpa/N3VBZS4F9jkV22qX9hDlWw9D+GaDQy97BElKlWN6sv0PcOF8127y qxLz7le01JFixUj04uHvvd3eqTPF64P1wazbUtRpALGO4L7RjiAmZgkHq/0djy9MpudE EsUWXjXtOUcPFlCZAOu8p+kE/S3XTYTbOJIGLHlfeGu8dJjybIb2l4EHFaXEs1KasTZd 2ICrwZ6aezaillLvZb8hxaGKXK4lDny9wrNzWgRCmQe5NcPZi/3beWMH/xRU19JLV6EN xJ2g== X-Gm-Message-State: AE9vXwOMGaAjUWgp7QU2T3veXOyW1PgSmiozjps2gL0yt6mR9GL+nHOm7r23KVPZprultOZu X-Received: by 10.194.45.232 with SMTP id q8mr58927wjm.9.1473679579605; Mon, 12 Sep 2016 04:26:19 -0700 (PDT) Original-Received: from mpn-glaptop ([2620:0:105f:310:9179:5bf1:1a:83f6]) by smtp.gmail.com with ESMTPSA id jd4sm17444002wjb.6.2016.09.12.04.26.17 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 12 Sep 2016 04:26:17 -0700 (PDT) In-Reply-To: <83pooc8d6s.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACP0lEQVQ4T23Sv2vbQBQHcBk1xE6WyALX107VUEgmn6+ouUwpEQQ6uRjttkWP4CkBg2M0BQLBdPFZYPsyFYo7qEtKDQ7on+t7+nF2Ux8ahD587717OmNYrOvycHsZ+o2r051wHTHysAvGb8ygvgu4QWT0sCmkgZCIEnlV2X8BtyraazFGDuxhmKSQJMlwHQ7v5MHSNxmz78rfElwAa3ieVD9e+hBhjaPDDG6NgFo2f4wBMNIo5YmRtF0RyDgFjJjlMIWbnuM4x9MMfABGTlN4qgIQB4A1DEyA1BHWtfeWNUMwiVJKoqh97KrkOO+qzgluVYLvFCUKAX73nONeBr7BGMdM6Sg0kuep03VywLaIzRiVr+GAzKlpQIsAFnWAG2e6DT5WmWDiudZMIc6hYrMOmeMQK9WX0B+/RfjzL9DI7Y9/Iayn29Ci0r2i4f9gMimMSZLCDMalgQGU5hnUtqAN0OGvEmO1Wnl0C0wWSCEHnuHBqmygxdxA8oWXwbipoc1EoNR9DqOpBpOJrnr0criQab9ZT4LL+wI+K7GBQH30CrhUruilgP9DRTrhVWZCiAyILP+wiuLeCKGTD6r/nc8LOJcAwR6IBTUs+7CASw3QFZ0MdA2PI3zNziH4ZKVhXCRMBjeZ1DWMekKwDCASwExy+NQ86TaykaDAFHO4aP48y4 fIcDM5yOG8GcTLbOyp8A8azjJI93JFd1EA6yN8sSxMQJWoABqniRZVykYgRXErzrdqExAoUrRb0xfRp8p2A/4XmfilTtkDZ4cAAAAASUVORK5CYII= X-Face: -TR8(rDTHy/(xl?SfWd1|3:TTgDIatE^t'vop%*gVg[kn$t{EpK(P"VQ=~T2#ysNmJKN$"yTRLB4YQs$4{[.]Fc1)*O]3+XO^oXM>Q#b^ix, O)Zbn)q[y06$`e3?C)`CwR9y5riE=fv^X@x$y?D:XO6L&x4f-}}I4=VRNwiA^t1-ZrVK^07.Pi/57c_du'& X-PGP: 50751FF4 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4 X-Hashcash: 1:20:160912:eliz@gnu.org::VRYYg9end9Lqxyco:000000bl0 X-Hashcash: 1:20:160912:24398@debbugs.gnu.org::E1K7Dsj6Q6BCA1w/:00000000000000000000000000000000000000002Tu5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:123209 Archived-At: On Sat, Sep 10 2016, Eli Zaretskii wrote: >> From: Michal Nazarewicz >> Date: Fri, 9 Sep 2016 23:59:19 +0200 >>=20 >> * src/casefiddle.c (operate_on_word): Removed in favour of=E2=80=A6 >> (casify_word) =E2=80=A6new function which does what operate_on_word did = plus >> what all of the common code from *-word functions. >> (upcase-word, downcase-word, capitalize-word): Move code common between >> those functions (pretty much the whole body of those functions) into >> casify_word and use that instead of now deleted operato_on_word. > ^^^^^^^^^^^^^^^ > A typo. Fixed and pushed. > Thanks. --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB