To: vim-dev@vim.org Subject: Patch 6.1.179 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.179 (depends on 6.1.091) Problem: When using X11R5 XIMPreserveState is undefined. (Albert Chin) Solution: Include the missing definitions. Files: src/mbyte.c *** ../vim61.178/src/mbyte.c Sun Aug 18 16:05:35 2002 --- src/mbyte.c Sat Sep 7 12:41:08 2002 *************** *** 2909,2914 **** --- 2909,2922 ---- } else { + # ifndef XIMPreeditUnKnown + /* X11R5 doesn't have these, it looks safe enough to define here. */ + typedef unsigned long XIMPreeditState; + # define XIMPreeditUnKnown 0L + # define XIMPreeditEnable 1L + # define XIMPreeditDisable (1L<<1) + # define XNPreeditState "preeditState" + # endif XIMPreeditState preedit_state = XIMPreeditUnKnown; XVaNestedList preedit_attr; XIC pxic; *** ../vim61.178/src/version.c Sat Sep 14 17:08:10 2002 --- src/version.c Mon Sep 16 21:02:03 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 179, /**/ -- The acknowledged parents of reengineering are Michael Hammer and James Champy. When I say they're the "parents" I don't mean they had sex - and I apologize for making you think about it. I mean they wrote the best-selling business book _Reengineering the Corporation_, which was published in 1993. Businesses flocked to reengineering like frat boys to a drunken cheerleader. (This analogy wasn't necessary, but I'm trying to get my mind off that Hammer and Champy thing.) (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///