From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Newsgroups: gmane.emacs.bugs Subject: bug#25763: 25.1; Mistaken setup function in Turkish language environment Date: Thu, 16 Feb 2017 21:17:28 +0300 Message-ID: <867f4q80g7.fsf@xi.bootis> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1487269039 26746 195.159.176.226 (16 Feb 2017 18:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 18:17:19 +0000 (UTC) To: 25763@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 19:17:14 2017 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 1ceQcC-00066Z-NO for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 19:17:12 +0100 Original-Received: from localhost ([::1]:49296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQcF-0008DM-C4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 13:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQc6-00088L-SQ for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:17:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceQc2-0005Gn-Qq for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceQc2-0005Gh-No for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ceQc2-0006QD-J5 for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Feb 2017 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25763 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148726898324634 (code B ref -1); Thu, 16 Feb 2017 18:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2017 18:16:23 +0000 Original-Received: from localhost ([127.0.0.1]:42538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceQbP-0006PG-Bi for submit@debbugs.gnu.org; Thu, 16 Feb 2017 13:16:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceQbO-0006P4-0m for submit@debbugs.gnu.org; Thu, 16 Feb 2017 13:16:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceQbH-00057j-6J for submit@debbugs.gnu.org; Thu, 16 Feb 2017 13:16:16 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceQbH-00057d-30 for submit@debbugs.gnu.org; Thu, 16 Feb 2017 13:16:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceQbF-0007sf-8J for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:16:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceQbB-00055c-56 for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:16:13 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46846) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceQbA-00054v-QV for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 13:16:09 -0500 Original-Received: from mfilter31-d.gandi.net (mfilter31-d.gandi.net [217.70.178.162]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 92AB31720AE for ; Thu, 16 Feb 2017 19:16:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter31-d.gandi.net X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Message-ID" Original-Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter31-d.gandi.net (mfilter31-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Vv_erbq_shzV for ; Thu, 16 Feb 2017 19:16:04 +0100 (CET) X-Originating-IP: 95.65.177.122 Original-Received: from xi.bootis.xi.bootis (unknown [95.65.177.122]) (Authenticated sender: self@gkayaalp.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 4CC7D1720C5 for ; Thu, 16 Feb 2017 19:16:04 +0100 (CET) Original-Message-ID: <868tp680g7.fsf@xi.bootis> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:129416 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In =E2=80=98lisp/languages/european.el=E2=80=99, in the definition of the = =C2=ABTurkish=C2=BB language environment, there are two conses with the car =E2=80=98setup-function=E2=80=99, one of which have the cdr =E2=80=98turkish-case-conversion-enable=E2=80=99 and the other =E2=80=98turkish-case-conversion-disable=E2=80=99. The second one should h= ave the car =E2=80=98exit-function=E2=80=99 instead. Below is a patch that fixes the b= ug. Note that the patch does not include a NEWS entry, that's because I don't know whether to put it in NEWS for 26 or 25.2 (I think the latter is more likely). The news entry for this change might be =C2=ABFix bug preventing application of Turkish case conversion rules in the "Turkish" language environment.=C2=BB I'll update the patch with a news entry if requested. Reproduction is as follows: - M-x set-language-environment RET Turkish RET - Insert =E2=80=98ii=C4=B1=C4=B1=E2=80=99, upcase that string, you'll get = =E2=80=98II=C4=B1=C4=B1=E2=80=99, but should've gotten =E2=80=98=C4=B0=C4=B0II=E2=80=99. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=turkish-language-environment-alist.patch Content-Transfer-Encoding: quoted-printable diff --git a/lisp/language/european.el b/lisp/language/european.el index 954ac1f450..6c0232efd3 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el @@ -506,7 +506,7 @@ 'ibm437 (input-method . "turkish-postfix") (sample-text . "Turkish (T=C3=BCrk=C3=A7e) Merhaba") (setup-function . turkish-case-conversion-enable) - (setup-function . turkish-case-conversion-disable) + (exit-function . turkish-case-conversion-disable) (documentation . "Support for Turkish. Differs from the Latin-5 environment in using the `turkish-postfix' input method and applying Turkish case rules for the characters i, I, =C4=B1, = =C4=B0."))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In GNU Emacs 25.1.3 (amd64-unknown-freebsd11.0, X toolkit, Xaw scroll bars) of 2017-01-24 built on xi.bootis Repository revision: f0eb70d8935be90f7c03e187c12d9b60e7214cc6 Windowing system distributor 'The X.Org Foundation', version 11.0.11704000 Configured using: 'configure --prefix=3D/local= -C --enable-silent-rules --disable-dependency-tracking --with-x-toolkit=3Dathena --without-gpm --without-dbus --without-gconf --without-gsettings --without-selinux --with-modules --with-file-notification=3Dyes --with-x' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES Important settings: value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: tr_TR.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t auto-insert-mode: t display-time-mode: t change-cursor-mode: t winner-mode: t save-place-mode: t auto-image-file-mode: t persistent-scratch-autosave-mode: t which-key-mode: t global-paren-face-mode: t paren-face-mode: t eval-sexp-fu-flash-mode: t highlight-parentheses-mode: t paredit-mode: t outline-minor-mode: t global-gk-minor-mode: t gk-minor-mode: t gk-utf8-entry-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-quote-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t line-number-mode: t transient-mark-mode: t Recent messages: mouse-2, RET: find function's definition mouse-2, RET: describe this symbol t Saving file /co/emacs.d/gk/gk= -turkish.el... Wrote /co/emacs.d/gk/gk-turki= sh.el Mark set Undo! Quit Making completion list... Load-path shadows: /co/emacs.d/site/let-alist hi= des /local/share/emacs/25.1/lisp/= emacs-lisp/let-alist Features: (shadow mailalias emacsbug gk-langenvs gk-turkish debug finder finder-inf lisp-mnt package skeleton vc-hg dired-aux eieio-opt speedbar sb-image ezimage dframe hl-line org-table diff-mode misearch multi-isearch two-column iso-transl smiley gnus-cite mm-archive mail-extr qp gnus-async gnus-bcklg gnus-ml disp-table pop3 nndraft nnmh nnfolder nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win network-stream nsm starttls url-http tls gnutls url-gw url-cache url-auth org-id tabify org-colview diary-lib diary-loaddefs cal-iso sort cal-move parse-time ffap vc-filewise org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m paren autoinsert init server gk bsdpkg pass-listing password-store thinks boxquote gk-www gk-feeds gk-urls elfeed-csv elfeed-show elfeed-db avl-tree elfeed-search elfeed elfeed-curl elfeed-lib elfeed-log xml-query xml gk-vc diff vc-rcs vc-cvs vc vc-dispatcher log-edit pcvs-util add-log gk-ui time ibuf-macs cursor-chg winner mono-theme saveplace ibuffer-vc ibuf-ext ibuffer goto-addr apropos gk-system man gk-multimedia image+ image-file persistent-scratch tramp-cache gk-globals forecast solar cal-dst which-key smooth-scroll paren-face gk-keys goto-last-change windmove gk-programming inf-ruby ruby-mode smie js sgml-mode json map imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs slime-quicklisp slime-xref-browser tree-widget slime-tramp tramp tramp-compat tramp-loaddefs trampver slime-banner slime-asdf grep slime-mrepl inferior-slime slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl slime-parse slime arc-mode archive-mode hyperspec thingatpt scheme gk-outline eval-sexp-fu rx highlight inf-lisp highlight-parentheses paredit gk-org ob-sh latexenc ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-beamer ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element org-protocol org-mobile org-agenda gk-org-cite gk-fonts gk-alist gk-mail smtpmail sendmail rmailsum rmail message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums gmm-utils mailheader gk-utils whole-line-or-region org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs etags xref project f dash s ucs-normalize epa-mail epa derived epg epg-config bbdb-vcard bbdb-com crm mailabbrev vcard bbdb bbdb-site timezone mairix gk-lingua gk-minor-mode ace-jump-mode face-remap gk-file gk-mac gk-editing zencoding-mode cl ispell writeroom-mode visual-fill-column lorem-ipsum gk-utf8 easy-mmode gk-input-methods gk-unilat gk-syriac gk-greek gk-armenian quail gk-global-modes eww mm-url gnus gnus-ems nnheader mail-utils url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-vars mailcap shr seq byte-opt bytecomp byte-compile cl-extra help-mode cconv dom browse-url diminish gk-edit rect gk-documents pdf-tools compile cus-edit cus-start cus-load wid-edit pdf-view bookmark pp pdf-cache pdf-info tq pdf-util advice doc-view subr-x jka-compr image-mode gk-dired edmacro kmacro ls-lisp wdired image-dired format-spec dired-x easymenu dired gk-crypt gk-comint shell pcomplete comint ansi-color ring cl-loaddefs pcase cl-lib gv time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 708057 112535) (symbols 48 60750 0) (miscs 40 3106 2391) (strings 32 164867 18529) (string-bytes 1 5591913) (vectors 16 94097) (vector-slots 8 2204328 85336) (floats 8 3223 5712) (intervals 56 11336 3326) (buffers 976 78)) --=-=-=--