Ticket #132: haskeline.dpatch

File haskeline.dpatch, 12.7 KB (added by igloo, 4 years ago)
Line 
1
2New patches:
3
4[Make the code compatible with the stricter labelled-field parsing rules
5Ian Lynagh <igloo@earth.li>**20090725212004] {
6hunk ./System/Console/Haskeline/Backend/DumbTerm.hs 90
7-            put Window {pos=newP}
8+            put $ Window {pos=newP}
9hunk ./System/Console/Haskeline/Backend/DumbTerm.hs 109
10-    put Window {pos=p}
11+    put $ Window {pos=p}
12hunk ./System/Console/Haskeline/Backend/Posix.hsc 63
13-                    then return $ Just Layout {height=fromEnum rows,width=fromEnum cols}
14+                    then return $ Just $ Layout {height=fromEnum rows,width=fromEnum cols}
15hunk ./System/Console/Haskeline/Backend/Posix.hsc 68
16-  withHandle_ "unsafeHandleToFd" h $ \Handle__{haDevice=dev} -> do
17+  withHandle_ "unsafeHandleToFd" h $ \(Handle__{haDevice=dev}) -> do
18hunk ./System/Console/Haskeline/Backend/Posix.hsc 83
19-tryGetLayouts [] = return Layout {height=24,width=80}
20+tryGetLayouts [] = return $ Layout {height=24,width=80}
21hunk ./System/Console/Haskeline/Backend/Posix.hsc 257
22-        Just h -> return fileRT {
23+        Just h -> return $ fileRT {
24hunk ./System/Console/Haskeline/Backend/Posix.hsc 286
25-    return RunTerm {putStrOut = \str -> encoder str >>= putTerm,
26+    return $ RunTerm {putStrOut = \str -> encoder str >>= putTerm,
27hunk ./System/Console/Haskeline/Backend/Terminfo.hs 46
28-    return Actions{leftA = leftA', rightA = rightA',upA = upA',
29+    return $ Actions{leftA = leftA', rightA = rightA',upA = upA',
30hunk ./System/Console/Haskeline/Backend/Terminfo.hs 144
31-                        return Layout {height=r,width=c}
32+                        return $ Layout {height=r,width=c}
33hunk ./System/Console/Haskeline/Backend/Terminfo.hs 179
34-                put TermPos {termRow=r,termCol=c+n}
35+                put $ TermPos {termRow=r,termCol=c+n}
36hunk ./System/Console/Haskeline/Backend/Terminfo.hs 185
37-              put TermPos {termRow=r+linesDown, termCol=newCol}
38+              put $ TermPos {termRow=r+linesDown, termCol=newCol}
39hunk ./System/Console/Haskeline/Backend/Terminfo.hs 193
40-                put TermPos {termRow = r,termCol = c-n}
41+                put $ TermPos {termRow = r,termCol = c-n}
42hunk ./System/Console/Haskeline/Backend/Terminfo.hs 199
43-                put TermPos {termRow = r - linesUp, termCol=newCol}
44+                put $ TermPos {termRow = r - linesUp, termCol=newCol}
45hunk ./System/Console/Haskeline/Backend/Terminfo.hs 217
46-                put TermPos{termRow=r, termCol=c+length str}
47+                put $ TermPos{termRow=r, termCol=c+length str}
48hunk ./System/Console/Haskeline/Backend/Terminfo.hs 223
49-                put TermPos {termRow=r+1,termCol=0}
50+                put $ TermPos {termRow=r+1,termCol=0}
51hunk ./System/Console/Haskeline/Backend/Terminfo.hs 239
52-linesLeft Layout {width=w} TermPos {termCol = c} n
53+linesLeft (Layout {width=w}) (TermPos {termCol = c}) n
54hunk ./System/Console/Haskeline/Command/History.hs 16
55-prevHistoryM _ HistLog {pastHistory = []} = Nothing
56-prevHistoryM s HistLog {pastHistory=ls:past, futureHistory=future}
57+prevHistoryM _ (HistLog {pastHistory = []}) = Nothing
58+prevHistoryM s (HistLog {pastHistory=ls:past, futureHistory=future})
59hunk ./System/Console/Haskeline/Command/History.hs 166
60-        searchMore d s = doSearch False s {direction=d}
61+        searchMore d s = doSearch False (s {direction=d})
62hunk ./System/Console/Haskeline/Command/Undo.hs 31
63-undoPast ls u@Undo {pastUndo = []} = (ls,u)
64-undoPast ls u@Undo {pastUndo = (pastLS:lss)}
65+undoPast ls u@(Undo {pastUndo = []}) = (ls,u)
66+undoPast ls u@(Undo {pastUndo = (pastLS:lss)})
67hunk ./System/Console/Haskeline/Command/Undo.hs 35
68-redoFuture ls u@Undo {futureRedo = []} = (ls,u)
69-redoFuture ls u@Undo {futureRedo = (futureLS:lss)}
70+redoFuture ls u@(Undo {futureRedo = []}) = (ls,u)
71+redoFuture ls u@(Undo {futureRedo = (futureLS:lss)})
72hunk ./System/Console/Haskeline/IO.hs 64
73-    return HD {requestVar = reqV, forkedThread = tid,
74-                subthreadFinished = finished}
75+    return $ HD {requestVar = reqV, forkedThread = tid,
76+                 subthreadFinished = finished}
77hunk ./System/Console/Haskeline/Key.hs 47
78-metaKey (Key m bc) = Key m {hasMeta = True} bc
79+metaKey (Key m bc) = Key (m {hasMeta = True}) bc
80hunk ./System/Console/Haskeline/Key.hs 116
81-    | hasControl m = Key m {hasControl = False}
82+    | hasControl m = Key (m {hasControl = False})
83hunk ./System/Console/Haskeline/Key.hs 118
84-    | hasShift m = Key m {hasShift = False} (KeyChar (toUpper c))
85+    | hasShift m = Key (m {hasShift = False}) (KeyChar (toUpper c))
86hunk ./System/Console/Haskeline/Vi.hs 386
87-searchText SearchEntry {entryState = IMode xs ys} = reverse xs ++ ys
88+searchText (SearchEntry {entryState = IMode xs ys}) = reverse xs ++ ys
89hunk ./System/Console/Haskeline/Vi.hs 419
90-    result <- doSearch False SearchMode {
91+    result <- doSearch False (SearchMode {
92hunk ./System/Console/Haskeline/Vi.hs 422
93-                                    direction = dir}
94+                                    direction = dir})
95hunk ./System/Console/Haskeline/Vi.hs 426
96-            put vstate {lastSearch = toSearch'}
97+            put $ vstate {lastSearch = toSearch'}
98hunk ./configure 1
99-#!/bin/sh
100-# Dummy file to be run by autoconfUserHooks.
101rmfile ./configure
102}
103
104Context:
105
106[Check for failure when calling SetConsoleCtrlHandler
107Ian Lynagh <igloo@earth.li>**20090711005810]
108[Fix some "warn-unused-do-bind" warnings where we want to ignore the value
109Ian Lynagh <igloo@earth.li>**20090710203441]
110[Use throwErrnoIfMinus1Retry_ when calling iconv
111Ian Lynagh <igloo@earth.li>**20090710202820]
112[Remove unused imports
113Ian Lynagh <igloo@earth.li>**20090707181944]
114[Fix unused import warnings
115Ian Lynagh <igloo@earth.li>**20090707133608]
116[Remove unused imports
117Ian Lynagh <igloo@earth.li>**20090707115839]
118[Added '~' vi command for flipping case.
119Judah Jacobson <judah.jacobson@gmail.com>**20090703012501
120 Ignore-this: 193d992ad81885f8933764c0dd5382c0
121]
122[Add emacs ctrl-t command for transposing chars.
123Judah Jacobson <judah.jacobson@gmail.com>**20090702000435
124 Ignore-this: 92dea0b2fcac2fa59926bfe45458d133
125]
126[Add meta-<, meta-> emacs commands for skipping to the start or end of the history.
127Judah Jacobson <judah.jacobson@gmail.com>**20090701235827
128 Ignore-this: e0156220376761e553a9c6b5b5d2609e
129]
130[Add vi n/N history search commands.
131Judah Jacobson <judah.jacobson@gmail.com>**20090701233020
132 Ignore-this: 5aa01ddedeb9df24779533b5ef66bb89
133]
134[Add vi searching commands '/' and '?'.
135Judah Jacobson <judah.jacobson@gmail.com>**20090701231654
136 Ignore-this: 12d7c8129f87a66d39f81aa3324c921d
137]
138[The HistLog should consist of [Grapheme]s, not Strings.
139Judah Jacobson <judah.jacobson@gmail.com>**20090624031019
140 Ignore-this: a2b16602f866c05c979f1ff2070d3245
141]
142[TAG 0.6.1.6
143Judah Jacobson <judah.jacobson@gmail.com>**20090624202950
144 Ignore-this: eefaef0ae5eeec535f412c0c95148576
145]
146[Allow the vi '.' command to be undoable.
147Judah Jacobson <judah.jacobson@gmail.com>**20090623041854
148 Ignore-this: 190f25ef4fdc6cfa42493be3e62d2968
149]
150[Let the vi '.' command also repeat a sequence of character insertions.
151Judah Jacobson <judah.jacobson@gmail.com>**20090623041801
152 Ignore-this: a511f73a313a07bdea79a92d733a4a67
153]
154[With the new monadic Commands, we don't need hidden arguments anymore.
155Judah Jacobson <judah.jacobson@gmail.com>**20090623035028
156 Ignore-this: 734a54e6869488675f38ab6a7ac89e60
157]
158[Add vi '.' command to repeat the last nontrivial command.
159Judah Jacobson <judah.jacobson@gmail.com>**20090623034135
160 Ignore-this: b761278d02586ea0a3ab87011bd6e088
161]
162[Fix build on Windows from the previous "Major refactoring".
163Judah Jacobson <judah.jacobson@gmail.com>**20090622015924
164 Ignore-this: 84d6f06663360f498fbd04bee4ed0f8
165]
166[Major refactoring.
167Judah Jacobson <judah.jacobson@gmail.com>**20090622013227
168 Ignore-this: fd3c384e06c31133568e50c033e39f1b
169   Summary of changes:
170    - Removed RankNTypes; added Rank2Types, UndecidableInstances
171    - Revamped Command interface to be simpler and more monadic
172    - Refactored key/command processing into new module RunCommand
173    - Begin infrastructure for emacs/vi modes to have their own state.
174    - Make Monad boilerplate a little simpler
175    - TODO: The Windows build is broken.
176]
177[Use the more flexible Command interface to clean up the completion command.
178Judah Jacobson <judah.jacobson@gmail.com>**20090618170639
179 Ignore-this: 16b8e291ae321a144f5c53fc16b21c02
180]
181[Add emacs ctrl-p, ctrl-n (history commands).  Patch from Eval Klitzke.
182Judah Jacobson <judah.jacobson@gmail.com>**20090617010426
183 Ignore-this: 72eada59a118ade5c0e849dd51efb97d
184]
185[Refactor kill stuff (again), adding the notion of a KillHelper.  Fixes behavior of '%' and makes the code for vi deletions a little more straightforward.
186Judah Jacobson <judah.jacobson@gmail.com>**20090616203047
187 Ignore-this: 9eabbb59fb9e89fbfac2a7c5d8a1cc9d
188]
189[Added vi '%' command (doesn't work right with deletions yet).
190Judah Jacobson <judah.jacobson@gmail.com>**20090616155925
191 Ignore-this: 17d2d145aadc25bb5d6e036fccb76f4a
192]
193[Add vi commands: f/F/t/T.
194Judah Jacobson <judah.jacobson@gmail.com>**20090616051052
195 Ignore-this: 8b1b961b04353724d87896b1049c3e94
196]
197[Add comment about hacky case.
198Judah Jacobson <judah.jacobson@gmail.com>**20090616050911
199 Ignore-this: b31554d02ea9149b222a7ad75973de88
200]
201[Add vi 'y' command, and also fix the behavior of paste.
202Judah Jacobson <judah.jacobson@gmail.com>**20090613174539
203 Ignore-this: 54c663e576b447e171ebffdce96f6dfb
204]
205[Ensure that the prefs file is fully read before starting the user interaction.
206Judah Jacobson <judah.jacobson@gmail.com>**20090612220755
207 Ignore-this: ecec7512819672fcb35a8402c51cafcb
208]
209[Some work on #92 : make completionCmd responsible for saving to the undo stack.
210Judah Jacobson <judah.jacobson@gmail.com>**20090612220559
211 Ignore-this: 8e87c21b55b65b847025cdb16c648866
212]
213[Add cut/paste commands for vi mode.
214Judah Jacobson <judah.jacobson@gmail.com>**20090612215728
215 Ignore-this: 2f192eb9f46ce5a4e2805203e4ed401
216]
217[Fix #87: Make replace mode behave more like vim (and handle combining characters better).
218Judah Jacobson <judah.jacobson@gmail.com>**20090612185322
219 Ignore-this: 9e10242d34d0507050757201d651fd33
220]
221[Fix omission from Command refactoring: move to the next line when reaching a Finish command.
222Judah Jacobson <judah.jacobson@gmail.com>**20090612180746
223 Ignore-this: 676d96bcb92fcb2674d3517b6c1b28cf
224]
225[Added emacs bindings for the kill ring.
226Judah Jacobson <judah.jacobson@gmail.com>**20090612163556
227 Ignore-this: 3c7aaf8878d431608f7b03e8a626bc21
228]
229[Fix behavior of 'c$' command.  Seems a little hackish...
230Judah Jacobson <judah.jacobson@gmail.com>**20090610003827
231 Ignore-this: 762a7b7a38c25bfdbe2d6fa3e03a1b99
232]
233[Add C,X,D commands.
234Judah Jacobson <judah.jacobson@gmail.com>**20090610003744
235 Ignore-this: bb0b61eb6d9e59412f0056b6299feac
236]
237[Don't unnecessarily print '(arg: 1)' when moving the cursor in command mode.
238Judah Jacobson <judah.jacobson@gmail.com>**20090609213542
239 Ignore-this: e302f36dd96ef3a15648baf804c28e26
240]
241[Refactor how vi-mode repeated commands are treated.  Also fixes the behavior of dw,cw,ce,etc. (see #86).
242Judah Jacobson <judah.jacobson@gmail.com>**20090609211403
243 Ignore-this: ea0339a59cb3be539f0097ef1162f43d
244]
245[Added vi-mode commands ^,e,E.  Also cleaned up the word-skipping rules a little.
246Judah Jacobson <judah.jacobson@gmail.com>**20090609035558
247 Ignore-this: 87cc3e0346b72a8fe068ed9b9fb303ba
248]
249[Add j/k vi-mode history commands (and add comment about #85)
250Judah Jacobson <judah.jacobson@gmail.com>**20090609030520
251 Ignore-this: c511124fd01088996120116c0ed24758
252]
253[Change the type of try; makes some code slightly more concise.
254Judah Jacobson <judah.jacobson@gmail.com>**20090608215925
255 Ignore-this: 2167a3caa232fa6dd3ab472da17071aa
256]
257[Add emacs bindings M-u, M-c, M-l.  Adapted from a patch by Max Desyatov.
258Judah Jacobson <judah.jacobson@gmail.com>**20090607202307
259 Ignore-this: be5dfba91fc08c2f75d239c293a5289f
260]
261[Rework Commands to be more flexible and straightforward to use.
262Judah Jacobson <judah.jacobson@gmail.com>**20090607174724
263 Ignore-this: 5c49375581ad9638d6cad93dea92b63d
264]
265[Temp fix for replaceChar missing case.
266Judah Jacobson <judah.jacobson@gmail.com>**20090607132253
267 Ignore-this: f997f9f38ee1abd953952eabe86cc9fb
268]
269[Partial fix for #81: Use grapheme clusters to model the line state.  Currently only works with combining characters whose Unicode general category is NonSpacingMark.
270Judah Jacobson <judah.jacobson@gmail.com>**20090603173341
271 Ignore-this: ee9b51fb22b75739b93815e7307ad14b
272]
273[Bump up to 0.6.2 (preparing for ghc-6.10.4 release).
274Judah Jacobson <judah.jacobson@gmail.com>**20090601203815
275 Ignore-this: f6f1a0c57cdd02d68b70f2f61f315f35
276]
277[work around new name clash with System.Win32.HRESULT
278Simon Marlow <marlowsd@gmail.com>**20090629122344
279 Ignore-this: 62035b69bf3d8818764b106a84c6f1a3
280]
281[TAG 2009-06-25
282Ian Lynagh <igloo@earth.li>**20090625160248]
283Patch bundle hash:
284c2b20179d0f8a88bf02eae9f77a32ad592ad37ed