nano for powerusers

ChangeLog.pre-2.1 363KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370
  1. GNU nano 2.0.3 - 2007.01.29
  2. - General:
  3. - Miscellaneous comment fixes. (DLR)
  4. - More int -> bool conversions. (DLR)
  5. - Don't install the nanorc manpages or generate their HTML
  6. versions if nano is built without nanorc support. Changes to
  7. configure.ac, doc/man/Makefile.am, and doc/man/fr/Makefile.am.
  8. (DLR)
  9. - Simplify the commands that generate HTML documentation in
  10. order to remove unnecessary usage of cat. Changes to
  11. doc/man/Makefile.am, doc/man/fr/Makefile.am, and
  12. doc/texinfo/Makefile.am. (DLR)
  13. - files.c:
  14. do_writeout()
  15. - When setting retval to the return value of
  16. write_(marked_)?file(), use the "?" operator instead of an
  17. if/else clause. (DLR)
  18. is_dir()
  19. - Don't assign dirptr's value using buf until we've asserted
  20. that buf isn't NULL. (DLR)
  21. - Remove unneeded assert. (DLR)
  22. - proto.h:
  23. - Add missing is_dir() prototype. (DLR)
  24. - search.c:
  25. regexp_init()
  26. - Don't assign rc's value via regcomp() until we've asserted
  27. that regexp_compiled is FALSE. (DLR)
  28. - text.c:
  29. do_alt_speller()
  30. - Rename variable altspell_error to alt_spell_error, for
  31. consistency. (DLR)
  32. do_spell()
  33. - Rename variable i to status, for clarity. (DLR)
  34. - winio.c:
  35. do_credits()
  36. - Update the last copyright notice to include 2007. (DLR)
  37. - Makefile.am:
  38. - Add README.CVS to EXTRA_DIST, so that nano's CVS checkout
  39. instructions aren't only available in its CVS snapshots. (DLR)
  40. - README:
  41. - Add more miscellaneous cosmetic fixes. (DLR)
  42. - README.CVS:
  43. - Update for the 2.0 branch of nano. (DLR)
  44. - NEWS:
  45. - Formatting fix. (DLR)
  46. - m4/glib-2.0.m4:
  47. - Import the latest version of this file from glib 2.10.3. (DLR)
  48. - doc/faq.html:
  49. - Update section 4.1 to describe how to open files with names
  50. beginning with '+' at specified columns as well as lines.
  51. (DLR)
  52. - doc/man/fr/Makefile.am:
  53. - Set mandir before setting man_MANS, to more closely match
  54. doc/man/Makefile.am. (DLR)
  55. - doc/syntax/python.nanorc:
  56. - Improve string highlighting regexes. (Mike Frysinger)
  57. GNU nano 2.0.2 - 2006.12.20
  58. - General:
  59. - Miscellaneous comment fixes. (DLR)
  60. - browser.c:
  61. do_browser()
  62. - Properly handle directories that contain nulls. (DLR)
  63. - files.c:
  64. do_insertfile()
  65. - Properly handle filenames and executable commands that contain
  66. nulls. (DLR)
  67. write_file()
  68. - Properly handle filenames that contain nulls. (DLR)
  69. do_writeout()
  70. - Fix a segfault when we can't get the full path of either the
  71. filename we want to save under or the original filename. (DLR,
  72. found by Mike Frysinger)
  73. - nano.h:
  74. - Rename NANO_ALT_REPLACE_KEY to NANO_REPLACE_ALTKEY, for
  75. consistency. (DLR)
  76. - Rename NANO_ALT_.* and NANO_.*ALTKEY to NANO_META_.* and
  77. NANO_.*METAKEY, for consistency. (DLR)
  78. - search.c:
  79. update_history()
  80. - Fix minor memory leak. (DLR)
  81. - text.c:
  82. do_spell()
  83. - When setting i to the return value of write_(marked_)?file(),
  84. use the "?" operator instead of an if/else clause. (DLR)
  85. do_verbatim_input()
  86. - Fix minor memory leak. (DLR)
  87. - winio.c:
  88. parse_kbinput()
  89. - Add missing break. (DLR)
  90. - Fix minor memory leak. (Itay Perl)
  91. parse_verbatim_kbinput()
  92. - Fix minor memory leak. (DLR)
  93. edit_draw()
  94. - Fix potential warnings when assigning -1 to paintlen by using
  95. if/else clauses instead of "?" operators. (DLR)
  96. - configure.ac:
  97. - Reword several option descriptions, for clarity. (DLR)
  98. - doc/faq.html:
  99. - Add miscellaneous wording and capitalization fixes. (DLR)
  100. - BUGS:
  101. - Add miscellaneous cosmetic fixes. (DLR)
  102. - README:
  103. - Update for the 2.0 branch of nano. (DLR)
  104. GNU nano 2.0.1 - 2006.11.20
  105. - General:
  106. - Miscellaneous comment fixes. (DLR)
  107. - Fix copyright notices to not abbreviate the year list using a
  108. range. Changes to do_credits() and all source files. (DLR)
  109. - files.c:
  110. get_full_path()
  111. - Remove unneeded assert. (DLR)
  112. - Fix problem where only paths would be returned when both paths
  113. and filenames should have been. (DLR)
  114. do_writeout()
  115. - For consistency, when saving a file with no name, don't allow
  116. overwriting an existing file when in restricted mode. (DLR)
  117. - Fix problem where a file could sometimes be overwritten
  118. without a warning prompt. (DLR)
  119. - winio.c:
  120. do_replace_highlight()
  121. - Include the code to display zero-length matches even when
  122. regex.h isn't found, as it can also be used to display
  123. zero-length Unicode characters. (DLR)
  124. - doc/rnano.1, doc/fr/rnano.1:
  125. - Add missing "(C)" to the copyright notice in the comments.
  126. (DLR)
  127. - doc/nano.texi:
  128. - Remove unneeded "." from the copyright notice in the comments.
  129. (DLR)
  130. - NEWS:
  131. - Add missing entries for nano 1.0.2 and 1.0.3, since 1.1.0
  132. includes their changes. (DLR)
  133. GNU nano 2.0.0 - 2006.11.06
  134. - General:
  135. - Miscellaneous comment fixes. (DLR)
  136. - Add syntax for POV-Ray files. New file doc/syntax/pov.nanorc;
  137. changes to doc/nanorc.sample.in and doc/syntax/Makefile.am.
  138. (Donnie Berkholz, minor tweaks by DLR)
  139. - AUTHORS:
  140. - Update for the 2.0 branch of nano. (DLR)
  141. - nano.spec.in:
  142. - Update links for the 2.0 branch of nano. (DLR)
  143. - Update for newer RPM-based distributions. (DLR, adapted from
  144. the nano 1.3.12-1.1.spec file in Fedora Rawhide)
  145. - Delete the changelog section, as it hasn't been kept up to
  146. date, and all its changes are documented here in any case.
  147. (DLR)
  148. - doc/faq.html:
  149. - Update links for the 2.0 branch of nano. (DLR)
  150. - doc/nano.1, doc/nanorc.5, doc/rnano.1:
  151. - Add minor wording fixes. (DLR)
  152. - doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
  153. - Updated manpage translations by Jean-Philippe Guérard.
  154. - doc/nano.texi:
  155. - Add minor wording and punctuation fixes. (DLR)
  156. GNU nano 1.9.99pre3 - 2006.10.25
  157. - chars.c:
  158. nstrncasecmp()
  159. - When returning, use the "?" operator instead of an if/else
  160. clause. (DLR)
  161. - cut.c:
  162. do_cut_text()
  163. - When uncutting text in the process of copying it, always set
  164. placewewant, as do_uncut_text() does, so that the current line
  165. is always updated properly. (DLR)
  166. - files.c:
  167. input_tab()
  168. - Since the field precision operator used in the sprintf() uses
  169. ints and not size_t's, replace it with two strncpy()s, which
  170. use size_t's, and a null termination. (DLR)
  171. - help.c:
  172. parse_help_input()
  173. - Add 'E' and 'e' as aliases for Exit, for consistency with the
  174. file browser. (DLR)
  175. - m4/ac_define_dir.m4:
  176. - Import the latest version of this file from
  177. http://autoconf-archive.cryp.to/ac_define_dir.m4. (DLR)
  178. - doc/faq.html:
  179. - Update the question in section 4.13 to match the version of it
  180. in the answer section. (DLR)
  181. - doc/syntax/c.nanorc:
  182. - Simplify "undef", "ifn?def", "elif", and "else" in the
  183. preprocessor regexes. (DLR)
  184. GNU nano 1.9.99pre2 - 2006.10.02
  185. - General:
  186. - Miscellaneous comment fixes. (DLR)
  187. - Make sure that the statusbar cursor position is always
  188. properly reset when we get out of all statusbar prompts.
  189. Changes to do_insertfile(), do_writeout(),
  190. handle_sigwinch(), main(), and do_prompt_abort(). (DLR)
  191. - prompt.c:
  192. do_statusbar_input()
  193. - If we get a verbatim input sequence ending with Ctrl-J, remove
  194. the Ctrl-J from the buffer before interpreting it as Enter, so
  195. that it doesn't erroneously fall through to the edit window
  196. and get interpreted as Justify. (DLR)
  197. - winio.c:
  198. get_input()
  199. - Simplify to avoid an unnecessary key_buffer_len check. (DLR)
  200. - doc/syntax/c.nanorc:
  201. - Add "size_t" and "ssize_t" to the types regexes. (DLR,
  202. suggested by Mike Frysinger)
  203. - Simplify "signed" and "unsigned" in the types regexes. (DLR)
  204. GNU nano 1.9.99pre1 - 2006.08.29
  205. - General:
  206. - Miscellaneous comment fixes. (DLR)
  207. - Fix option descriptions. At least one of the two parts of
  208. +LINE,COLUMN must be specified at all times; COLUMN is not the
  209. only optional value. Also, fix wording problems in
  210. -O/--morespace and -W/--wordbounds. Changes to usage(),
  211. UPGRADE, nano.1, nanorc.5, rnano.1, nano.texi, and
  212. nanorc.sample.in. (DLR)
  213. - Fix mouse support so that it truly ignores everything except
  214. releases and clicks of button 1. Changes to
  215. enable_mouse_support() and get_mouseinput(). (DLR)
  216. - In certain places, call wnoutrefresh(bottomwin) after calling
  217. blank_statusbar(), in order to ensure that the statusbar is
  218. actually blanked. Changes to do_help(), do_continue(),
  219. handle_sigwinch(), and update_statusbar_line(). (DLR)
  220. - If the mark isn't on, allow Meta-} and Meta-{ to indent and
  221. unindent only the current line, just as it would if the mark
  222. covered only the current line, instead of displaying a
  223. statusbar message and quitting. Changes to shortcut_init(),
  224. do_indent_marked() (renamed do_indent()),
  225. do_indent_marked_void() (renamed do_indent_void()),
  226. do_unindent_marked_void() (renamed do_unindent()), and
  227. UPGRADE. (DLR, suggested by John M. Gabriele)
  228. - Consolidate do_scroll_(up|down)() into do_(up|down)(), as
  229. they have a lot of duplicate code. New functions do_up_void()
  230. and do_down_void(); changes to shortcut_init(), do_up(),
  231. do_scroll_up(), do_down(), do_scroll_down(), do_left(), and
  232. do_right(). (DLR)
  233. - Make Jordi's email address, and the description of what the
  234. manual pages were written for, consistent in the
  235. documentation. Changes to AUTHORS, nano.1, nanorc.5, and
  236. rnano.1. (DLR, based on suggestions by Jordi)
  237. - Don't include sys/ioctl.h in nano.c when NANO_TINY is defined,
  238. as ioctl() is never used then. (DLR)
  239. - Improve the display of bools in debugging statements. Changes
  240. to parse_kbinput(), get_escape_seq_kbinput(),
  241. parse_escape_seq_kbinput(), get_shortcut(), and get_toggle().
  242. (DLR)
  243. - Rename the values of the scroll_dir enum to UP_DIR and
  244. DOWN_DIR, since UP is defined as a termcap value in Tru64's
  245. and NetBSD 3.0's curses.h, which breaks compilation on those
  246. systems. Changes to do_page_up(), do_page_down(), do_up(),
  247. do_down(), nano.h, and edit_scroll(). (DLR; found by Daniel
  248. Richard G. and Adam Wysocki, repectively)
  249. - Rename the DISABLE_ROOTWRAP #define to DISABLE_ROOTWRAPPING.
  250. (DLR)
  251. - When using slang 2.x, call SLutf8_enable() with an argument of
  252. 1 instead of TRUE, as that's the proper way to enable its
  253. UTF-8 support. Changes to main() and configure.ac. (DLR)
  254. - Fix punctuation relating to "i.e." in various comments and
  255. documentation. (Benno Schulenberg and DLR)
  256. - Make bad_mbchar a static const char* const in chars.c, as its
  257. value doesn't change. (DLR)
  258. - Add various clarifications to translated strings. Changes to
  259. do_insertfile_void(), shortcut_init(), toggle_init(),
  260. help_init(), print_view_warning(), usage(), and do_mark().
  261. (Benno Schulenberg, minor tweaks by DLR)
  262. - Properly preserve the cursor position when going from the
  263. "Read File" or "Save File As" prompt to the file browser to
  264. the "Go To Directory" prompt, and then canceling back to the
  265. "Read File" or "Save File As" prompt. Changes to
  266. get_prompt_string() and do_prompt(). (DLR)
  267. - Rename the parameter old_pww to pww_save in
  268. need_statusbar_horizontal_update(), need_horizontal_update(),
  269. need_vertical_update(), and edit_redraw(); and rename the
  270. variable old_pww to pww_save in do_search() and do_research();
  271. for consistency. (DLR)
  272. - browser.c:
  273. do_browser()
  274. - Refactor the mouse support, modeling it after do_mouse() for
  275. consistency. (DLR)
  276. - Remove unneeded call to blank_edit(). (DLR)
  277. - After entering "..", select the directory we were in before
  278. instead of the first filename in the list, as Pico does. (DLR)
  279. - Simplify screen update handling and exiting. (DLR)
  280. - Fix potential segfault when going to a directory that doesn't
  281. begin with '/'. (DLR)
  282. do_browse_from()
  283. - During the operating directory check, if path isn't NULL,
  284. don't bother freeing it before mallocstrcpy()ing operating_dir
  285. into it, as the latter operation will free it. (DLR)
  286. - Don't bother freeing path if it's NULL. (DLR)
  287. browser_init()
  288. - Fix off-by-one error when calculating longest that kept the
  289. rightmost column of the screen from being used. (DLR)
  290. - Calculate width here instead of in browser_refresh(), as it's
  291. more consistent. (DLR)
  292. - If filelist is initialized, free it here instead of in several
  293. places in do_browser(). (DLR)
  294. browser_refresh()
  295. - Simplify. (DLR)
  296. - Fix problems where translated versions of "(dir)" could be
  297. truncated, and where file sizes could be too long. (DLR)
  298. - For the ".." entry, display "(parent dir)" instead of "(dir)",
  299. as Pico does. (DLR)
  300. - If a filename is too long, truncate it and display an ellipsis
  301. before it, as titlebar() does. (DLR)
  302. - Add translator comments explaining the maximum intended
  303. lengths of "(dir)" and "(parent dir)". (DLR)
  304. - Fix problem where width wouldn't be properly initialized if
  305. the file list took up one line or less. (DLR)
  306. - Don't display overly long filenames with ellipses if the
  307. number of columns is extremely small. (DLR)
  308. browser_select_filename()
  309. - New function, used to select a specific filename in the list.
  310. (DLR)
  311. findnextfile()
  312. - Simplify the uses of tail(). (DLR)
  313. striponedir()
  314. - Since all the strings passed to this are dynamically
  315. allocated, use null_at() to strip the directory from the
  316. string. Also, return the stripped path instead of modifying
  317. path. (DLR)
  318. - chars.c:
  319. mbstrncasecmp(), mbstrcasestr(), mbrevstrcasestr()
  320. - Don't allocate space for multibyte characters until we've
  321. asserted that the parameters we're using aren't NULL. (DLR)
  322. - files.c:
  323. do_insertfile()
  324. - If we execute a command in a new buffer, move back to the
  325. beginning of the first line of the buffer afterwards, for
  326. consistency. (DLR)
  327. - If we don't insert a file into a new buffer, properly update
  328. the x-coordinate to account for the number of characters
  329. inserted on the current line. (DLR)
  330. get_full_path()
  331. - Don't return NULL when the current directory doesn't exist, as
  332. we can still recover from that. (DLR, found by Mike Frysinger)
  333. - Add various cleanups. (DLR)
  334. - global.c:
  335. sc_init_one(), shortcut_init()
  336. - Don't include blank_after when DISABLE_HELP is defined, as
  337. it's never used then. (DLR)
  338. shortcut_init()
  339. - Remove the ^X shortcut for CutTillEnd at the search prompt, as
  340. official Pico doesn't include it, and it can be confused with
  341. Exit. (DLR, suggested by Benno Schulenberg)
  342. - Make the help shortcut for the "Go to Directory" prompt call
  343. do_browser_help() instead of do_help_void(), as this prompt is
  344. only accessible inside the file browser. (DLR, found by Benno
  345. Schulenberg)
  346. toggle_init()
  347. - Don't include desc or blank_after when DISABLE_HELP is
  348. defined, as neither are ever used then. (DLR)
  349. - Make sure that a blank line is not displayed after the Meta-Q
  350. toggle when mouse support is disabled and we're in restricted
  351. mode, and that it is displayed all other times. (DLR)
  352. toggle_init_one()
  353. - Don't include desc or blank_after when DISABLE_HELP is
  354. defined, as neither are ever used then. (DLR)
  355. - help.c:
  356. do_help()
  357. - Simplify screen update handling and exiting. (DLR)
  358. - Don't allow moving down a page when the last line of the help
  359. text is onscreen. (DLR)
  360. help_init()
  361. - Adjust the first two chunks of the main help text so that
  362. they're no more than 509 characters again. (DLR)
  363. - move.c:
  364. do_scroll_up(), do_scroll_down()
  365. - Fix problems where, after scrolling, the previous and current
  366. lines would not be updated properly if the current line was
  367. not the first or last line of the edit window. (DLR, found by
  368. Mike Frysinger)
  369. - nano.c:
  370. handle_sigwinch()
  371. - Just in case we're in the statusbar prompt, reset the
  372. statusbar cursor position when resizing the window. (DLR)
  373. - nano.h:
  374. - Remove the manual disabling of color support if regex.h isn't
  375. found, as configure.ac now handles that. (DLR)
  376. - rcfile.c:
  377. parse_rcfile()
  378. - Add missing ENABLE_COLOR #ifdef around the second check for a
  379. syntax with no color commands, to fix compilation with rcfile
  380. support and without color support. (Daniel Richard G.)
  381. - search.c:
  382. replace_regexp()
  383. - Remove unnecessary casting of c to int. (DLR)
  384. - text.c:
  385. execute_command()
  386. - Remove the marking of the file as modified, as do_insertfile()
  387. now handles that. (DLR)
  388. - utils.c:
  389. digits()
  390. - Tweak to remove the assumption that n is always positive,
  391. although it always is in this particular case. (DLR)
  392. - winio.c:
  393. parse_kbinput()
  394. - Properly handle combined meta and escape sequences, so that
  395. e.g. Meta-/ will work properly when the / is on the numeric
  396. keypad and NumLock is off. Also, properly handle combined
  397. control character and escape sequences, so that e.g. Esc Esc /
  398. will work properly when the / is on the numeric keypad and
  399. NumLock is off. (DLR)
  400. - Translate extended keypad keys to their ASCII equivalents even
  401. when we hit Escape once or twice before typing them, for
  402. consistency. (DLR)
  403. - If they're defined, translate KEY_SUP into NANO_PREVLINE_KEY
  404. and KEY_SDOWN into NANO_NEXTLINE_KEY, since they are sometimes
  405. generated by Shift-Up and Shift-Down. (DLR)
  406. parse_escape_seq_kbinput()
  407. - Handle unknown and unignored escape sequences once here
  408. instead of twice in parse_kbinput(). (DLR)
  409. - Don't ignore escape sequences anymore. Instead, return the
  410. corresponding key so that parse_kbinput() can translate it.
  411. (DLR)
  412. display_string()
  413. - Properly handle buf[start_index]'s being a null terminator.
  414. (DLR)
  415. edit_draw()
  416. - Simplify the setting of paintlen. (DLR)
  417. titlebar()
  418. - Don't display overly long filenames with ellipses if the
  419. number of columns is extremely small. (DLR)
  420. - Don't display any blank space for the state if we're in the
  421. file browser, as Pico doesn't. (DLR)
  422. - configure.ac:
  423. - If regex.h isn't found, display an error message if we try to
  424. enable color support. (DLR)
  425. - Fix the spacing of the error message displayed when slcurses.h
  426. isn't found. (DLR)
  427. - If we use the --disable-wrapping option, ignore the
  428. --disable-wrapping-as-root option. (DLR)
  429. - Add minor cosmetic tweaks. (DLR)
  430. - doc/Makefile.am:
  431. - Don't include nanorc.sample in EXTRA_DIST, as it's only useful
  432. when we're building from source, as opposed to building a
  433. distribution. (DLR)
  434. - Tweak to remove usage of the += operator again. (DLR)
  435. - doc/man/Makefile.am:
  436. - Tweak to remove usage of the += operator again. (DLR)
  437. - doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
  438. - Updated manpage translations by Jean-Philippe Guérard.
  439. - doc/faq.html:
  440. - Update section 5.3 again to not state "the latest development
  441. version" before 1.3.12, as it's no longer accurate. (DLR)
  442. - Add some minor spacing fixes. (DLR)
  443. - doc/nano.texi:
  444. - Add missing description of the -O/--morespace command line
  445. option. (DLR)
  446. - doc/syntax/c.nanorc:
  447. - Since .i and .ii are preprocessed C and C++ output, colorize
  448. them here. (Mike Frysinger)
  449. - Remove redundancy from the file extension regexes. (DLR)
  450. - doc/syntax/ruby.nanorc:
  451. - Add missing blank line after the first comment, for
  452. consistency. (DLR)
  453. - Improve highlighting of constants. (John M. Gabriele, minor
  454. tweaks by DLR)
  455. GNU nano 1.3.12 - 2006.06.26
  456. - General:
  457. - Miscellaneous comment fixes. (DLR)
  458. - Implement filename searches in the file browser. New
  459. functions filesearch_init(), findnextfile(),
  460. findnextfile_wrap_reset(), filesearch_abort(),
  461. do_filesearch(), do_fileresearch(), do_first_file(),
  462. do_last_file(), do_help_void(), and do_browser_help(); changes
  463. to do_browser(), parse_browser_input(), shortcut_init(),
  464. do_help(), and help_init(). (DLR)
  465. - Open all files in binary mode for consistency and robustness.
  466. Changes to load_history() and do_rcfile(). (DLR)
  467. - Change translator-specific comments in global.c and prompt.c
  468. so that they show up in nano.pot, and make them all
  469. consistent. (Benno Schulenberg and DLR)
  470. - Reduce USE_UTF8 to a static bool in chars.c, allow nano.c to
  471. set it via a function, and allow winio.c to read its value
  472. when needed. New functions utf8_init() and using_utf8();
  473. changes to is_alnum_mbchar(), is_blank_mbchar(),
  474. is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(),
  475. mbrep(), mbwidth(), mb_cur_max(), make_mbchar(),
  476. parse_mbchar(), mbstrncasecmp(), mbstrcasestr(),
  477. mbrevstrcasestr(), mbstrnlen(), mbstrchr(), mbstrpbrk(),
  478. mbrevstrpbrk(), has_blank_mbchars(), is_valid_mbstring(),
  479. main(), display_string(), and do_credits(). (DLR)
  480. - Add the ability to use bold text instead of reverse video
  481. text, via the -D/--boldtext command line option and the
  482. "boldtext" rcfile option. Changes to browser_refresh(),
  483. do_help(), usage(), main(), update_statusbar_prompt(),
  484. do_yesno_prompt(), titlebar(), statusbar(), onekey(),
  485. edit_draw(), do_replace_highlight(), nano.1, nanorc.5,
  486. nano.texi, and nanorc.sample. (DLR, suggested by Benno
  487. Schulenberg)
  488. - Add the ability to use self-contained color syntaxes from
  489. separate files, accessible in the nanorc via the "include"
  490. command. New function parse_include(); changes to
  491. parse_rcfile(), do_nanorc(), nanorc.5, and nanorc.sample.
  492. (Victor Ananievsky, Brand Huntsman and DLR)
  493. - Change references to the "help menu" to the "help text
  494. display" refer to display, for clarity. Changes to
  495. shortcut_init(), configure.ac, and faq.html. (DLR, suggested
  496. by Benno Schulenberg)
  497. - Adjust the shortcut list display and related mouse support to
  498. not waste the last few characters of bottomwin when the screen
  499. width isn't a clean multiple of the column width. Changes to
  500. do_mouseinput() and bottombars(). (Benno Schulenberg, minor
  501. tweaks by DLR)
  502. - Add several blank entries to the main shortcut list and the
  503. global toggle list, in order to make the help text easier to
  504. read. Changes to sc_init_one(), toggle_init(),
  505. toggle_init_one(), shortcut_init(), get_toggle(), and
  506. help_init(). (DLR, suggested by Benno Schulenberg)
  507. - Reduce NO_RCFILE to a static bool in nano.c, since it's only
  508. used there. Changes to finish() and main(). (DLR)
  509. - Readd the Cancel -> Exit aliases for the file browser and help
  510. browser. New function parse_help_input(); changes to
  511. parse_browser_input() and do_help(). (DLR, suggested by Benno
  512. Schulenberg)
  513. - Add the ability to copy text into the cutbuffer without
  514. cutting it, via Meta-^ (Meta-6). Note that this is disabled
  515. when NANO_TINY is defined. New functions do_cut_text_void()
  516. and do_copy_text(); changes to do_cut_text(), shortcut_init(),
  517. and do_input(). (DLR, suggested by Ken Tyler)
  518. - Add the ability to indent and unindent all marked lines of
  519. text, via Meta-} (Meta-]) and Meta-{ (Meta-[). New functions
  520. do_indent_marked(), do_indent_marked_void(), and
  521. do_unindent_marked_void(); changes to shortcut_init(). (Chris
  522. and DLR)
  523. - Change the shortcut to find the matching bracket to Ctrl-].
  524. Changes to shortcut_init() and do_statusbar_input(). (DLR)
  525. - Drop the Meta-] and Meta-[ aliases for Meta-} and Meta-{, and
  526. change the shortcut to find the matching bracket from Ctrl-]
  527. back to Meta-], since Ctrl-] is used as the telnet escape key.
  528. Changes to shortcut_init() and do_statusbar_input(). (DLR,
  529. found by Chris)
  530. - Add the ability to move to the first and last line of the help
  531. text and the first and last file in the file browser via
  532. Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to do_browser(),
  533. shortcut_init(), and do_help(). (DLR)
  534. - Allow unjustifying if we resize the window immediately after
  535. justifying, as Pico does, and make input handling across
  536. resizes more consistent. Changes to handle_sigwinch(),
  537. main(), get_kbinput(), parse_kbinput(), get_byte_kbinput(),
  538. and get_unicode_kbinput(); removal of reset_kbinput(). (DLR)
  539. - Handle statusbar blanking in two places instead of many, so
  540. that it always works consistently. Changes to do_browser(),
  541. do_cut_text(), do_uncut_text(), do_first_line(),
  542. do_last_line(), do_page_up(), do_page_down(), do_para_begin(),
  543. do_para_end(), do_para_end(), do_next_word(), do_prev_word(),
  544. do_home(), do_end(), do_up(), do_scroll_up(), do_down(),
  545. do_scroll_down(), do_left(), do_right(), do_indent_marked(),
  546. do_verbatim_input(), and get_kbinput(). (Benno Schulenberg,
  547. minor tweaks by DLR)
  548. - Handle prepending of wrapped text in one place instead of
  549. many, so that it always works consistently. Changes to
  550. do_uncut_text(), do_insertfile(), do_page_up(),
  551. do_page_down(), do_up(), do_scroll_up(), do_down(),
  552. do_scroll_down(), do_input(), do_search(), do_research(), and
  553. do_delete(). (DLR)
  554. - Ignore unhandled meta key sequences, function keys, and escape
  555. sequences, indicate it on the statusbar, and beep when we get
  556. an unhandled shortcut or toggle, as Pico does. To get this to
  557. work properly, add a shortcut for moving to the next
  558. search/replace string. New function is_ascii_cntrl_char();
  559. changes to shortcut_init(), do_input(), do_statusbar_input(),
  560. get_prompt_string(), and parse_kbinput(). (DLR, suggested by
  561. Nick Warne and Benno Schulenberg)
  562. - Explain the mouse support in more detail, and sync the text of
  563. its description across all documentation. Changes to nano.1,
  564. nanorc.5, nanorc.sample, and nano.texi. (Benno Schulenberg and
  565. DLR)
  566. - If we're using verbatim input to enter a Unicode sequence,
  567. indicate it on the statusbar, and add a translator comment
  568. explaining the message. Also, refactor get_unicode_kbinput()
  569. to remove redundant code. New function add_unicode_digit();
  570. changes to get_unicode_kbinput() and parse_verbatim_kbinput().
  571. (Benno Schulenberg, minor tweaks by DLR)
  572. - Allow normal typing of high-bit control characters, as Pico
  573. does. Changes to do_output() and do_statusbar_output(). (DLR)
  574. - Move color regexes into separate files, make nanorc.sample
  575. reference them, and make them install properly. In the
  576. process, rename nanorc.sample to nanorc.sample.in, put
  577. @PKGDATADIR@ at the beginning of all nanorc file paths, add
  578. needed AC_DEFINE_DIR macro from the Autoconf Macro Archive at
  579. http://autoconf-archive.cryp.to/ac_define_dir.m4, and make
  580. configure.ac do the substitution, so that the proper paths
  581. will always be used in nanorc.sample. New files
  582. m4/ac_define_dir.m4, doc/syntax/Makefile.am,
  583. doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
  584. doc/syntax/groff.nanorc, doc/syntax/html.nanorc,
  585. doc/syntax/java.nanorc, doc/syntax/man.nanorc,
  586. doc/syntax/mutt.nanorc, doc/syntax/nanorc.nanorc,
  587. doc/syntax/patch.nanorc, doc/syntax/perl.nanorc,
  588. doc/syntax/python.nanorc, doc/syntax/ruby.nanorc,
  589. doc/syntax/sh.nanorc, and doc/syntax/tex.nanorc; changes to
  590. configure.ac, nano.spec.in, doc/Makefile.am, and
  591. m4/Makefile.am; removal of doc/nanorc.sample. (DLR)
  592. - Replace usage of the bool curses_ended with the isendwin()
  593. function, and remove curses_ended. Changes to do_suspend().
  594. (DLR)
  595. - Remove the workaround for glibc 2.2.3's broken regexec(), and
  596. replace it with a FAQ entry explaining the problem, since it
  597. could break anything using extended regular expressions, and
  598. glibc 2.2.3 is old. Changes to configure.ac, faq.html,
  599. nano.h, proto.h, and UPGRADE; removal of safe_regexec(). (DLR)
  600. - Minor wording fixes to various messages. Changes to
  601. load_history(), shortcut_init(), toggle_init(), usage(),
  602. do_suspend(), do_input(), rcfile_error(), parse_argument(),
  603. parse_rcfile(), nano.1, nano.texi, and nanorc.sample.in.
  604. (Benno Schulenberg, minor tweaks by DLR and Nick Warne)
  605. - Make suspension clear the screen and put the cursor on the
  606. last line before displaying anything, as Pico does. New
  607. functions disable_mouse_support() and enable_mouse_support();
  608. changes to do_mouse(), do_suspend(), do_continue(), and
  609. terminal_init(). (DLR)
  610. - browser.c:
  611. do_browser()
  612. - Reference NANO_GOTODIR_(ALT|F)?KEY instead of
  613. NANO_GOTOLINE_(ALT|F)?KEY for the "Go to Directory" shortcut.
  614. (DLR)
  615. parse_browser_input()
  616. - Remove redundant key checks. (DLR)
  617. browser_refresh()
  618. - Rename variable editline to line, for consistency. (DLR)
  619. - Change variable i from an int to a size_t in order to match
  620. selected, which it's compared against. (DLR)
  621. - color.c:
  622. color_update()
  623. - Fix incorrect setting of defcolor, which prevented the
  624. reserved "default" syntax from being handled correctly. (DLR)
  625. - cut.c:
  626. cut_to_eof()
  627. - New function, containing the main functionality of
  628. do_cut_till_end(). (DLR)
  629. do_cut_text()
  630. - Add parameter cut_till_end, to indicate when we're cutting
  631. from the current cursor position to the end of the file, and
  632. call cut_to_eof() when it's TRUE. (DLR)
  633. do_cut_till_end()
  634. - Convert to a wrapper for do_cut_text(). (DLR)
  635. - files.c:
  636. open_file()
  637. - Remove redundant wording in the error message when we try to
  638. open a device file. (DLR)
  639. do_insertfile()
  640. - Use actual gettext calls instead of no-ops, for consistency.
  641. (DLR)
  642. safe_tempfile()
  643. - Don't ignore $TMPDIR if it's set but blank, for consistency.
  644. (DLR)
  645. write_file()
  646. - Don't free backupname before displaying it in a statusbar error
  647. message. (DLR, found by Bill Marcum)
  648. - If we can't save the backup file for some reason, at least
  649. save the original file, if possible, since that's better than
  650. saving nothing. (DLR, problem found by Bill Marcum, solution
  651. suggested by Jordi)
  652. - Clarify the error messages when creating a temporary file or
  653. writing one for prepending fails. (DLR)
  654. - Simplify the routine for closing the file just before we
  655. indicate success on the statusbar. (DLR)
  656. do_writeout()
  657. - Fix problem where the modifiers at the "Write File" prompt
  658. were marked for translation via gettext no-ops but never
  659. actually translated. (Benno Schulenberg)
  660. free_chararray()
  661. - Assert that array isn't NULL, for consistency with the other
  662. free_.*() functions. (DLR)
  663. - global.c:
  664. shortcut_init()
  665. - Change the cursor position display help text to use "display"
  666. instead of "show", for consistency. (DLR)
  667. - In the main shortcut list, move the "Refresh" shortcut down to
  668. after the "Enter" shortcut, for consistency. (DLR)
  669. - Add the ability to move to the first and last line of the
  670. current file from the main list via Meta-\ (Meta-|) and Meta-/
  671. (Meta-?). Also, make sure all the equivalent shortcuts in the
  672. search, replace, and "Go To Line" lists accept both the meta
  673. keys and the equivalent function keys. (DLR)
  674. - Reorganize the main shortcut list to make it easier for new
  675. users. It now lists the twelve Pico-compatible default
  676. operations, followed by search and replace shortcuts, followed
  677. by cut and paste shortcuts, followed by marking shortcuts,
  678. followed by back and forth movement shortcuts, followed by
  679. start and end movement shortcuts, followed by buffer-switching
  680. shortcuts, followed by insertion and deletion shortcuts,
  681. followed by special movement shortcuts, followed by advanced
  682. word and paragraph shortcuts, followed by display shortcuts.
  683. (DLR and Benno Schulenberg, suggested by Benno Schulenberg)
  684. - Tweak the descriptions of some shortcut keys to make them more
  685. uniform. (Benno Schulenberg, minor tweaks by DLR)
  686. - Shorten the "Where is Next" shortcut name to fit on the screen
  687. after adding Meta-\ (Meta-|) and Meta-/ (Meta-?). (DLR)
  688. - Lengthen the "UnCut Txt" shortcut name to "UnCut Text", as
  689. there's enough room to display it unabbreviated. (DLR)
  690. - Clarify the descriptions of the "Search" and "Replace"
  691. shortcuts, and add spaces to the "Exit" shortcut's description
  692. in multibuffer mode. (Benno Schulenberg)
  693. - Remove the "Go To Line" shortcut in the replace shortcut list,
  694. for compatibility with Pico. (DLR)
  695. toggle_init()
  696. - In the global toggle list, move the "Constant cursor position
  697. display" toggle up to after the "Use more space for editing"
  698. toggle, for consistency. (DLR)
  699. - Reorganize the global toggle list to make it easier for new
  700. users. It now lists toggles that affect the way things are
  701. displayed, followed by toggles that affect editing, followed
  702. by toggles that have to do with peripheral things. (DLR,
  703. suggested by Benno Schulenberg)
  704. - help.c:
  705. do_help()
  706. - Call get_shortcut() after getting input, so that we only have
  707. to check for a main shortcut key instead of both it and all of
  708. its equivalents. (DLR)
  709. - Clean up the handling of NANO_REFRESH_KEY. (DLR)
  710. - Remove redundant key checks. (DLR)
  711. help_init()
  712. - If we have at least two entries' worth of blank space, use it
  713. to display more of "^Space" and "M-Space". (DLR, suggested by
  714. Benno Schulenberg)
  715. - Add various wording fixes. (DLR and Benno Schulenberg)
  716. - If one of the help strings ends in newlines followed by a
  717. space, move the space to the next help string to make it
  718. easier for translators to see. (Benno Schulenberg)
  719. - Make sure we have enough memory in all cases when displaying
  720. the shortcut and toggle lists. (DLR)
  721. - Wrap the shortcut list help text, and display it even when we
  722. have fewer than 24 columns, for consistency with the toggle
  723. help text. (DLR, suggested by Benno Schulenberg)
  724. parse_help_input()
  725. - Add Space and '-' as aliases for PageDown and PageUp, for
  726. consistency with the file browser. (DLR, suggested by Benno
  727. Schulenberg)
  728. - Remove redundant key checks. (DLR)
  729. help_line_len()
  730. - Properly handle the case where we can't break the line of help
  731. text. (DLR)
  732. - Wrap the line of help text at (COLS - 1) instead of
  733. (COLS - 8), for consistency. (DLR, suggested by Benno
  734. Schulenberg)
  735. - nano.c:
  736. print1opt_full()
  737. - Rename to print_opt_full(), for consistency. (DLR)
  738. usage()
  739. - Fix inaccuracies in the usage example. (DLR)
  740. - Put command line arguments in <>'s instead of []'s, as the
  741. latter imply that the arguments are optional when they aren't.
  742. (DLR, found by Benno Schulenberg)
  743. renumber()
  744. - Remove invalid assert. (DLR, found by Filipe Moreira)
  745. do_input()
  746. - Remove redundant check for allow_funcs' being TRUE when we get
  747. KEY_MOUSE. (DLR)
  748. - Don't blow away the cutbuffer when we get a shortcut and the
  749. function associated with it is do_cut_till_end(). (DLR)
  750. - Simplify the routine to preserve the cutbuffer when we call a
  751. cutting or copying function associated with a shortcut. (DLR)
  752. - nano.h:
  753. - Reorder the toggle #defines to match their corresponding order
  754. in toggle_init(). (DLR)
  755. - Move the #include for sys/param.h here from nano.c, and add an
  756. #ifdef around it. (DLR)
  757. - prompt.c:
  758. get_prompt_string()
  759. - Include the handling of the help key even when help is
  760. disabled, so that we aren't erroneously kicked out of the
  761. statusbar prompt under any circumstances. (DLR, found by Benno
  762. Schulenberg)
  763. do_statusbar_input()
  764. - Remove redundant check for allow_funcs' being TRUE when we get
  765. KEY_MOUSE. (DLR)
  766. - Improve the handling of NANO_REFRESH_KEY. (DLR)
  767. total_statusbar_refresh()
  768. - New function, called when we get NANO_REFRESH_KEY in
  769. do_statusbar_input(). (DLR)
  770. do_yesno_prompt()
  771. - Handle the keys in a switch statement instead of a long if
  772. block, for simplicity. (DLR)
  773. - rcfile.c:
  774. parse_argument()
  775. - Rename variable ptr_bak to ptr_save, for consistency. (DLR)
  776. - Add double quotes around invalid string arguments in error
  777. messages, for consistency. (DLR)
  778. - Add single quotes around the invalid string argument in the
  779. error message about unterminated strings, to avoid confusion.
  780. (Benno Schulenberg)
  781. parse_syntax()
  782. - Don't generate an error if we find a duplicate syntax name,
  783. since we might be trying to override a syntax in the global
  784. nanorc with one in our local nanorc. Instead, free any
  785. duplicate syntaxes we find, so that we always use the last
  786. syntax with a given name. (DLR)
  787. color_to_short()
  788. - Add quotes around invalid string arguments in error messages,
  789. for consistency. (DLR)
  790. parse_colors()
  791. - Check for a color command's not following a syntax line before
  792. anything else. (DLR)
  793. - Add quotes around invalid string arguments in error messages,
  794. for consistency. (DLR)
  795. parse_rcfile()
  796. - Properly generate an error if we've read in a syntax without
  797. any associated color commands. (DLR)
  798. - Change variable i from an int to a size_t, for consistency.
  799. (DLR)
  800. - Properly handle rcfiles that don't end in newlines. (DLR)
  801. - Add quotes around invalid string arguments in error messages,
  802. for consistency. (DLR)
  803. do_rcfile()
  804. - Check for the rcfile's being a directory or device file and
  805. reject it if it is, for consistency with file handling
  806. elsewhere. (DLR)
  807. - Remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set.
  808. (DLR)
  809. - Change all rcfile error messages to refer to commands instead
  810. of directives, for consistency with nanorc.5. (DLR)
  811. - text.c:
  812. break_line()
  813. - Fix problem where tab widths in columns would always be
  814. calculated as tabsize. (DLR, found by Alexey Toptygin)
  815. - Handle newlines consistently when searching for the last blank
  816. in the first group of blanks in the range of (goal - 1). (DLR,
  817. found by Benno Schulenberg)
  818. do_justify()
  819. - Remove redundant key checks. (DLR)
  820. do_spell()
  821. - Clarify the error message when creating a temporary file
  822. fails. (DLR)
  823. - Set currshortcut to main_list before calling total_refresh()
  824. near the end of the function, so that we don't display the
  825. wrong shortcut list. (DLR)
  826. do_verbatim_input()
  827. - Add a translator comment explaining the "Verbatim Input"
  828. statusbar message. (Benno Schulenberg)
  829. - Unconditionally blank the statusbar as soon as we're finished
  830. getting input. (DLR, suggested by Benno Schulenberg)
  831. - utils.c:
  832. digits()
  833. - Return the proper number of digits when n is exactly 10. (DLR)
  834. - Simplify to use a for loop instead of a while loop. (DLR)
  835. ngetdelim()
  836. - Set errno to EINVAL if stream is not a valid file stream.
  837. This matches the manual page. (DLR)
  838. nperror()
  839. - Simplify. (DLR)
  840. check_linenumbers()
  841. - Removed, as it's no longer used, and since there's no way to
  842. tell if its return value will be in int or ssize_t range.
  843. (DLR)
  844. - winio.c:
  845. parse_kbinput()
  846. - If we get NANO_CONTROL_8, properly handle it in all cases.
  847. (DLR)
  848. parse_escape_seq_kbinput()
  849. - New function used to interpret escape sequences, formerly part
  850. of parse_kbinput(). (DLR)
  851. get_byte_kbinput()
  852. - Fix typo preventing Esc Esc 3 through Esc Esc 6 from being
  853. interpreted as control key sequences. (DLR)
  854. - Tweak to more closely match get_unicode_kbinput(). (DLR)
  855. get_control_kbinput()
  856. - Add Ctrl-/ as an alias for Ctrl-_. (DLR, found by Benno
  857. Schulenberg)
  858. - Simplify the if blocks wherever possible. (DLR)
  859. parse_verbatim_kbinput()
  860. - Don't include the ability to enter a Unicode sequence via
  861. verbatim input mode if ENABLE_UTF8 isn't defined or we're not
  862. in a UTF-8 locale. (DLR)
  863. check_statusblank()
  864. - Avoid redundant updates when statusblank is 0. (DLR)
  865. display_string()
  866. - Properly display double-column characters if they're past the
  867. first virtual page and their first column is covered by the
  868. "$" displayed at the beginning of the line. (DLR)
  869. statusbar()
  870. - Blank the statusbar after 26 keystrokes instead of 25, for
  871. conpatibility with Pico. (DLR)
  872. edit_draw()
  873. - Properly ignore zero-length regexes in multi-line regexes as
  874. well as single-line ones. This avoids a segfault when trying
  875. to color e.g. "start="$" end="$"". (DLR, found by Trevor
  876. Caira)
  877. - Don't display any statusbar message when we get a zero-length
  878. regex, as we can get one under legitimate circumstances. (DLR,
  879. found by Mike Frysinger)
  880. update_line()
  881. - Remove unneeded assert. (DLR)
  882. edit_redraw()
  883. - Fix problem where not all lines would be updated properly if
  884. we'd scrolled off the screen and the mark was on. (DLR)
  885. do_credits()
  886. - Update the last copyright notice to include 2006. (DLR)
  887. - configure.ac:
  888. - Remove old warnings about color support. (DLR)
  889. - Remove conditional header checks for fcntl.h and termios.h, as
  890. nano won't build without them, and add conditional header
  891. check for sys/param.h, as some systems need only limits.h.
  892. (DLR)
  893. - doc/faq.html:
  894. - Add a new section 4.4, and move all section 4 entries after it
  895. down one number, to explain how to deal with problems typing
  896. Meta-[. (DLR)
  897. - Add a new section 4.5, and move all section 4 entries after it
  898. down one number, to explain a problem that can occur when
  899. holding down keys to generate Meta sequences. (Benno
  900. Schulenberg, minor tweaks by DLR)
  901. - Add a few capitalization and wording fixes. (DLR)
  902. - Remove section 4.4, and move all section 4 entries after it up
  903. one number, since it no longer applies. Meta-] and Meta-[ are
  904. no longer used to indent and unindent marked text, since they
  905. require that the bracket matching key change to Ctrl-], which
  906. is used as the telnet escape key. (DLR, found by Chris)
  907. - Make the link to the nano CVS page a bit more readable. (DLR)
  908. - Update section 3.8 to mention the new "Unicode Input" prompt,
  909. and how Unicode input only works when Unicode support is
  910. enabled. (DLR)
  911. - Add minor punctuation, wording, and typo fixes. (DLR)
  912. - Update section 5.3, due to the display fix for two-column
  913. Unicode characters. (DLR)
  914. - doc/nano.1:
  915. - Update the copyright years to include 2006. (DLR)
  916. - Explicitly mention that all regexes should be extended regular
  917. expressions. (DLR, suggested by John M. Gabriele)
  918. - Miscellaneous minor fixes. (DLR)
  919. - Add various wording fixes. (Benno Schulenberg and DLR)
  920. - Put command line arguments in <>'s instead of []'s, as the
  921. latter imply that the arguments are optional when they aren't.
  922. (Benno Schulenberg)
  923. - doc/nanorc.5:
  924. - Update the copyright years to include 2006. (DLR)
  925. - Explicitly mention that all regexes should be extended regular
  926. expressions. (DLR, suggested by John M. Gabriele)
  927. - Miscellaneous minor fixes. (DLR)
  928. - Add various wording fixes. (Benno Schulenberg and DLR)
  929. - Mention that the nanorc file should not be in DOS or Mac
  930. format. (DLR)
  931. - doc/rnano.1:
  932. - Update the copyright years to include 2006. (DLR)
  933. - Explicitly mention that all regexes should be extended regular
  934. expressions. (DLR, suggested by John M. Gabriele)
  935. - Miscellaneous minor fixes. (DLR)
  936. - Add various wording fixes. (Benno Schulenberg and DLR)
  937. - Add description of the +LINE[,COLUMN] option. (DLR)
  938. - doc/nano.texi:
  939. - Update the copyright years to include 2006. (DLR)
  940. - Explicitly mention that all regexes should be extended regular
  941. expressions. (DLR, suggested by John M. Gabriele)
  942. - Miscellaneous minor fixes. (DLR)
  943. - Add various wording fixes. (Benno Schulenberg and DLR)
  944. - Change license to GPL, in order to match the rest of the
  945. documentation, and because the current license is incompatible
  946. with everything else in any case. (DLR)
  947. - Mention that backup files and spell checking are disabled in
  948. restricted mode, as rnano.1 does. (DLR)
  949. - Add minor updates to put some text back in sync with nano's
  950. help text, and with nano's current feature set. (DLR)
  951. - Add a "Nanorc Files" section to explain the nanorc file format
  952. in detail, using text from nanorc.5. (DLR)
  953. - Put command line arguments in <>'s instead of []'s, as the
  954. latter imply that the arguments are optional when they aren't.
  955. (Benno Schulenberg)
  956. - Add missing description of -H/--historylog, and move
  957. -x/--nohelp down so that all the command line options are in
  958. alphabetical order. (Benno Schulenberg)
  959. - Change all occurrences of "file name" to "filename". (Benno
  960. Schulenberg)
  961. - doc/man/Makefile.am:
  962. - Simplify the setting of SUBDIRS. (DLR)
  963. - doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
  964. - Updated manpage translations by Jean-Philippe Guérard.
  965. - doc/nanorc.sample:
  966. - Miscellaneous minor fixes. (DLR and Benno Schulenberg)
  967. - Tweak the "c-file" regex for characters to accept '"' again,
  968. as it's apparently valid, and simplify it. (DLR)
  969. - Simplify the "shellscript" regex for command line options.
  970. (DLR)
  971. - Replace instances of \" with ", since quotes inside string
  972. parameters don't need to be escaped with backslashes. (DLR)
  973. - Mention in the comments that more than one start/end regex can
  974. be included per line. Also, change the comment for the
  975. "whitespace" option so that the hexadecimal character values
  976. are six digits long, and state which character values work
  977. with which encodings. (DLR)
  978. - Add sample regexes for Python. (singular on the Gentoo forums,
  979. http://forums.gentoo.org/viewtopic.php?t=86562; minor tweaks
  980. by DLR, suggested by John M. Gabriele)
  981. - Explicitly mention that all regexes should be extended regular
  982. expressions. (DLR, suggested by John M. Gabriele)
  983. - Simplify the "nanorc" regex for commands. (DLR)
  984. - Mention that the nanorc file should not be in DOS or Mac
  985. format. (DLR)
  986. - Add various wording fixes. (Benno Schulenberg and DLR)
  987. - Replace instances of "\w" with its equivalent "[0-9A-Z_a-z]",
  988. and instances of "\W" with its equivalent "[^0-9A-Z_a-z]", for
  989. greater readability. (DLR)
  990. - Remove unneeded foreground color for the Java source regex
  991. used to highlight trailing whitespace, since we now support
  992. background colors without foreground colors. (DLR)
  993. - Further simplify the "groff" regexes. (DLR)
  994. - Tweak the "shellscript" regexes to properly color all special
  995. variables, such as $? and $@. (Benno Schulenberg)
  996. - Tweak the "nanorc" regexes to color keywords bright green
  997. instead of cyan, and comments bright blue instead of blue.
  998. (John M. Gabriele)
  999. - Simplify the extensions associated with the "nanorc" regexes.
  1000. (DLR)
  1001. - Add regexes for Ruby. (John M. Gabriele, minor tweaks by DLR)
  1002. - doc/nanorc.sample.in:
  1003. - Add comments describing the relationships between syntax file
  1004. names and the names used as their short descriptions. (John M.
  1005. Gabriele)
  1006. - doc/java.nanorc:
  1007. - Simplify a comment. (DLR)
  1008. - doc/man.nanorc:
  1009. - Change the name of the "manpage" regexes to "man", for
  1010. consistency. (John M. Gabriele)
  1011. - doc/nanorc.nanorc:
  1012. - Tweak the "nanorc" regexes to color comments starting with a
  1013. double ## cyan instead of bright blue. (John M. Gabriele)
  1014. - doc/ruby.nanorc:
  1015. - Add regex for "here" docs. (John M. Gabriele)
  1016. - doc/sh.nanorc:
  1017. - Tweak the regex for special variables, moving "-" to the end,
  1018. to avoid excessive coloring or an "Invalid range end" error.
  1019. (Benno Schulenberg)
  1020. - Tweak the "sh" regexes to color comments cyan instead of
  1021. yellow. (John M. Gabriele)
  1022. - src/Makefile.am:
  1023. - If we're uninstalling, remove the "rnano" symlink. (DLR, found
  1024. by Benno Schulenberg)
  1025. - Remove "-Iintl" from INCLUDES, as we don't use an intl
  1026. directory inside the source directory anymore. (DLR)
  1027. - README, README.CVS:
  1028. - Add various cosmetic and wording improvements. (John M.
  1029. Gabriele, minor tweaks by DLR)
  1030. - TODO:
  1031. - Update for nano 2.0, since we're now in a feature freeze.
  1032. (DLR)
  1033. - UPGRADE:
  1034. - Miscellaneous minor fixes. (DLR)
  1035. - Update for nano 2.0, since we're now in a feature freeze.
  1036. (DLR)
  1037. GNU nano 1.3.11 - 2006.03.30
  1038. - General:
  1039. - Miscellaneous comment fixes. (DLR)
  1040. - Remove unnecessary #ifdef around termios.h #include in nano.c.
  1041. (DLR)
  1042. - Sort the default strings for brackets and punct, and the "or"
  1043. atom in the default regex string for quotestr, according to
  1044. ASCII. Changes to main(), nano.1, nanorc.5, and
  1045. nanorc.sample. (DLR)
  1046. - Rework the bracket searching code to handle multibyte bracket
  1047. characters, and allow specifying matching bracket characters
  1048. other than the default via the "matchbrackets" rcfile option.
  1049. New functions mbstrpbrk() and mbrevstrpbrk(); changes to
  1050. find_statusbar_bracket_match(), do_statusbar_find_bracket(),
  1051. find_bracket_match(), do_find_bracket(), main(),
  1052. parse_rcfile(), nanorc.5, and nanorc.sample. (DLR)
  1053. - Rework input parsing in the file browser to be more flexible.
  1054. New function parse_browser_input(); changes to do_browser().
  1055. (DLR)
  1056. - Allow tab completion of directories at the "Go To Directory"
  1057. prompt. Also, move the browser drawing routines to a separate
  1058. function, and make sure it's used when refreshing or doing tab
  1059. completion at the prompt in the file browser. New function
  1060. browser_refresh(); changes to do_browser(), browser_init(),
  1061. do_insertfile(), do_writeout(), cwd_tab_completion(),
  1062. input_tab(), do_statusbar_input(), get_prompt_string(),
  1063. do_prompt(), search_init(), do_replace(), do_gotolinecolumn(),
  1064. and do_int_spell_fix(). (DLR)
  1065. - browser.c:
  1066. do_browser()
  1067. - Properly set currshortcut back to the file browser shortcut
  1068. list after a "Go To Directory" prompt, and properly restore
  1069. the file list display after returning from the help browser at
  1070. the "Go To Directory" prompt. (DLR)
  1071. - Rename variable j to i, for consistency. (DLR)
  1072. - Make fileline, old_selected, and the static selected size_t's,
  1073. since the first and second can hold the value of the third,
  1074. and the first can be that large. (DLR)
  1075. - chars.c:
  1076. mbstrchr()
  1077. - Make parameter c const. (DLR)
  1078. - files.c:
  1079. do_writeout()
  1080. - Remove unneeded setting of currshortcut. (DLR)
  1081. is_dir()
  1082. - Rename parameter ret to retval, for consistency. (DLR)
  1083. - global.c:
  1084. shortcut_init()
  1085. - Remove erroneous handling of the "Get Help" shortcut in the
  1086. file browser shortcut list. (DLR)
  1087. - nano.h:
  1088. - Remove now-unneeded VERMSG #define. (DLR)
  1089. - prompt.c:
  1090. get_prompt_string()
  1091. - Redraw the prompt and set finished to FALSE when NANO_HELP_KEY
  1092. is pressed, so that we don't leave the prompt, enter the help
  1093. browser, and restart the prompt after leaving it. This will
  1094. properly preserve the cursor position after doing the last of
  1095. these. (DLR)
  1096. - utils.c:
  1097. ngetdelim()
  1098. - Do sanity checks manually again instead of in an assert, and
  1099. set errno to EINVAL as well as return -1 if they fail. This
  1100. matches the manual page. (DLR)
  1101. - winio.c:
  1102. get_key_buffer()
  1103. - If we fail to get a character MAX_BUF_SIZE times in a row,
  1104. hang up regardless of the value of errno. This fixes a
  1105. problem where nano doesn't terminate properly under xterm if
  1106. the user su's to root, runs nano, and then closes the terminal
  1107. window. errno isn't set properly to EIO then. (DLR, found by
  1108. John <acocaracha@gmail.com>)
  1109. parse_kbinput()
  1110. - Interpret Shift-Begin, Shift-Delete, Shift-End, Shift-Home,
  1111. Shift-Insert, and Shift-Suspend as Begin, Delete, End, Home,
  1112. Insert, and Suspend, respectively, regardless of whether
  1113. --rebindkeypad is used. (DLR, found by David Benbennick)
  1114. titlebar()
  1115. - Use PACKAGE_STRING, as defined by autoconf, instead of VERMSG.
  1116. (DLR)
  1117. edit_redraw()
  1118. - If either current or old_current is offscreen, we're not on
  1119. the first page, and/or we're not on the same page as before,
  1120. update old_current before scrolling the edit window. This
  1121. fixes a potential display problem when a search moves the
  1122. cursor offscreen and onto a different page. (DLR, found by
  1123. Mike Frysinger)
  1124. display_string()
  1125. - Fix minor memory leak. (DLR)
  1126. - Fix memory corruption problems caused by not allocating enough
  1127. space for converted when a line ends in a tab(s) and we're not
  1128. in UTF-8 mode. (DLR, found by Duncan Geoffry Doyle, Nick
  1129. Warne, and Mike Frysinger)
  1130. - doc/faq.html:
  1131. - Update the Free Translation Project's address, change the
  1132. character set to UTF-8, and remove broken links to contributed
  1133. RedHat nano packages. (DLR)
  1134. - doc/nano.1:
  1135. - Better display the default values for quotestr. (DLR)
  1136. - doc/nanorc.5:
  1137. - Give the default values for the brackets and punct options,
  1138. and better display the default values for quotestr. (DLR)
  1139. - Mention that quotes inside string parameters don't need to be
  1140. escaped with backslashes. (John M. Gabriele, minor tweaks by
  1141. DLR)
  1142. - doc/rnano.1:
  1143. - Remove unneeded comments. (DLR)
  1144. - doc/nanorc.sample:
  1145. - Remove unneeded comment. (DLR)
  1146. - Mention that quotes inside string parameters don't need to be
  1147. escaped with backslashes. (John M. Gabriele, minor tweaks by
  1148. DLR)
  1149. - THANKS:
  1150. - Add new Swedish translator.
  1151. GNU nano 1.3.10 - 2005.12.23
  1152. - General:
  1153. - Miscellaneous comment fixes. (DLR)
  1154. - More int -> bool conversions. (DLR)
  1155. - Add the ability to scroll up or down single lines without
  1156. scrolling the cursor, via Meta-- and Meta-+. Note that this
  1157. is disabled when NANO_SMALL is defined. New functions
  1158. do_scroll_up() and do_scroll_down(); changes to
  1159. shortcut_init(). (DLR, suggested by Mike Frysinger)
  1160. - Properly handle mouse clicks on the statusbar prompt text.
  1161. New functions statusbar_xplustabs() and
  1162. get_statusbar_page_start(); changes to do_statusbar_mouse(),
  1163. nanoget_repaint(), nanogetstr(), and statusq(). (DLR)
  1164. - Since the statusbar prompt code needs at least 4 columns in
  1165. order to work properly, make that the minimum number of
  1166. columns that nano requires in order to run, and remove
  1167. assertions and code that make use of a smaller number of
  1168. columns. Changes to window_init(), nanoget_repaint(),
  1169. titlebar(), statusbar(), and get_page_start(). (DLR)
  1170. - Move get_page_start(), xplustabs(), actual_x(), strnlenpt(),
  1171. strlenpt(), check_linenumbers(), dump_buffer(), and
  1172. dump_buffer_reverse() from winio.c to utils.c, as they're
  1173. really utility functions. (DLR)
  1174. - Add missing stdio.h #include to text.c and winio.c, and remove
  1175. unneeded sys/wait.h #include from files.c. (DLR)
  1176. - Move functions specific to the statusbar prompt to their own
  1177. source file, adjust related variables accordingly, and rename
  1178. variable resetstatuspos reset_statusbar_x. New file prompt.c;
  1179. changes to do_statusbar_input(), do_statusbar_mouse(),
  1180. do_statusbar_output(), do_statusbar_home(),
  1181. do_statusbar_end(), do_statusbar_right(), do_statusbar_left(),
  1182. do_statusbar_backspace(), do_statusbar_delete(),
  1183. do_statusbar_cut_text(), do_statusbar_next_word(),
  1184. do_statusbar_prev_word(), do_statusbar_verbatim_input(),
  1185. statusbar_xplustabs(), get_statusbar_page_start(),
  1186. nanoget_repaint(), nanogetstr(), statusq(), statusq_abort(),
  1187. and do_yesno() (all moved to prompt.c). (DLR)
  1188. - Move functions specific to the help browser to their own
  1189. source file, and adjust related variables accordingly. New
  1190. file help.c; changes to help_init(), help_line_len(), and
  1191. do_help() (all moved to help.c). (DLR)
  1192. - Tweak a few functions to remove the assumption that the file
  1193. always ends in a magicline. Changes to cut_line(),
  1194. do_cut_till_end(), open_buffer(), read_file(), write_file(),
  1195. do_last_line(), do_para_end(), do_wrap(), backup_lines(),
  1196. find_paragraph(), do_justify(), do_alt_speller(), and
  1197. do_wordlinechar_count(). (DLR)
  1198. - Tweak a few functions to rely on fileage and filebot instead
  1199. of NULL for their checks to detect the top or bottom of the
  1200. file. Changes to cut_line(), cut_to_eol(), do_page_up(),
  1201. do_page_down(), do_para_end(), do_next_word(), do_prev_word(),
  1202. do_up(), do_down(), do_scroll_down(), do_right(), do_mouse(),
  1203. do_gotolinecolumn(), do_delete(), begpar(), find_paragraph(),
  1204. do_wrap(), remove_magicline(), and edit_scroll(). (DLR)
  1205. - Add new -L/--nonewlines command line option, and new
  1206. "nonewlines" rcfile option, to control whether nano adds
  1207. magiclines to the ends of files. Changes to read_file(),
  1208. write_marked_file(), move_to_filestruct(),
  1209. copy_from_filestruct(), usage(), do_output(), main(),
  1210. do_replace_loop(), do_delete(), do_int_spell_fix(),
  1211. do_alt_speller(), nano.1, nanorc.5, nano.texi, and
  1212. nanorc.sample. (DLR, suggested by Jaime
  1213. <re2823@Safe-mail.net>)
  1214. - Move functions specific to the file browser to their own
  1215. source file, and adjust related variables accordingly. New
  1216. file browser.c; changes to striponedir(), browser_init(),
  1217. do_browser(), and do_browse_from() (all moved to browser.c).
  1218. (DLR)
  1219. - Add the statusbar prompt's equivalent of placewewant,
  1220. statusbar_pww, to prompt.c, and convert its functions to use
  1221. it. New functions reset_statusbar_cursor() and
  1222. need_statusbar_horizontal_update(); changes to
  1223. do_statusbar_mouse(), do_statusbar_output(),
  1224. do_statusbar_home(), do_statusbar_end(), do_statusbar_right(),
  1225. do_statusbar_left(), do_statusbar_delete(),
  1226. do_statusbar_cut_text(), do_statusbar_next_word(),
  1227. do_statusbar_prev_word(), do_statusbar_verbatim_input(),
  1228. nanoget_repaint() (renamed update_statusbar_line()),
  1229. nanogetstr() (renamed get_prompt_string()), statusq() (renamed
  1230. do_prompt()), statusq_abort() (renamed do_prompt_abort()), and
  1231. do_yesno() (renamed do_yesno_prompt()). (DLR)
  1232. - Initialize the static pid_t pid in text.c to -1. (DLR)
  1233. - Fix copyright years on source files. All functions in
  1234. browser.c were originally added in 2001; the oldest function
  1235. in color.c is do_colorinit() (now color_init()), which was
  1236. originally added in 2001; the oldest function in chars.c is
  1237. revstrstr(), which was originally added in 2001; the oldest
  1238. function in help.c is do_help(), which was originally added in
  1239. 2000; the oldest function in prompt.c is statusq() (now
  1240. do_prompt()), which was originally added before 0.6.6, which
  1241. was apparently in 1999; all functions in rcfile.c were
  1242. originally added in 2001; one of the oldest functions in
  1243. search.c is do_search(), which was originally added in 0.2.7,
  1244. which was apparently in 1999; and one of the oldest functions
  1245. in text.c is do_wrap(), which was originally added in 0.3.1,
  1246. which was apparently in 1999. (DLR)
  1247. - For functions originally adapted from other sources, add
  1248. notices from the original files, as we do with the tab
  1249. completion functions adapted from busybox, updating the Free
  1250. Software Foundation's address as needed. Also, invoke LGPL
  1251. clause 3 to convert the LGPLed ngetdelim() and ngetline()
  1252. functions to use the GPL instead. This is done so that we
  1253. don't have to include a copy of the LGPL, and because the
  1254. changes made to integrate these functions with nano make them
  1255. dependent on nano's GPLed functions and hence useless
  1256. elsewhere. (DLR)
  1257. - Don't install the localized versions of the manpages if
  1258. nano is built with --disable-nls. Changes to Makefile.am and
  1259. doc/man/Makefile.am. (Mike Frysinger)
  1260. - Rename the NANO_SMALL #define to NANO_TINY. (DLR)
  1261. - Overhaul the bracket searching code so that it no longer
  1262. requires regex support to work. New functions revstrpbrk()
  1263. and find_bracket_match(); changes to shortcut_init() and
  1264. do_find_bracket(). (DLR)
  1265. - Add the ability to do bracket searches at the statusbar
  1266. prompt. New functions find_statusbar_bracket_match() and
  1267. do_statusbar_find_bracket(); changes to do_statusbar_input().
  1268. (DLR)
  1269. - Beep whenever we can't read a file or directory and have to
  1270. indicate it on the statusbar, as Pico does. Changes to
  1271. do_browser(), open_file(), and write_file(). (DLR)
  1272. - Adjust copyright notices in all source files to account for
  1273. Chris' reassigning the 2005-2006 copyright on nano to me.
  1274. Changes to do_credits(). (DLR)
  1275. - Readd RETSIGTYPE return types for signal handlers, since any
  1276. problems with its being defined as the wrong type aren't
  1277. nano's fault. Changes to handle_hupterm(), do_suspend(),
  1278. do_continue(), handle_sigwinch(), and cancel_command(). (DLR)
  1279. - Since proto.h includes nano.h, and nano.h includes config.h
  1280. first, include proto.h first and remove redundant includes of
  1281. config.h in all non-header source files. (DLR)
  1282. - Refer to the Enter key instead of the Return key for
  1283. consistency. Changes to load_history() and rcfile_error().
  1284. (DLR)
  1285. - browser.c:
  1286. do_browser()
  1287. - When setting the width of each file, use the "?" operator
  1288. instead of an if/else clause. (DLR)
  1289. - chars.c:
  1290. mbwidth()
  1291. - If wcwidth() returns -1 for the character passed in, treat the
  1292. character as having the width of Unicode U+FFFD (Replacement
  1293. Character) instead of having a width of zero, since display
  1294. problems can crop up with the latter approach. (DLR)
  1295. mbstrchr()
  1296. - Detect the case where the character isn't found in the string
  1297. more accurately. (DLR)
  1298. - cut.c:
  1299. cut_line()
  1300. - Since placewewant will always be zero after the line is cut,
  1301. set it to zero directly instead of assigning it the value of
  1302. xplustabs(). (DLR)
  1303. - files.c:
  1304. read_file()
  1305. - Remove apparently unneeded logic to handle a case where
  1306. current is NULL, since it shouldn't be NULL there. (DLR)
  1307. get_next_filename()
  1308. - Store the value of digits(ULONG_MAX) in a static, since it
  1309. doesn't change and hence doesn't need to be recalculated.
  1310. (DLR)
  1311. - global.c:
  1312. shortcut_init()
  1313. - Change the description of the Meta-] shortcut to "Find
  1314. matching bracket", as it's clearer. (DLR)
  1315. - nano.c:
  1316. version()
  1317. - If DISABLE_WRAPPING is defined, the code in DISABLE_ROOTWRAP
  1318. #ifdefs isn't included, so don't display
  1319. "--disable-wrapping-as-root" in that case. (DLR)
  1320. do_cont()
  1321. - Rename to do_continue(), and rename parameter s to signal, for
  1322. consistency. (DLR)
  1323. do_verbatim_input()
  1324. - Move to text.c, since it's an advanced text-based operation.
  1325. (DLR)
  1326. - nano.h:
  1327. - Readd MIN_EDITOR_COLS #define, set to 4. (DLR)
  1328. - proto.h:
  1329. - Remove now-unused externs for currslen, shortcut_list,
  1330. fileinfo, syntaxfile_regexp, and synfilematches. (DLR)
  1331. - prompt.c:
  1332. do_statusbar_input()
  1333. - Fix misplaced break when handling NANO_VERBATIM_KEY. (DLR)
  1334. reset_statusbar_cursor()
  1335. - Fix cursor placement problem by modeling the code more closely
  1336. after reset_cursor(). (DLR)
  1337. get_prompt_string()
  1338. - Adjust #ifdefs to leave out disabled keys entirely instead of
  1339. keeping enough code to just ignore them. (DLR)
  1340. - rcfile.c:
  1341. do_rcfile()
  1342. - Remove unneeded assert. (DLR)
  1343. - search.c:
  1344. search_abort()
  1345. - Rename to search_replace_abort(). (DLR)
  1346. findnextstr()
  1347. - Remove parameter can_display_wrap, as it's always set to TRUE
  1348. now, and rename parameter wholeword to whole_word, for
  1349. consistency. (DLR)
  1350. - Only include the whole_word parameter when DISABLE_SPELLER
  1351. isn't defined, as it's only used then. (DLR)
  1352. replace_abort()
  1353. - Replace with search_replace_abort(), since it does the same
  1354. things that this function does. (DLR)
  1355. do_replace_loop()
  1356. - Change order of parameters to more closely match those of
  1357. findnextstr(), and rename parameter wholewords to whole_word,
  1358. for consistency. (DLR)
  1359. - Only include the whole_word parameter when DISABLE_SPELLER
  1360. isn't defined, as it's only used then. (DLR)
  1361. - text.c:
  1362. execute_command()
  1363. - Instead of hardcoding /bin/sh as the shell to use when
  1364. executing a command, use $SHELL, and only fall back to /bin/sh
  1365. if $SHELL isn't set. (DLR)
  1366. do_wrap()
  1367. - Rename variable wrapping to prepending, to avoid confusion,
  1368. and rename the static bool same_line_wrap to prepend_wrap to
  1369. match. (DLR)
  1370. - Properly add a new magicline when needed if, in the process of
  1371. wrapping, we prepend text to the last line of the file. (DLR)
  1372. break_line()
  1373. - Only include the newline parameter if DISABLE_HELP isn't
  1374. defined, as it's only used then. (DLR)
  1375. - In the surrounding #ifdef, replace the combination of
  1376. !DISABLE_JUSTIFY and !DISABLE_WRAPPING with
  1377. !DISABLE_WRAPJUSTIFY, for consistency. (DLR)
  1378. begpar()
  1379. - Return FALSE if foo is NULL, as inpar() does. (DLR)
  1380. backup_lines()
  1381. - Return void instead of a pointer to the copy of the first
  1382. line, since current will point to the same location after the
  1383. text is copied and so can be used instead of the old return
  1384. value. (DLR)
  1385. - Remove unused quote_len parameter. (DLR)
  1386. do_justify()
  1387. - Don't save current_y and restore it if the user unjustifies,
  1388. as the reset_cursor() called by edit_refresh() after restoring
  1389. edittop and current will ensure that current_y is restored to
  1390. its original value. (DLR)
  1391. - Renumber after justifying each individual paragraph, since
  1392. find_paragraph() needs the line numbers to be right as well as
  1393. edit_refresh(). This fixes a potential segfault when doing
  1394. full justify with auto-indent turned on. (DLR)
  1395. do_alt_speller()
  1396. - Move the code that replaces the text of the current file with
  1397. the text of the spell-checked file into its own function,
  1398. replace_buffer(). (DLR)
  1399. - utils.c:
  1400. parse_line_column()
  1401. - Simplify parsing of the column number. (DLR)
  1402. ngetdelim()
  1403. - Do sanity checks in an assert instead of checking them
  1404. manually and returning -1 if they fail. (DLR)
  1405. is_whole_word()
  1406. - Only include when DISABLE_SPELLER isn't defined, as it's only
  1407. used then. (DLR)
  1408. get_page_start()
  1409. - Fix test so that we scroll through the line in 8-character
  1410. chunks when COLS is greater than 8, not when COLS is greater
  1411. than 9. (DLR)
  1412. remove_magicline()
  1413. - Add assert. (DLR)
  1414. - winio.c:
  1415. nanoget_repaint()
  1416. - Rename parameter inputbuf to buf, for consistency. (DLR)
  1417. reset_cursor()
  1418. - Rename variable x to xpt, to avoid confusion. (DLR)
  1419. update_line()
  1420. - Remove now-unneeded logic that set the index parameter to zero
  1421. if the fileptr parameter didn't point to current. (DLR)
  1422. edit_add()
  1423. - Rename to edit_draw(), and rename parameter yval to line.
  1424. (DLR)
  1425. do_cursorpos()
  1426. - Remove unneeded assert. (DLR)
  1427. do_yesno()
  1428. - Make mouse clicks on the Yes/No/All shortcuts work properly
  1429. when the MORE_SPACE flag is set. (DLR)
  1430. - configure.ac:
  1431. - Clarify description of --disable-speller. (DLR)
  1432. - Disable wrapping entirely when --enable-tiny is used, as it
  1433. matches the FAQ, it makes nano even smaller, and it eliminates
  1434. the need for --disable-wrapping-as-root in that case (in which
  1435. it's impossible to turn wrapping back on without nanorc
  1436. support). (DLR)
  1437. - README.CVS:
  1438. - Mention that the minimum required version of texinfo is 4.0,
  1439. since that's the first version that supports generating HTML.
  1440. (DLR)
  1441. - Mention that the minimum required version of groff is 1.12,
  1442. since that's the first version that supports generating HTML.
  1443. (DLR)
  1444. - Update the given cvs commands so that they work again. (DLR)
  1445. - doc/faq.html:
  1446. - Add a new section 5.3 to explain the status of nano's Unicode
  1447. support. (Mike Frysinger, minor tweaks by DLR)
  1448. - Clarify section 5.3 to better explain how to enable Unicode
  1449. support, and remove the mention of quirks, since they turned
  1450. out to not be a nano problem. (Mike Frysinger and DLR)
  1451. - doc/nano.1:
  1452. - Make one non-bold instance of "nano" bold, for consistency.
  1453. (DLR)
  1454. - doc/man/fr/nano.1, doc/man/fr/nanorc.5:
  1455. - Updated manpage translations by Jean-Philippe Guérard.
  1456. - doc/rnano.1:
  1457. - Add rnano.1 manpage from Thijs Kinkhorst. (Jordi) DLR: Merge
  1458. a few minor updates from nano.1.
  1459. - doc/nano.texi:
  1460. - Fix inconsistent wording and punctuation. (DLR)
  1461. - Add missing configure options. (Mike Frysinger, minor tweaks
  1462. by DLR)
  1463. - Sort the configure options more consistently, and add missing
  1464. --disable-utf8 option. (DLR)
  1465. - Move --disable-wrapping above --enable-tiny, as the latter now
  1466. turns it on. (DLR)
  1467. - doc/nanorc.sample:
  1468. - Tweak the "c-file" regex for characters to properly accept
  1469. '\"' and reject '"' and '''. (DLR)
  1470. - doc/texinfo/Makefile.am:
  1471. - Automatically generate an HTML version of the info page,
  1472. nano.html. (DLR)
  1473. - src/Makefile.am:
  1474. - Add browser.c, help.c, and prompt.c to nano_SOURCES. (DLR)
  1475. GNU nano 1.3.9 - 2005.10.23
  1476. - General:
  1477. - Miscellaneous comment fixes. (DLR)
  1478. - More int -> bool conversions. (DLR)
  1479. - Fix a few last instances of the current line number's being
  1480. saved as an int instead of a ssize_t. Changes to
  1481. renumber_all(), renumber(), do_alt_speller(), and
  1482. backup_lines(). (DLR)
  1483. - Reorder some functions for consistency. (DLR)
  1484. - Rename variable open_files openfile, for consistency. (DLR)
  1485. - Remove renumber()'s dependency on the main filestruct.
  1486. Changes to renumber(); removal of renumber_all(). (DLR)
  1487. - Restructure things so that every file has its own
  1488. openfilestruct, and so that the values in it are used directly
  1489. instead of being periodically synced up with the globals.
  1490. Accordingly, remove the globals. Changes to pretty much
  1491. every function. Rename add_open_file() make_new_buffer(),
  1492. rename load_buffer() open_buffer(), rename load_open_file()
  1493. display_buffer(), rename open_prevnext_file()
  1494. switch_to_prevnext_buffer(), rename open_prevfile_void()
  1495. switch_to_prev_buffer(), rename open_nextfile_void()
  1496. switch_to_next_buffer(), rename write_marked()
  1497. write_marked_file(), remove load_file(), rename cancel_fork()
  1498. cancel_command(), rename open_pipe() execute_command(), remove
  1499. execute_command(), rename resize_variables(), rename
  1500. global_init() window_size_init(), rename get_buffer()
  1501. get_key_buffer(), and rename get_buffer_len()
  1502. get_key_buffer_len(). (DLR)
  1503. - Replace all mvwaddstr(hblank) calls with a new function that
  1504. does the same thing without the need for hblank. New function
  1505. blank_line(); changes to do_browser(), blank_titlebar(),
  1506. blank_topbar(), blank_edit(), blank_statusbar(),
  1507. blank_bottombars(), update_line(), and edit_refresh(). (DLR)
  1508. - Make the static pid variable used by execute_command() and
  1509. cancel_command() a pid_t instead of an int, for consistency.
  1510. (DLR)
  1511. - Consistently make the flags global and any variables used to
  1512. hold it longs. (DLR)
  1513. - Make edit_scroll() sophisticated enough to keep track of
  1514. current and current_x, update the lines before and after the
  1515. scrolled region, and properly scroll more than editwinrows
  1516. lines; and change the movement functions that use
  1517. edit_scroll() to (a) set current and current_x before calling
  1518. it, and (b) no longer call edit_redraw() afterward, as it's
  1519. now unnecessary. These changes eliminate redundant screen
  1520. updates when the mark is on, since the mark display depends on
  1521. current and current_x. Also change edit_redraw() to use
  1522. edit_scroll() instead of edit_refresh() when one of its two
  1523. reference lines is offscreen. Changes to edit_scroll(),
  1524. do_page_up(), do_page_down(), do_up(), and do_down(). (DLR)
  1525. - Consistently make the fg and bg colortype struct entries and
  1526. any variables used to hold them shorts. Changes to
  1527. do_colorinit() (renamed color_init()), color_to_int() (renamed
  1528. color_to_short()), and parse_colors(). (DLR)
  1529. - Change color handling to save only the extension and color
  1530. regex strings constantly, and to actually compile them on an
  1531. as-needed basis. Also, make a color syntax specified on the
  1532. command line override the syntax associated with the current
  1533. file extension, add a "default" syntax that takes no
  1534. extensions for those files that don't match any other
  1535. syntax's extensions, and add a "none" syntax that's the same
  1536. as having no syntax at all. Changes to update_color(),
  1537. thanks_for_all_the_fish(), nregcomp(), parse_syntax(), and
  1538. parse_colors(). (Brand Huntsman and DLR)
  1539. - Various other color fixes. Handle unspecified foreground
  1540. colors properly, treat syntax names case sensitively, flag
  1541. duplicate syntax names as errors, don't automatically
  1542. reinitialize the displayed colors every time we update the
  1543. current buffer's colors (since the buffer may not be displayed
  1544. immediately), don't bother doing complete refreshes of the
  1545. screen when color support is enabled if there's no regex
  1546. associated with the current file, and rename variable
  1547. exttype->val to exttype->ext, for consistency. Changes to
  1548. do_colorinit() (renamed color_init()), update_color() (renamed
  1549. color_update()), write_file(), do_input(), do_output(), and
  1550. parse_syntax(). (DLR)
  1551. - Simplify get_totals() to only get the total number of
  1552. characters, and eliminate dependence on its old ability to get
  1553. the total number of lines by renumber()ing when necessary and
  1554. using the number of the last line of a filestruct. Changes to
  1555. read_file(), move_to_filestruct(), copy_from_filestruct(),
  1556. do_justify(), get_totals() (renamed get_totsize()), and
  1557. do_cursorpos(). (DLR)
  1558. - Change the NANO_WIDE #define to ENABLE_UTF8, as the latter is
  1559. clearer. (DLR)
  1560. - Minor history code fixes: Make sure that the current position
  1561. in the history list is properly set to the bottom if we cancel
  1562. out of the prompt, and that magichistory is properly updated
  1563. when we change it and then move up. New function
  1564. history_reset(); changes to nanogetstr(). (DLR)
  1565. - Various character-handling cleanups. If we get an invalid
  1566. multibyte sequence, treat it as Unicode FFFD (Replacement
  1567. Character), unless we're searching for a match to it. Also,
  1568. remove unneeded variables and checks when parsing multibyte
  1569. sequences. Changes to is_alnum_mbchar(), is_blank_mbchar(),
  1570. is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(),
  1571. mbwidth(), make_mbchar(), parse_mbchar(), mbstrncasecmp(),
  1572. mbstrcasestr(), mbrevstrcasestr(), mbstrchr(), and
  1573. display_string(). (DLR)
  1574. - Move advanced text operations (command execution in a buffer,
  1575. wrapping, spell checking, justifying, and word counting) to
  1576. their own source file, and adjust related variables
  1577. accordingly. New file text.c; changes to cancel_command(),
  1578. execute_command(), do_backspace(), do_delete(), do_tab(),
  1579. do_enter(), do_mark(), wrap_reset(), do_wrap(),
  1580. do_int_spell_fix(), do_int_speller(), do_alt_speller(),
  1581. do_spell(), break_line(), indent_length(), justify_format(),
  1582. quote_length(), quotes_match(), indents_match(), begpar(),
  1583. inpar(), backup_lines(), find_paragraph(), do_justify(),
  1584. do_justify_void(), do_full_justify(), and do_word_count() (all
  1585. moved to text.c). (DLR)
  1586. - Since the total number of lines in a file is the same as the
  1587. number of its last line when all its lines are numbered
  1588. properly, use that in place of openfile->totlines, and
  1589. eliminate references to openfile->totlines. Changes to
  1590. initialize_buffer_text(), read_file(), move_to_filestruct(),
  1591. copy_from_filestruct(), do_delete(), do_enter(), do_wrap(),
  1592. do_justify(), do_alt_speller(), do_wordlinechar_count(),
  1593. new_magicline(), remove_magicline(), and do_cursorpos(). (DLR)
  1594. - Various fill-related cleanups. Move check_die_too_small() and
  1595. window_size_init()'s code into window_init(), as they really
  1596. belong there, remove associated separate calls to them, make
  1597. sure window_init() is always called at the same time when
  1598. redrawing the screen, and turn the keypad on in topwin in case
  1599. we ever read input from it. Changes to window_init(), main(),
  1600. and do_alt_speller(); removal of check_die_too_small() and
  1601. window_size_init(). (DLR)
  1602. - Remove still more redundant screen updates. Change all
  1603. wrefresh() calls to wnoutrefresh() calls, except for those in
  1604. total_update() and do_credits(); call doupdate() just before
  1605. using blocking input, since nano spends the most time using
  1606. it, for blocking input; and only do constant sursor position
  1607. display if we're just about to use blocking input. Changes to
  1608. input_tab(), do_browser(), do_output(), main(),
  1609. get_key_buffer(), check_statusblank(), nanogetstr(),
  1610. titlebar(), statusbar(), bottombars(), edit_refresh(),
  1611. do_yesno(), and do_help(). (DLR)
  1612. - Treat the Unicode characters D800-DFFF, FDD0-FDEF, and
  1613. xxFFFE-xxFFFF, as invalid, since the C library's multibyte
  1614. functions don't seem to. New function is_valid_unicode();
  1615. changes to mbrep() and make_mbchar(). (DLR)
  1616. - Store Unicode values in longs instead of ints, and cover the
  1617. entire range of Unicode. Changes to make_mbchar(),
  1618. is_valid_unicode(), parse_kbinput(), get_unicode_kbinput(),
  1619. parse_verbatim_kbinput(), and faq.html. (DLR)
  1620. - Readd the option to turn the keypad off by default from nano
  1621. 1.2.x, but rename the long option from --keypad to
  1622. --rebindkeypad, clarify its description on the command line,
  1623. and add an updated FAQ entry about its use. Changes to
  1624. window_init(), usage(), main(), get_verbatim_kbinput(),
  1625. nanorc.sample, nano.1, nanorc.5, nano.texi, and faq.html.
  1626. (DLR)
  1627. - Add new -W/--wordbounds command line option, and new
  1628. "wordbounds" rcfile option, to control whether
  1629. the word movement functions treat punctuation characters as
  1630. part of a word. Changes to do_next_word_void(),
  1631. do_prev_word_void(), usage(), main(), nano.1, nanorc.5,
  1632. nano.texi, and nanorc.sample. (DLR, suggested by Mike
  1633. Frysinger)
  1634. - Update email address. Changes to faq.html and AUTHORS. (DLR)
  1635. - Remove do_(left|right)()'s ability to optionally not update
  1636. the current line, as this was only used in do_backspace(), and
  1637. it didn't always update the screen properly. Changes to
  1638. shortcut_init(), do_left(), do_right(), and do_backspace();
  1639. removal of do_left_void() and do_right_void(). (DLR; problem
  1640. found by Mike Frysinger)
  1641. - color.c:
  1642. - Remove unneeded fcntl.h include. (DLR)
  1643. - chars.c:
  1644. control_rep(), control_mbrep()
  1645. - Assert that the multibyte character passed in is a control
  1646. character if it's valid. (DLR)
  1647. - If crep is an invalid multibyte sequence, copy Unicode 0xFFFD
  1648. (Replacement Character) into it using strncpy() instead of
  1649. assigning the former to it. This avoids segfaults when freeing
  1650. crep later, since it's supposed to be dynamically allocated.
  1651. (DLR)
  1652. mbrep()
  1653. - New function, the equivalent of control_mbrep() for non-control
  1654. characters. (DLR)
  1655. parse_mbchar()
  1656. - Remove now-unneeded bad_chr parameter. (DLR)
  1657. mbstrchr()
  1658. - Don't count matches between valid and invalid multibyte
  1659. sequences anymore, for consistency. (DLR)
  1660. - files.c:
  1661. open_file()
  1662. - Assert that filename isn't NULL, and don't do anything special
  1663. if it's blank, as the the former case shouldn't occur, and the
  1664. latter case is now handled elsewhere. (DLR)
  1665. write_file(), write_marked_file(), do_writeout()
  1666. - Make append an append_type enum instead of an int. (DLR)
  1667. input_tab()
  1668. - Make columns an int instead of a size_t, since it's limited by
  1669. COLS. (DLR)
  1670. - global.c:
  1671. shortcut_init()
  1672. - Simplify wording of nano_gotoline_msg. (Jordi and Ken Tyler)
  1673. - Clarify wording of nano_wordcount_msg, as it will only go
  1674. through the marked portions of the file if the mark is on.
  1675. (DLR)
  1676. - move.c:
  1677. do_first_line(), do_last_line()
  1678. - Simplify by only using edit_redraw(), and also make them call
  1679. check_statusblank(). (DLR)
  1680. do_page_up(), do_page_down()
  1681. - If there's less than a page of text onscreen, just call
  1682. do_(first|last)_line(). (DLR)
  1683. do_para_begin(), do_para_begin_void(), do_para_end(),
  1684. do_para_end_void(), do_next_word(), do_next_word_void(),
  1685. do_prev_word(), do_prev_word_void()
  1686. - Move here from nano.c, as they're movement functions, and also
  1687. make them call check_statusblank().
  1688. - nano.c:
  1689. move_to_filestruct()
  1690. - Fix problem where edittop wouldn't be reset properly if it was
  1691. inside the text moved to another filestruct. (DLR)
  1692. copy_from_filestruct()
  1693. - Miscellaneous cleanups. (DLR)
  1694. usage()
  1695. - Properly mention the support for "[+LINE,COLUMN]" on the
  1696. command line when HAVE_GETOPT_LONG isn't defined. (DLR)
  1697. - Remove unneeded translation of "--quickblank". (DLR)
  1698. do_verbatim_input()
  1699. - If constant cursor position display is on, make sure the
  1700. cursor position is displayed properly when we finish. (DLR)
  1701. do_next_word()
  1702. - Rework to be more like do_prev_word(), to avoid a potential
  1703. problem if we start at the end of a line. (DLR)
  1704. do_mouse()
  1705. - Avoid redundant screen updates by using edit_redraw() instead
  1706. of edit_refresh(), and remove now-erroneous code that disables
  1707. setting the mark while in view mode. (DLR)
  1708. do_output()
  1709. - When adding a character, just add its length in bytes to
  1710. current_x instead of calling do_right(), and set placewewant
  1711. afterward. (DLR)
  1712. do_alt_speller()
  1713. - If we can't invoke the spell checker, use sprintf() instead of
  1714. snprintf() to write the error string we return, as the one
  1715. formatted value is a simple string, and so altspell_error will
  1716. always be long enough to hold it. Also remove unnecessary
  1717. initialization of altspell_error, refactor so that msglen is
  1718. no longer needed, and make the error message more similar to
  1719. what the internal spell checker returns under the same
  1720. circumstances. (DLR)
  1721. - Block any pending SIGWINCHes while the alternate spell checker
  1722. is running, so that it can handle them, and unblock them once
  1723. it's finished and we've loaded the spell-checked file back in.
  1724. (DLR)
  1725. - Use doupdate() to reenter curses mode instead of refresh().
  1726. (DLR)
  1727. do_spell()
  1728. - When displaying an error message from do_(int|alt)_speller(),
  1729. don't display the error message corresponding to errno if
  1730. errno is zero. (David Benbennick)
  1731. do_justify()
  1732. - If constant cursor position display is on, make sure the
  1733. cursor position is displayed properly when we finish. (DLR)
  1734. handle_sigwinch()
  1735. - Use doupdate() to reenter curses mode instead of refresh().
  1736. (DLR)
  1737. allow_pending_sigwinch()
  1738. - Simplify by using the "?" operator instead of an if clause.
  1739. (DLR)
  1740. main()
  1741. - When opening files with "+LINE,COLUMN" arguments on the
  1742. command line, don't update the screen when moving to their
  1743. specified lines and columns. (DLR)
  1744. - Rename variable fill_flag_used to fill_used, for consistency.
  1745. (DLR)
  1746. - nano.h:
  1747. - Since we only use vsnprintf() now, remove the #ifdef block for
  1748. HAVE_SNPRINTF. (DLR)
  1749. - Remove TOP from the topmidnone enum, and rename the latter
  1750. centernone. (DLR)
  1751. - Move stdlib.h, dirent.h, regex.h, and assert.h includes here,
  1752. as every source file needs them. (DLR)
  1753. - Rename the updown enum scroll_dir and the centernone enum
  1754. update_type for clarity, and add an append_type enum. (DLR)
  1755. - If we don't have regex.h and hence regex support, disable
  1756. color support, as it depends on the use of regexes. (DLR)
  1757. - rcfile.c:
  1758. nregcomp()
  1759. - Return TRUE when the compilation succeeds and FALSE otherwise,
  1760. instead of the other way around. (DLR)
  1761. - search.c:
  1762. search_init()
  1763. - Don't blank out last_replace anymore when we get a new string,
  1764. as it'll be blanked out in do_replace(). Also, consolidate
  1765. the cases for blank and new search strings, as they now differ
  1766. only in which string they pass to regexp_init(). (DLR)
  1767. is_whole_word()
  1768. - Move to utils.c, as it's really a utility function in the same
  1769. vein as regexp_bol_or_eol(). (DLR)
  1770. replace_abort()
  1771. - Remove unnecessary update of placewewant. (DLR)
  1772. do_replace()
  1773. - Blank out last_replace properly again just before displaying
  1774. the "Replace" prompt. (DLR, found by Mike Frysinger)
  1775. - Remove unnecessary renumber(). (DLR)
  1776. do_gotolinecolumn()
  1777. - Add parameter allow_update to control whether the screen is
  1778. updated after moving. If it's TRUE, call edit_refresh() after
  1779. edit_update(). (DLR)
  1780. do_gotopos()
  1781. - Only include this function when DISABLE_SPELLER isn't defined,
  1782. as the alternate spell checking code is now the only place
  1783. where it's used. (DLR)
  1784. do_find_bracket()
  1785. - Add comments and minor cleanups. (DLR)
  1786. find_history()
  1787. - Make parameters const where possible. (DLR)
  1788. update_history()
  1789. - Don't renumber the history list starting after the entry we
  1790. found if the entry we found is at the bottom of the list.
  1791. (DLR, found by Simon Strandman)
  1792. get_history_completion()
  1793. - Make parameters const where possible. (DLR)
  1794. - text.c:
  1795. do_tab()
  1796. - Make sure that we insert the correct number of spaces if the
  1797. TABS_TO_SPACES flag is set and placewewant is greater than the
  1798. current column position of the cursor. (DLR)
  1799. do_enter()
  1800. - Don't update the edit window until we set placewewant. (DLR)
  1801. break_line()
  1802. - Fix a problem where a line could be broken in the middle of a
  1803. multibyte character. (DLR)
  1804. do_word_count()
  1805. - Rename to do_wordlinechar_count(), and expand to also count
  1806. the number of lines and characters in the file or selection,
  1807. as wc does. (DLR)
  1808. - winio.c:
  1809. get_key_buffer()
  1810. - Only save all open buffers and hang up when a blocking
  1811. wgetch() returns ERR and errno is set to EIO (input/output
  1812. error). If errno is set to something else, recover properly.
  1813. This fixes problems with nano's erroneously hanging up while
  1814. e.g. resizing or unsuspending in a chroot. (DLR, found by Mike
  1815. Frysinger)
  1816. get_escape_seq_kbinput()
  1817. - Fix typo preventing the VT100/VT220/VT320/xterm/rxvt escape
  1818. sequence for ',' on the numeric keypad with NumLock off from
  1819. being interpreted properly. (DLR)
  1820. get_word_kbinput()
  1821. - Multiply the entered digits by hexadecimal numbers instead of
  1822. decimal numbers for clarity, rename to get_unicode_kbinput(),
  1823. and rename variables word and word_digits to uni and
  1824. uni_digits. (DLR)
  1825. parse_verbatim_kbinput()
  1826. - Rename variables word_mb and word_mb_len to uni_mb and
  1827. uni_mb_len. (DLR)
  1828. display_string()
  1829. - Instead of using parse_mbchar()'s bad_chr parameter, use
  1830. mbrep() to get the representation of a bad character. (DLR)
  1831. - If column is less than start_col and the character's a tab,
  1832. which can be possible if there are enough tabs and the
  1833. terminal size is sufficiently large, don't try to display it
  1834. using control_mbrep(). (DLR, found by Duncan Geoffry Doyle)
  1835. - Really avoid a memory corruption problem by allocating enough
  1836. space for COLS characters. (DLR)
  1837. edit_redraw(), edit_refresh()
  1838. - Clean up and simplify. (DLR)
  1839. edit_update()
  1840. - Since we no longer use TOP, remove references to it. Also,
  1841. don't call edit_refresh() anymore; it will call us. (DLR)
  1842. do_statusbar_next_word()
  1843. - Rework to be more like do_statusbar_prev_word(), to avoid a
  1844. potential problem if we start at the end of a line. (DLR)
  1845. do_statusbar_input()
  1846. - Call do_statusbar_mouse() instead of do_mouse(). (DLR)
  1847. do_statusbar_output()
  1848. - When adding a character, just add its length in bytes to
  1849. statusbar_x instead of calling do_statusbar_right(). (DLR)
  1850. titlebar()
  1851. - Rework to display only one space after the version number, so
  1852. that there's more room for other things, and to not display
  1853. the status when we're in the file browser, since Pico doesn't.
  1854. (DLR)
  1855. do_credits()
  1856. - Various cleanups. Turn on the MORE_SPACE and NO_HELP flags
  1857. before showing the credits, so that they use as much of the
  1858. screen as possible, and set the flags back to their original
  1859. values afterward. Also, call wscrl(1) instead of scroll(),
  1860. only call scrollok() just before and after we scroll, and
  1861. tweak where screen updates occur so that messages are properly
  1862. displayed when they first scroll onto the bottom line of the
  1863. screen. (DLR)
  1864. - Add Mike Frysinger to credits. (DLR)
  1865. - configure.ac:
  1866. - Since we only use vsnprintf() now, remove the tests for
  1867. snprintf(). (DLR)
  1868. - Change the description of "sufficient wide character support"
  1869. to "sufficient UTF-8 support", as the latter is clearer. (DLR)
  1870. - Update the description of the ENABLE_COLOR option to mention
  1871. the need for regex.h. (DLR)
  1872. - doc/faq.html:
  1873. - Update section 4.10 to mention that pasting from the X
  1874. clipboard via the middle mouse button also works when the
  1875. Shift key is used. (DLR)
  1876. - doc/nanorc.sample:
  1877. - Add regexes for Bourne shell scripts. (Mike Frysinger, minor
  1878. tweaks by DLR)
  1879. - Explain how the "none" and "default" syntaxes work. (DLR)
  1880. - Tweaks and additions to the "c-file" regexes: handle #defined
  1881. constants more accurately and use a brighter color for them,
  1882. support C99 standard integer types, support more GCC builtins,
  1883. and color code flow control statements differently. (Mike
  1884. Frysinger) DLR: Slightly simplify the integer types regex.
  1885. - Tweak one "TeX" regex to use the "icolor" directive. (DLR)
  1886. - doc/man/nanorc.5:
  1887. - Explain how the "none" and "default" syntaxes work. (DLR)
  1888. - doc/man/fr/nano.1, doc/man/fr/nanorc.5:
  1889. - Updated translation by Jean-Philippe Guérard.
  1890. - src/Makefile.am:
  1891. - Add text.c to nano_SOURCES. (DLR)
  1892. - AUTHORS:
  1893. - Add Mike Frysinger. (DLR)
  1894. - README.CVS:
  1895. - Since we only use vsnprintf() now, remove the mention of
  1896. snprintf(). (DLR)
  1897. - THANKS:
  1898. - Add Bulgarian and Dutch translators.
  1899. GNU nano 1.3.8 - 2005.06.30
  1900. - General:
  1901. - Miscellaneous comment fixes. (DLR)
  1902. - Various #include fixes. Since proto.h includes nano.h, only
  1903. include the former in source files. Also add an #include
  1904. guard to proto.h, and make the config.h #include in nano.h
  1905. match the config.h #includes everywhere else. (DLR)
  1906. - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE,
  1907. and #define MAX_BUF_SIZE as 128 in nano.h. (DLR)
  1908. - Display the key to go to the previous strings in the
  1909. search/replace history as "^P" instead of "Up". This makes
  1910. mouse clicks work properly on it. Changes to shortcut_init(),
  1911. help_init(), nanogetstr(), and do_statusbar_input(). (DLR)
  1912. - Update the Free Software Foundation's mailing address in
  1913. various comments. (DLR)
  1914. - Add the ability to open a file on a specified column as well
  1915. as a specified line, by allowing an argument of the form
  1916. +LINE,COLUMN. New function parse_line_column(); changes to
  1917. shortcut_init(), main(), do_gotoline() (renamed
  1918. do_gotolinecolumn()), do_gotoline_void() (renamed
  1919. do_gotolinecolumn_void()), nano.1, and nano.texi. (DLR,
  1920. suggested by PFTank)
  1921. - Overhaul the history code to work more consistently, and clean
  1922. up various parts of it. New function history_has_changed();
  1923. changes to load_history(), writehist(),
  1924. thanks_for_all_the_fish(), history_init(), find_node()
  1925. (renamed find_history()), update_history(),
  1926. get_history_older(), get_history_newer(),
  1927. get_history_completion(), do_search(), do_replace(),
  1928. nanogetstr(), and statusq(); removal of remove_node() and
  1929. insert_node(). (DLR)
  1930. - Remove all instances of charcpy() and replace them with
  1931. strncpy(), since there's no way to be sure that a charcpy()ed
  1932. string will always be properly null-terminated, and strcpy()'s
  1933. null termination is the only difference between it and
  1934. charcpy(). (DLR)
  1935. - When using a backup directory, make sure all the filenames
  1936. written are unique by using get_next_filename() when
  1937. necessary. Changes to get_next_filename(), write_file(),
  1938. die(), usage(), nano.1, nanorc.5, nanorc.sample, and
  1939. nano.texi. (DLR, suggested by James Collings)
  1940. - Rework the file-writing routines so that they can work
  1941. properly with already-opened files, such as the
  1942. mkstemp()-created files used by the spell-checking code.
  1943. Changes to safe_tempnam() (renamed safe_tempfile()),
  1944. write_file(), write_marked(), die(), do_spell(), and
  1945. do_exit(). (DLR)
  1946. - Remove the -R/--regexp command line option and enable the
  1947. toggle at the search prompt in tiny mode, as it already
  1948. allows the prepend and append toggles at the search prompt.
  1949. For consistency, rename TOGGLE_REGEXP_KEY to NANO_REGEXP_KEY,
  1950. and move it out of the toggles block to where NANO_PREPEND_KEY
  1951. and NANO_APPEND_KEY are. Also, change the short command line
  1952. option for --restricted from -Z to -R. Changes to
  1953. shortcut_init(), usage(), main(), search_init(), nano.1,
  1954. nano.texi, etc. (DLR)
  1955. - Various cleanups and improvements in chars.c. Remove some
  1956. unnecessary w?ctype wrappers and variables; change the wctype
  1957. wrappers to take wint_t instead of wchar_t to match the
  1958. functions they wrap; rename some functions for consistency;
  1959. add functions to detect blank characters in a string, for use
  1960. in rcfile option parsing; and don't count matches between
  1961. valid and invalid multibyte sequences anymore, as it causes
  1962. problems when doing a replace. New functions
  1963. is_valid_mbstring(), has_blank_chars(), and
  1964. has_blank_mbchars(); changes to is_alnum_mbchar(),
  1965. is_blank_char() (renamed nisblank()), is_blank_mbchar(),
  1966. is_blank_wchar() (renamed niswblank()), is_cntrl_wchar(),
  1967. control_rep(), control_mbrep(), make_mbstring() (renamed
  1968. make_valid_mbstring()), mbstrncasecmp(), mbstrcasestr(),
  1969. mbrevstrcasestr(), etc.; removal of is_alnum_char() and
  1970. is_alnum_wchar(). (DLR)
  1971. - Implement word count via Meta-D at the main window. Note that
  1972. this is disabled when NANO_SMALL is defined. Also, convert
  1973. all word detection functions to use the same wrapper function
  1974. for ease of maintenance, and make them return more
  1975. information. New functions is_punct_mbchar(),
  1976. is_word_mbchar(), do_next_word_void(), do_prev_word_void(),
  1977. and do_word_count(); changes to shortcut_init(),
  1978. do_next_word(), do_prev_word(), is_whole_word(),
  1979. do_statusbar_next_word(), and do_statusbar_prev_word(). (DLR)
  1980. - Fix #ifdefs so that nano compiles with NANO_SMALL defined and
  1981. DISABLE_TABCOMP undefined. Changes to revstrstr() and
  1982. free_charptrarray() (renamed free_chararray()). (DLR)
  1983. - Change the wctype wrappers to take wchar_t's again, as they
  1984. still work the same way with them. This also fixes
  1985. compilation on Mac OS X 10.4.1, which doesn't seem to define a
  1986. wint_t type. (DLR, found by Emily Jackson)
  1987. - Add the ability to convert typed tabs to spaces using
  1988. the -E/--tabstospaces command line options, the "tabstospaces"
  1989. rcfile option, and the toggle Meta-Q (since QBasic did this by
  1990. default :)). Note that this doesn't affect tabs entered using
  1991. verbatim input, and that it's disabled when NANO_SMALL is
  1992. defined. Also, change the short command line option for
  1993. --backupdir from -E to -C. Changes to toggle_init(), usage(),
  1994. do_tab(), main(), nanorc.sample, nano.1, nanorc.5, and
  1995. nano.texi. (DLR, suggested by many people)
  1996. - Change the CONSTUPDATE, REVERSE_SEARCH, and SMOOTHSCROLL flags
  1997. to the CONST_UPDATE, BACKWARDS_SEARCH, and SMOOTH_SCROLL
  1998. flags, respectively. (DLR)
  1999. - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR)
  2000. - Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its
  2001. meaning. (DLR)
  2002. - Add rcfile options "casesensitive" and "backwards", to do
  2003. case sensitive and backwards searches by default. Changes to
  2004. nanorc.sample and nanorc.5. (DLR)
  2005. - Since the DISABLE_CURPOS flag is only used in winio.c, reduce
  2006. it to a static bool there. Changes to statusbar() and
  2007. disable_cursorpos(). (DLR)
  2008. - Add -U/--quickblank option and a "quickblank" rcfile option to
  2009. blank the statusbar after 1 keystroke instead of 25. Note
  2010. that this obviously has no effect when constant cursor
  2011. position display is turned on, and that this is disabled when
  2012. NANO_SMALL is defined. Changes to usage(), main(),
  2013. statusbar(), nanorc.sample, nano.1, and nanorc.5. (DLR,
  2014. suggested by CHAO Wei-Lun)
  2015. - Add support for case insensitive expression matching when
  2016. using color syntax highlighting, via the "icolor" directive,
  2017. and add it to those regexes that can use it. Changes to
  2018. parse_colors(), parse_rcfile(), nanorc.sample, and nanorc.5.
  2019. (Brand Huntsman, minor tweaks by DLR)
  2020. - Add various type changes to avoid problems on systems where
  2021. int and ssize_t are different sizes. Make filestruct->lineno
  2022. a ssize_t (so that we can avoid negative line numbers at the
  2023. "Go To Line" prompt), current_y a ssize_t (in order to hold
  2024. the maximum difference between two filestruct->lineno's),
  2025. totlines a size_t, and change related variables to match.
  2026. (DLR, initial problem with parse_line_column() found by Mike
  2027. Frysinger)
  2028. - Rework the credits handling to display Florian König's name
  2029. properly whether we're in a UTF-8 locale or not, and without
  2030. requiring a massive function that we only use once. Changes
  2031. to do_credits(); removal of make_valid_mbstring(). (DLR)
  2032. - chars.c:
  2033. make_mbstring()
  2034. - Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
  2035. compilation problem when --enable-nanorc isn't used and
  2036. --enable-extra is. (DLR)
  2037. - color.c:
  2038. update_color()
  2039. - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
  2040. color syntax names are properly detected. (DLR)
  2041. - cut.c:
  2042. cut_line()
  2043. - Set placewewant properly after cutting a line, to avoid a
  2044. problem where the screen won't be updated if (a) we're not on
  2045. the first page when we cut the line, and (b) immediately after
  2046. we cut the line, we hit End to move to the end of the line
  2047. after it. (DLR)
  2048. - files.c:
  2049. read_line()
  2050. - Rename variable prev to prevnode to avoid confusion. (DLR)
  2051. - Rename variable len to buf_len, for consistency. (DLR)
  2052. load_open_file()
  2053. - Remove an unneeded clearok(FALSE). (DLR)
  2054. get_next_filename()
  2055. - Use an unsigned long instead of an int for the number
  2056. prepended to the filename. (DLR)
  2057. do_insertfile()
  2058. - Set i to 0 when we get a filename via the file browser, so
  2059. that it's read in properly when we exit the file browser.
  2060. (DLR)
  2061. open_prevnext_file()
  2062. - Move up a misplaced assert. (DLR)
  2063. - Rename variable next to next_file, to avoid confusion. (DLR)
  2064. write_file()
  2065. - Since lineswritten is a size_t, print its value as an unsigned
  2066. long instead of an unsigned int. (DLR)
  2067. - Declare the size_t i only in the loop where it's used. (DLR)
  2068. diralphasort()
  2069. - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
  2070. filenames are sorted properly. (DLR)
  2071. cwd_tab_completion(), browser_init()
  2072. - Rename variable next to nextdir to avoid confusion. (DLR)
  2073. input_tab()
  2074. - Since list is a bool, set it to FALSE instead of 0. (DLR)
  2075. - Add multibyte/wide character support, so that we don't end up
  2076. with a string that contains only part of a multibyte
  2077. character during tab completion. (DLR)
  2078. - Rename variable buflen to buf_len, for consistency. (DLR)
  2079. do_browser()
  2080. - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
  2081. consistency. (DLR)
  2082. - When displaying "(dir)" in the available screen space, make
  2083. sure that the string it's stored in is always null-terminated.
  2084. (DLR)
  2085. - Rename variable selectedbackup to old_selected, for
  2086. consistency. (DLR)
  2087. - Make mouse clicks in the browser window work properly when the
  2088. MORE_SPACE flag is set. (DLR)
  2089. - Make foo_len a size_t instead of an int. (DLR)
  2090. save_history()
  2091. - Properly save history when we're in view mode. (DLR)
  2092. - global.c:
  2093. shortcut_init()
  2094. - Move the "Refresh" and "Exit" shortcuts to the beginning of
  2095. the help browser shortcut list, for consistency. (DLR)
  2096. - Remove unnecessary "Refresh" placeholder in the file browser
  2097. shortcut list. (DLR)
  2098. - Allow the mark to be used in view mode, as Pico does. (DLR)
  2099. - Clarify the description of ^X when --enable-multibuffer is
  2100. used. (DLR)
  2101. - Change the description of the Meta-B toggle at the search
  2102. prompt from "Direction" to "Backwards", for consistency. (DLR)
  2103. toggle_init()
  2104. - Clarify the descriptions of M-C and M-L. (DLR)
  2105. - Reorder the toggles to put more toggles with similar functions
  2106. together. (DLR)
  2107. thanks_for_all_the_fish()
  2108. - Remove free_toggles() and move its code here verbatim, as it's
  2109. only called here anyway. (David Benbennick)
  2110. - Fix the code to free all open file buffers to work properly
  2111. with the previous overhaul of the multibuffer code instead of
  2112. going into an infinite loop. (David Benbennick)
  2113. - Add additional checks for variables' not being NULL before we
  2114. try to free them, to avoid assertion failures. (DLR)
  2115. - nano.c:
  2116. die()
  2117. - Rename variable ret to retval for consistency. (DLR)
  2118. - Tweak the message displayed when a backup file can't be
  2119. written, so as to not duplicate a translated string. (DLR)
  2120. - If the current filestruct's been partitioned, unpartition it
  2121. before saving the associated file. (DLR)
  2122. resize_variables()
  2123. - Use charset() instead of memset() to initialize hblank. (DLR)
  2124. copy_filestruct()
  2125. - Rename variable prev to copy to avoid confusion. (DLR)
  2126. print1opt_full()
  2127. - If desc should be empty, allow it to be NULL instead of
  2128. "", since the latter is not necessarily translated as "".
  2129. (DLR, found by Jordi)
  2130. usage()
  2131. - Add missing N_() around one message, so that it isn't
  2132. erroneously translated twice. (DLR)
  2133. - Remove inaccurate default listed for -Q/--quotestr. (DLR)
  2134. version()
  2135. - Add --enable-utf8 to the displayed compilation options, put
  2136. the options in alphabetical order, and handle --enable-tiny
  2137. the same way as all the other options. (DLR)
  2138. do_tab()
  2139. - Remove unneeded variable kbinput. (DLR)
  2140. do_int_spell_fix()
  2141. - Display highlighted misspelled words using display_string(),
  2142. as do_replace_loop() does. (DLR)
  2143. do_alt_speller()
  2144. - Replace a set_modified() with SET(MODIFIED) to avoid an
  2145. unnecessary update, and remove an unneeded clearok(FALSE).
  2146. (DLR)
  2147. - Move the spell checking error handling block down and refactor
  2148. it so that we go back into curses mode, reinitialize the
  2149. terminal, turn the cursor back on, and turn the mark back on
  2150. if necessary before returning the error message. (DLR)
  2151. do_spell()
  2152. - If the spell-checker printed any error messages onscreen, call
  2153. total_refresh() to make sure they're cleared off. (DLR, found
  2154. by CHAO Wei-Lun)
  2155. find_paragraph()
  2156. - Reset placewewant as well as current_x to 0, in order to avoid
  2157. a potential screen update problem. (DLR)
  2158. do_justify()
  2159. - Save placewewant, and restore it if we unjustify, in order to
  2160. avoid a potential screen update problem. (DLR)
  2161. do_output()
  2162. - Properly allow wrapping when we insert a tab, for consistency.
  2163. (DLR)
  2164. - Don't set current_len until after it's been asserted that both
  2165. current and current->data aren't NULL. (DLR)
  2166. do_toggle()
  2167. - Properly treat color syntax highlighting as enabled by
  2168. default, and only treat wrapping as enabled by default when
  2169. DISABLE_WRAPPING isn't defined. (DLR)
  2170. disable_extended_input()
  2171. - Disable extended output processing as well as extended input
  2172. processing, and rename to disable_extended_io(). (DLR)
  2173. disable_flow_control(), enable_flow_control()
  2174. - Only turn off flow control on output, as it might be needed
  2175. for input on slow terminals. (DLR)
  2176. - nano.h:
  2177. - Add macro charset(), a wrapper that calls memset(). (DLR)
  2178. - Readd #defines for the isblank() and iswblank() equivalents.
  2179. (DLR)
  2180. - In the colortype struct, make bright a bool instead of an int,
  2181. for consistency. (DLR)
  2182. - proto.h:
  2183. - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the
  2184. do_find_bracket() prototype. (DLR)
  2185. - rcfile.c:
  2186. color_to_int()
  2187. - Since colorname's being NULL is handled elsewhere now, assert
  2188. that it isn't NULL at the beginning of the function. (DLR)
  2189. parse_colors()
  2190. - Properly parse a background color without a foreground color.
  2191. (DLR)
  2192. - Properly generate an error if we get a color directive without
  2193. a regex string. (DLR)
  2194. parse_rcfile()
  2195. - Properly generate an error if we get an invalid multibyte
  2196. string for an option, instead of working around it. (DLR)
  2197. - Use has_blank_mbchars() to check for blank characters in the
  2198. "punct" and "brackets" options, and clarify the error message
  2199. displayed when we find blank characters. (DLR)
  2200. - search.c:
  2201. do_gotoline()
  2202. - Properly show an error message if we try to go to line 0,
  2203. since the first line in the file is 1. (DLR)
  2204. - Start the search for a line from fileage instead of current
  2205. (again). (DLR)
  2206. replace_regexp()
  2207. - Rename variables create_flag and new_size to create and
  2208. new_line_size, for consistency. (DLR)
  2209. - Make new_line_size, search_match_count, and i size_t's, for
  2210. consistency. (DLR)
  2211. replace_line()
  2212. - Make new_line_size and search_match_count size_t's, for
  2213. consistency. (DLR)
  2214. do_replace_loop()
  2215. - When moving to the next match, update the screen using
  2216. edit_refresh() instead of edit_redraw(), as the latter won't
  2217. work properly when we've replaced one or more instances of a
  2218. string in copy and haven't yet updated current->data to match
  2219. copy. (DLR)
  2220. do_find_bracket()
  2221. - Miscellaneous cleanups: rename variables for consistency, and
  2222. save the search direction and regexp setting in two bools
  2223. instead of one flags variable. (DLR)
  2224. - utils.c:
  2225. num_of_digits()
  2226. - Use a size_t instead of an int, and rename to digits(). (DLR)
  2227. align()
  2228. - Rename variable strp to str for consistency. (DLR)
  2229. - winio.c:
  2230. do_statusbar_output()
  2231. - Don't set answer_len until after it's been asserted that
  2232. answer isn't NULL. (DLR)
  2233. display_string()
  2234. - Avoid a memory corruption problem by allocating enough space
  2235. for len plus a trailing multibyte character and/or tab. (DLR)
  2236. - Don't check for multicolumn characters if the NO_UTF8 flag
  2237. isn't set. (DLR)
  2238. - Free buf_mb when we're done using it. (DLR)
  2239. nanogetstr()
  2240. - Rename variable def to curranswer to avoid confusion. (DLR)
  2241. - Only declare and use the tabbed variable if DISABLE_TABCOMP
  2242. isn't defined. (DLR)
  2243. - Refactor to replace unnecessary variable answer_len with
  2244. curranswer_len, and hence avoid an assertion failure involving
  2245. the former. (DLR)
  2246. statusq()
  2247. - Rename variable which_history to history_list, for
  2248. consistency. (DLR)
  2249. - Rename variables def and ret to curranswer and retval to avoid
  2250. confusion. (DLR)
  2251. - Call wnoutrefresh(bottomwin) after getting an answer and
  2252. blanking out the statusbar, to make sure that the blanking is
  2253. done. This fixes a problem where the statusbar is not
  2254. properly blanked after using the "Go To Line" prompt with the
  2255. NO_HELP flag set. (DLR)
  2256. titlebar()
  2257. - Use actual_x() to calculate the number of characters VERMSG
  2258. takes up, in case it's UTF-8. (DLR)
  2259. do_cursorpos()
  2260. - Properly display the value of totsize as unsigned. (DLR)
  2261. - If constant is TRUE, only display the cursor position when
  2262. disable_cursorpos is FALSE. Don't refuse to display it when
  2263. the cursor position hasn't changed, as that doesn't always
  2264. keep it properly updated. (DLR, found by Mike Frysinger)
  2265. do_help()
  2266. - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
  2267. consistency. (DLR)
  2268. statusbar()
  2269. - Set statusblank to 25 instead of 26, to match current Pico.
  2270. (DLR)
  2271. edit_redraw()
  2272. - Make do_refresh a bool instead of an int. (DLR)
  2273. do_yesno()
  2274. - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR)
  2275. - Add a missing assert, and use actual_x() to calculate the
  2276. number of characters buf takes up, in case it's UTF-8. (DLR)
  2277. - Get input from bottomwin instead of edit, so that the cursor
  2278. isn't erroneously put in the edit window while we wait for an
  2279. answer. (DLR)
  2280. - Call wnoutrefresh(edit) to make sure that the edit window is
  2281. refreshed before we get input, as statusq() does. (DLR)
  2282. total_redraw()
  2283. - Simplify to just call wrefresh() on curscr, which updates the
  2284. entire screen in one function call without moving the cursor
  2285. from the window it's currently in. (DLR)
  2286. - When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
  2287. to update the screen, as slang doesn't define curscr. (DLR)
  2288. do_replace_highlight()
  2289. - Use waddch() instead of waddstr() to display a space when we
  2290. have a zero-length regex. (DLR)
  2291. - Rename variable highlight_flag to highlight, for consistency.
  2292. (DLR)
  2293. do_credits()
  2294. - Save the keystroke that breaks us out of the credits (if any)
  2295. and put it back so that it isn't lost. This is especially
  2296. needed if the keystroke is part of a multibyte character.
  2297. (DLR)
  2298. - nano.1:
  2299. - Clarify and consolidate the descriptions of --fill and
  2300. --tabsize. (DLR)
  2301. - nanorc.5:
  2302. - Update the description of how the "color" regex works. (DLR)
  2303. - Clarify descriptions of the characters that aren't allowed
  2304. in the "punct" or "brackets" options. (DLR)
  2305. - Use .B instead of \fB ... \fP where possible, as nano.1 does.
  2306. (DLR)
  2307. - Clarify and consolidate the descriptions of "fill" and
  2308. "tabsize". (DLR)
  2309. - nano.texi:
  2310. - Update the "Feature Toggles" section to match current nano.
  2311. (DLR)
  2312. - Clarify and consolidate the descriptions of --fill and
  2313. --tabsize. (DLR)
  2314. - configure.ac:
  2315. - Minor tweaks to some of the test blocks to avoid XSI:isms.
  2316. (DLR, adapted from a Debian patch for GNU ed by David
  2317. Weinehall)
  2318. - Don't refer to the built-in file browser as crappy anymore.
  2319. (DLR)
  2320. - Check for iswpunct() and mbstowcs(). (DLR)
  2321. - Change the behavior of --enable-extra to only define
  2322. NANO_EXTRA, instead of defining both it and
  2323. ENABLE_MULTIBUFFER. (DLR)
  2324. - Check for get_wch() instead of wget_wch() to determine if
  2325. there's a wide curses library, as it's a more generic
  2326. function. (DLR)
  2327. - Check for possibly unavailable functions in alphabetical
  2328. order. (DLR)
  2329. - doc/faq.html:
  2330. - Update section 1.1 to mention the current maintainer. (DLR)
  2331. - Minor capitalization and wording fixes. (DLR)
  2332. - Update description of --enable-extra, and add missing line
  2333. breaks. (DLR)
  2334. - doc/nanorc.sample:
  2335. - In the "nanorc" regexes, tweak the "color" regex to properly
  2336. color a line that specifies a background color without a
  2337. foreground color, and update the associated comments. (DLR)
  2338. - Clarify descriptions of the characters that aren't allowed
  2339. in the "punct" or "brackets" options. (DLR)
  2340. - Update comment referring to --enable-extra. (DLR)
  2341. - Add "cxx" and "hxx" to the list of extensions that the
  2342. "c-file" regexes apply to, and add "warning" and "error" to
  2343. them as well. (Mike Frysinger)
  2344. - Add regexes for assembler files. (Mike Frysinger)
  2345. - In the preprocessor directives regex string in the "c-file"
  2346. regexes, cover more whitespace characters than just " " by
  2347. using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend
  2348. this to other regex strings whenever possible.
  2349. - Move some overly long split-up regex strings that cover
  2350. similar areas onto the same line. (DLR)
  2351. - Add GCC builtins to the "c-file" regexes. (Mike Frysinger)
  2352. - Simplify the file extension regex for groff. (DLR)
  2353. - Clarify and consolidate the descriptions of "fill" and
  2354. "tabsize". (DLR)
  2355. - Makefile.am, m4/Makefile.am:
  2356. - Make sure that the files in EXTRA_DIST are in alphabetical
  2357. order, and that the lines are wrapped at 72 characters. (DLR)
  2358. - doc/man/fr/Makefile.am:
  2359. - Set mandir to @mandir@/fr, so French manpages get installed
  2360. where they belong (Jordi).
  2361. - THANKS:
  2362. - Add new translators to the credits.
  2363. GNU nano 1.3.7 - 2005.04.10
  2364. - General:
  2365. - Miscellaneous comment fixes. (DLR)
  2366. - After (re)initializing the terminal, make sure the cursor is
  2367. always turned on. Changes to do_alt_speller(),
  2368. handle_sigwinch(), and main(). (DLR)
  2369. - Make sure that all references to cut-to-end are left out when
  2370. NANO_SMALL is defined. Changes to cut_to_eol(),
  2371. do_cut_text(), and do_statusbar_cut_text(). (DLR)
  2372. - chars.c:
  2373. make_mbchar()
  2374. - Remove unneeded assert. (DLR)
  2375. move_mbleft()
  2376. - Fix assert to reference the proper variable, so that nano
  2377. builds with DEBUG defined again. (Mike Frysinger, found by
  2378. Dmitri Vassilenko)
  2379. - files.c:
  2380. do_insertfile()
  2381. - Fix problem where going into the help browser at the "Insert
  2382. File" prompt would always result in the current answer's being
  2383. used as the filename afterward. (DLR)
  2384. get_full_path()
  2385. - Rework handling of the results of getcwd() in order to avoid
  2386. segfaults if they fail, and to remove uses of the nonportable
  2387. GNU extension where passing a size of 0 will get a string as
  2388. long as we need. (DLR)
  2389. do_browser()
  2390. - Rename variable lineno to fileline to avoid confusion. (DLR)
  2391. do_browse_from()
  2392. - Rework handling of the results of getcwd() in order to avoid
  2393. segfaults if they fail, and to remove uses of the nonportable
  2394. GNU extension where passing a size of 0 will get a string as
  2395. long as we need. (DLR)
  2396. - nano.c:
  2397. help_init()
  2398. - When calculating allocsize, take multibyte characters into
  2399. account, and keep the column number limits consistent. (DLR)
  2400. - Break htx up into three chunks, in case the string is too long
  2401. for the compiler to handle (e.g. an ISO C89 compiler that can
  2402. only handle up to 509 characters). (DLR)
  2403. - Minor wording fixes. (DLR)
  2404. print1opt()
  2405. - Don't include longflag if HAVE_GETOPT_LONG isn't defined.
  2406. Rename this function to print1opt_full(), leave out the
  2407. longflag parameter if HAVE_GETOPT_LONG isn't defined, and make
  2408. print1opt() a macro for print1opt_full() that does that
  2409. without the need for a lot of extra #ifdefs. (David
  2410. Benbennick) DLR: Rename print1opt_f() to print1opt_full().
  2411. - Rework the special case of options that are ignored for Pico
  2412. compatibility so that they display more neatly when
  2413. HAVE_GETOPT_LONG isn't defined. (DLR)
  2414. usage()
  2415. - Fix erroneous #ifdef that resulted in the -d/--rebinddelete
  2416. option's not being printed when NANO_SMALL was defined. (DLR)
  2417. find_paragraph()
  2418. - Fix problem where a search for the next paragraph would skip
  2419. over certain cases of one-line paragraphs. (DLR)
  2420. do_justify()
  2421. - Instead of breaking a line at a space and readding the space
  2422. afterwards, just break the line after the space, as it's more
  2423. efficient. (DLR)
  2424. main()
  2425. - Change 0 to NULL in the option struct where needed. (David
  2426. Benbennick)
  2427. - nano.h:
  2428. - Define PATH_MAX as 4096 if it isn't defined, as passing a size
  2429. of 0 to get a string as long as we need is a nonportable GNU
  2430. extension, and hence it won't work on non-GNU systems that
  2431. don't define PATH_MAX. (DLR)
  2432. - rcfile.c:
  2433. parse_rcfile()
  2434. - Fix debugging message to display the long value of a flag
  2435. properly. (DLR)
  2436. - utils.c:
  2437. regexec_safe()
  2438. - Rename to safe_regexec() for consistency. (DLR)
  2439. - winio.c:
  2440. nanogetstr()
  2441. - Fix misplaced break. (DLR)
  2442. statusq()
  2443. - Make sure that the vsnprintf(foo) call and foo's subsequent
  2444. null termination both take the proper number of bytes when
  2445. using multibyte characters, so that multibyte prompt strings
  2446. aren't prematurely cut off. (DLR)
  2447. titlebar()
  2448. - Make sure that the (mv)?waddnstr() calls take the proper
  2449. number of bytes when using multibyte characters, so that
  2450. multibyte strings aren't prematurely cut off. (DLR, found by
  2451. Jordi)
  2452. - Allow the "View" state to be displayed when a filename is
  2453. passed in, in case we're in multibuffer mode and inside the
  2454. file browser. (DLR)
  2455. help_line_len()
  2456. - Make the text display more flexible, and closer to what nano
  2457. 1.2.x does. (DLR)
  2458. - configure.ac:
  2459. - Allow more flexible handling of UTF-8 support by allowing
  2460. the --enable-utf8 and --disable-utf8 options. (Mike
  2461. Frysinger) DLR: Extend these options to work with slang as
  2462. well as curses, consolidate the warning and error messages
  2463. dealing with UTF-8 support as much as possible, and add a few
  2464. minor consistency fixes.
  2465. - Mention explicitly that the check for the broken regexec() is
  2466. needed for glibc 2.2.3. (DLR)
  2467. - nanorc.sample:
  2468. - Fix the description for the whitespace option to mention that
  2469. only single-column characters are allowed. (DLR)
  2470. - Add C++ regexes. (Neil Brown, merged into c-file regexes by
  2471. DLR)
  2472. - Break up overly long perl and nanorc regexes into separate
  2473. regexes of no more than 256 bytes, as POSIX-compliant regexp
  2474. implementations can reject regexes of over 256 bytes. (DLR)
  2475. - nano.1, nano.texi:
  2476. - Mention the -? alias for -h/--help, and add various
  2477. consistency fixes. (DLR)
  2478. - nanorc.5:
  2479. - Fix the description for the whitespace option to mention that
  2480. only single-column characters are allowed. (DLR)
  2481. GNU nano 1.3.6 - 2005.03.20
  2482. - General:
  2483. - More int -> bool conversions. (DLR and David Benbennick)
  2484. - Overhaul the cutting and uncutting routines to use the
  2485. partitioning code, as it greatly simplifies how they work.
  2486. New functions move_to_filestruct(), copy_from_filestruct(),
  2487. cut_line(), cut_marked(), and cut_to_eol(); changes to
  2488. add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.;
  2489. removal of functions get_cutbottom(), add_to_cutbuffer(), and
  2490. cut_marked_segment(). (DLR)
  2491. - Overhaul the justify-related routines to back up and restore
  2492. unjustified text to use the partitioning code, as it greatly
  2493. simplifies how they work, and to store such text in its own
  2494. buffer rather than the cutbuffer. Changes to backup_lines(),
  2495. do_justify(), etc. (DLR)
  2496. - Overhaul the multibuffer routines to increase efficiency, most
  2497. importantly making them use a doubly linked list for the open
  2498. files so that switching between them is no longer O(N), and
  2499. only including free_openfilestruct() when --enable-debug is
  2500. used. Also use some of the same efficiency tweaks when
  2501. dealing with filestruct nodes. New function
  2502. open_prevnext_file(); changes to make_new_opennode(),
  2503. splice_opennode(), unlink_opennode(), delete_opennode(),
  2504. free_openfilestruct(), add_open_file(), load_open_file(),
  2505. close_open_file(), shortcut_init(), die(), make_new_node(),
  2506. copy_node(), splice_node(), delete_node(), and
  2507. free_filestruct(); removal of open_prevfile() and
  2508. open_nextfile(). (David Benbennick, minor tweaks and additions
  2509. by DLR)
  2510. - Change references to "open files" to "open file buffers", for
  2511. consistency. (DLR)
  2512. - Add flag to disable UTF-8 sequence interpretation, so that
  2513. people using single-byte encodings such as KOI8-R can type
  2514. properly again. (DLR, found by Arthur Ivanov)
  2515. - Massively overhaul the input and output routines to support
  2516. buffered input and output, the first steps toward
  2517. wide/multibyte character input and output, and verbatim input
  2518. of double-byte Unicode characters instead of single-byte ASCII
  2519. characters. New functions is_byte(), get_buffer(),
  2520. get_buffer_len(), buffer_to_keys(), unget_input(),
  2521. get_input(), parse_kbinput(), and parse_verbatim_kbinput();
  2522. new macro charcpy(); changes to do_char() (renamed to
  2523. do_output()), get_edit_input() (renamed to do_input() and
  2524. moved to nano.c), get_edit_mouse() (renamed do_mouse() and
  2525. moved to nano.c), do_verbatim_input(), do_tab(), main(), and
  2526. get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide
  2527. version of ncurses is required in order for wide/multibyte
  2528. input and output to work properly. (DLR; buffered input/output
  2529. based on ideas from mutt 1.4.2.1; input of Unicode characters
  2530. in hexadecimal suggested by Michael Piefel)
  2531. - More steps toward wide character/multibyte character support.
  2532. New functions control_rep(), parse_char(), move_left(), and
  2533. move_right(); changes to do_left(), do_right(), do_delete(),
  2534. breakable(), break_line(), do_output(), get_buffer(),
  2535. unget_input(), actual_x(), strnlenpt(), display_string(),
  2536. titlebar(), statusbar(), onekey(), edit_add(),
  2537. do_replace_highlight(), and do_credits(). (David Benbennick
  2538. and DLR)
  2539. - Overhaul the high-level input routines for the statusbar to
  2540. make them read the shortcut lists for functions instead of
  2541. manually running them, to make nanogetstr() less complex, and
  2542. to increase flexibility. Note that currshortcut is now used
  2543. regardless of #ifdefs, and that cutting text at the statusbar
  2544. now respects the CUT_TO_END flag. Changes to shortcut_init()
  2545. and nanogetstr(); new functions do_statusbar_input(),
  2546. do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(),
  2547. do_statusbar_right(), do_statusbar_left(),
  2548. do_statusbar_backspace(), do_statusbar_delete(),
  2549. do_statusbar_cut_text(), and do_statusbar_output(). (DLR)
  2550. - Even more steps toward wide character/multibyte character
  2551. support. Movement and cursor display at the statusbar prompt
  2552. should now (mostly) work properly with a string containing
  2553. multibyte characters, and text display of such strings should
  2554. now (mostly) work properly as well. Changes to search_init(),
  2555. nanoget_repaint(), do_statusbar_right(), do_statusbar_left(),
  2556. do_statusbar_backspace(), and do_statusbar_delete(). (David
  2557. Benbennick and DLR)
  2558. - Implement cutting from the current position to the end of the
  2559. file, using Ctrl-X from the search prompt and Meta-T from the
  2560. edit window. New function do_cut_till_end(). Note that this
  2561. is disabled when NANO_SMALL is defined. (DLR, based on ideas
  2562. from a patch for Pico by Eduardo Chappa, suggested by Ryan
  2563. Dlugosz and Paul Adams)
  2564. - Implement verbatim input for the statusbar prompt. Changes to
  2565. do_statusbar_input() and do_statusbar_output(); new functions
  2566. keys_to_buffer(), unparse_kbinput(), and
  2567. do_statusbar_verbatim_input(). (DLR)
  2568. - Yet more steps toward full wide character/multibyte character
  2569. support. Overhaul the functions that already have support for
  2570. them to work with multibyte strings as much as possible, add
  2571. support to a few more functions as well, and move multibyte
  2572. character-specific functions to their own source file. New
  2573. file chars.c; new functions is_alnum_char(),
  2574. is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(),
  2575. is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(),
  2576. control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(),
  2577. make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(),
  2578. mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr();
  2579. changes to help_init(), do_wrap(), break_line(), is_byte()
  2580. (moved to chars.c), is_blank_char() (moved to chars.c),
  2581. is_cntrl_char() (moved to chars.c), nstricmp() (renamed
  2582. nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed
  2583. nstrncasecmp() and moved to chars.c), nstristr() (renamed
  2584. nstrcasestr() and moved to chars.c), revstrstr() (moved to
  2585. chars.c), revstristr() (renamed revstrcasestr() and moved to
  2586. chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed
  2587. parse_mbchar() and moved to chars.c), move_left() (renamed
  2588. move_mbleft() and moved to chars.c), move_right() (renamed
  2589. move_mbright() and moved to chars.c), do_home(),
  2590. do_verbatim_input(), do_delete(), do_tab(), do_enter(),
  2591. indent_length(), do_next_word(), do_prev_word(), do_wrap(),
  2592. do_input(), do_output(), is_whole_word(), strstrwrapper(),
  2593. get_buffer(), unget_input(), unget_kbinput(), get_input(),
  2594. parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(),
  2595. do_statusbar_input(), do_statusbar_home(),
  2596. do_statusbar_verbatim_kbinput(), do_statusbar_output(),
  2597. do_help(), help_line_len(), and display_string(); removal of
  2598. buffer_to_keys() and keys_to_buffer(). (DLR)
  2599. - Add -O/--morespace command line option, plus a corresponding
  2600. Meta-O toggle and a "morespace" rcfile option. When these are
  2601. used, the normally-unused blank line below the titlebar will
  2602. be treated as part of the edit window. New functions
  2603. no_more_space() and blank_topbar(); changes to global_init(),
  2604. window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
  2605. get_mouseinput(), etc. (DLR; suggested by Mike Frysinger,
  2606. Rocco, and Robert Schultz)
  2607. - Add support for moving to the next or previous word at the
  2608. statusbar prompt. New functions do_statusbar_next_word() and
  2609. do_statusbar_prev_word(); changes to do_statusbar_input().
  2610. (DLR)
  2611. - Make resizing more flexible. We now can work with as few as
  2612. one row, and with no limit on the number of columns (except of
  2613. course the curses-imposed limit that it be greater than zero).
  2614. New function resize_variables(); changes to die_too_small()
  2615. (renamed check_die_too_small()), global_init(), window_init(),
  2616. and handle_sigwinch(). (David Benbennick)
  2617. - Use void instead of RETSIGTYPE, as signal handlers are
  2618. supposed to return void anyway. Also, the value of RETSIGTYPE
  2619. is sometimes misdetected as int, leading to compilation
  2620. warnings or errors. Changes to cancel_fork(),
  2621. handle_hupterm(), do_suspend(), and do_cont(). (David
  2622. Benbennick)
  2623. - Change flags to an unsigned long, and totsize to a size_t.
  2624. (DLR)
  2625. - Store the number of multibyte characters instead of the number
  2626. of single-byte characters in totsize, and use get_totals() to
  2627. get the value of totsize in a few more places. Changes to
  2628. read_line(), read_file(), do_delete(), do_input(),
  2629. get_totals(), and do_cursorpos(). (DLR)
  2630. - Overhaul the tab completion code, the file browser code, and
  2631. related functions to increase efficiency and support multibyte
  2632. characters. New function is_dir(); changes to
  2633. get_full_path(), check_writable_directory(), safe_tempnam(),
  2634. diralphasort(), username_tab_completion(),
  2635. cwd_tab_completion(), input_tab(), tail(), striponedir(),
  2636. browser_init(), do_browser(), and do_browse_from(); removal of
  2637. append_slash_if_dir(), readable_dir(), and
  2638. check_wildcard_match(). (David Benbennick) DLR: Move the
  2639. routine to get the current user's home directory into the new
  2640. function get_homedir(), and use it where necessary. Also add
  2641. a few miscellaneous tweaks.
  2642. - Overhaul the rcfile parsing code to make it simpler and more
  2643. accurate, remove now-redundant checks from the color code,
  2644. change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle,
  2645. and improve various debugging messsages. Changes to
  2646. set_colorpairs(), do_colorinit(), parse_next_word(),
  2647. parse_argument(), colortoint(), parse_next_regex(),
  2648. parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(),
  2649. etc. (David Benbennick) DLR: Rename colortoint() to
  2650. color_to_int(), and add a few miscellaneous tweaks.
  2651. - Overhaul the paragraph-searching code to make it use the
  2652. paragraph-searching utility functions when possible instead of
  2653. duplicating code. Also overhaul the justify code to make it
  2654. leave the right number of spaces at the ends of the lines of a
  2655. paragraph, to make it support multibyte characters, and to
  2656. make it simpler. Also, don't remove a space after a duplicate
  2657. character in punct anymore, as it doesn't really make us more
  2658. compatible with Pico. New functions mbstrchr(),
  2659. do_para_begin_void(), and do_para_end_void(); changes to
  2660. justify_format(), do_para_begin(), inpar(), do_para_end(),
  2661. break_line(), do_para_search() (renamed find_paragraph()), and
  2662. do_justify(); removal of breakable(). (DLR)
  2663. - Still more steps toward full wide/multibyte character support.
  2664. Make sure all rcfile arguments are valid multibyte strings,
  2665. make whitespace display mode work with multibyte characters,
  2666. and add a few related documentation updates. New function
  2667. make_mbstring(); changes to make_mbchar(), make_mbstring(),
  2668. main(), parse_rcfile(), display_string(), and do_help(). (DLR)
  2669. - cut.c:
  2670. do_cut_text()
  2671. - If keep_cutbuffer is FALSE, only blow away the text in the
  2672. cutbuffer if the cutbuffer isn't empty. (DLR)
  2673. do_uncut_text()
  2674. - No longer duplicate Pico's adding an extra magicline to the
  2675. file if uncutting leaves the cursor on the current one. This
  2676. behavior appears to be a bug, as inserting a file in the same
  2677. manner doesn't add an extra magicline. (DLR)
  2678. - files.c:
  2679. get_full_path()
  2680. - Remove unneeded NANO_SMALL #ifdef, so that it's included
  2681. whenever its prototype is, and so it can compile when
  2682. DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR)
  2683. do_browser()
  2684. - Refresh the screen when Ctrl-L is pressed in the file browser,
  2685. as Pico does. (DLR)
  2686. - global.c:
  2687. shortcut_init()
  2688. - Fix misplaced #endif keeping the "Full Justify" shortcut in
  2689. the search shortcut list from being included when NANO_SMALL
  2690. is defined but DISABLE_JUSTIFY isn't. (DLR)
  2691. - Use NULL instead of 0 when a shortcut has no associated
  2692. function. (DLR)
  2693. thanks_for_all_the_fish()
  2694. - Free the justify buffer if it isn't empty. (DLR)
  2695. - nano.c:
  2696. help_init()
  2697. - Clarify the text describing double-escape character input.
  2698. Since ASCII is technically only seven bits wide, characters
  2699. 128-255 aren't ASCII. (DLR, suggested by Michael Piefel)
  2700. do_toggle()
  2701. - When we get the whitespace display toggle, update the titlebar
  2702. as well as the edit window, in case the filename displayed on
  2703. the titlebar contains spaces or tabs. (DLR)
  2704. handle_sigwinch()
  2705. - If the justify buffer isn't empty, blow it away and don't
  2706. display "UnJustify" in the shortcut list anymore. (DLR)
  2707. usage()
  2708. - Typo fix. (DLR)
  2709. do_wrap()
  2710. - Make wrap_loc and word_back ssize_t's, to match fill. (DLR)
  2711. break_line()
  2712. - Fix compilation problem caused by its returning int when it
  2713. should return ssize_t according to its prototype. (Jeremy
  2714. Huddleston)
  2715. indent_length()
  2716. - Make the #ifdef around it match that of its prototype to avoid
  2717. compilation problems when compiling with --enable-tiny and
  2718. without DISABLE_JUSTIFY's being defined. (DLR)
  2719. do_justify()
  2720. - For consistency, preserve placewewant if we didn't unjustify
  2721. instead of setting it to 0. (DLR)
  2722. - When justifying the entire file, properly break out of the
  2723. loop if we've found at least one paragraph, there are no more
  2724. paragraphs after the current one, and the paragraph search
  2725. left us on the magicline. This avoids a segfault. (DLR)
  2726. do_input()
  2727. - Add finished parameter, used to indicate when we run or try to
  2728. run a function associated with a shortcut. (DLR)
  2729. main()
  2730. - Try to automatically detect whether UTF-8 support is needed by
  2731. setting the NO_UTF8 flag if setlocale() returns a string that
  2732. doesn't contain "UTF8" or "UTF-8", case insensitively. When
  2733. using slang 2.x, enable UTF-8 support with SLutf8_enable().
  2734. (DLR, string checks beyond case-sensitive "UTF-8" adapted from
  2735. Debian's UTF-8 patch for slang)
  2736. - nano.h:
  2737. - Remove now-unneeded #defines for functions that now have
  2738. multibyte equivalents. (DLR)
  2739. - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick)
  2740. - utils.c:
  2741. regexec_safe()
  2742. - Remove redundant regexec #define, and move the regexec #undef
  2743. to nano.h. (DLR)
  2744. is_blank_char()
  2745. - Rewrite to use ctype functions instead of checking directly
  2746. for spaces and tabs. (DLR)
  2747. revstrstr(), revstristr()
  2748. - Add asserts. (DLR)
  2749. - winio.c:
  2750. get_buffer()
  2751. - If we get ERR when using blocking input, it means that the
  2752. input source that we were using is gone. In this case, call
  2753. handle_hupterm(), so that nano dies gracefully instead of
  2754. going into an infinite loop. (DLR, found by Jim Uhl)
  2755. titlebar()
  2756. - Rename some variables for consistency, make space an int
  2757. instead of a size_t, properly handle the case where the prefix
  2758. length plus the path length is greater than the amount of
  2759. space available, and fix a typo in an assert. (DLR)
  2760. unget_kbinput()
  2761. - Remove the wide character handling, as it didn't work properly
  2762. with respect to function keys. (DLR)
  2763. get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(),
  2764. get_untranslated_kbinput()
  2765. - Make the ascii_digits variables ints instead of size_t's,
  2766. since they will only hold very small values. (DLR)
  2767. get_kbinput()
  2768. - Remove the wide character handling, as it didn't work properly
  2769. with respect to adding multiple wide characters at once, and
  2770. ungetting them just caused other problems elsewhere. (DLR)
  2771. get_translated_kbinput()
  2772. - Remove the wide character handling, as it didn't work properly
  2773. with respect to adding multiple wide characters at once, and
  2774. ungetting them just caused other problems elsewhere. (DLR)
  2775. - Use if statements instead of switch/case statements to handle
  2776. ASCII character sequence mode, as they take up less room.
  2777. get_ascii_kbinput()
  2778. - Use if statements instead of switch/case statements to handle
  2779. ASCII character sequence mode, as they take up less room.
  2780. get_verbatim_kbinput()
  2781. - Don't pass v_kbinput in as a parameter, since we're
  2782. dynamically allocating it and then returning it. (DLR)
  2783. - Remove v_first parameter, and go back to the old behavior of
  2784. putting back the first character of the escape sequence, as it
  2785. worked just as well and was less complicated. (DLR)
  2786. get_mouseinput()
  2787. - Return TRUE instead of FALSE only when we have a control key,
  2788. a prinary meta key sequence, or both. (DLR)
  2789. get_shortcut()
  2790. - Add a debug message. (DLR)
  2791. - Take kbinput as a reference instead of a value, so that it's
  2792. translated when the key is translated to its equivalent
  2793. control key or meta key shortcut. (DLR)
  2794. - Return s instead of NULL only when we have a control key, a
  2795. prinary meta key sequence, or both. (DLR)
  2796. get_toggle()
  2797. - Add a debug message. (DLR)
  2798. bottombars()
  2799. - Initialize foo, in case a keystroke meets none of the handled
  2800. cases. (DLR)
  2801. total_refresh()
  2802. - Refresh bottomwin using the value of currshortcut, and change
  2803. the code around do_refresh() calls to accommodate this. (DLR)
  2804. - Split out the code that updates the screen before refreshing
  2805. it into the new function total_redraw().
  2806. do_help()
  2807. - Refresh the screen when Ctrl-L is pressed in the help browser,
  2808. as Pico does. (DLR)
  2809. - configure.ac:
  2810. - Remove specific references to control key shortcuts. (DLR)
  2811. - Check for the wide versions of ncurses or slang, without which
  2812. multibyte strings don't seem to be displayed properly, and
  2813. associated multibyte/wide character functions. (DLR)
  2814. - Check for wchar.h, for those systems that need it for the
  2815. wcwidth() prototype. (DLR)
  2816. - Remove checks for all include files that we include
  2817. unconditionally. (DLR)
  2818. - Remove references to termio.h here and elsewhere, since it's
  2819. obsolete and it defines a struct termio that we don't use
  2820. anywhere. (DLR)
  2821. - Typo fixes. (DLR)
  2822. - Add checks for isascii(), iswalnum(), iswblank() or
  2823. iswspace(), mblen(), and wctype.h. (DLR)
  2824. - README:
  2825. - Updated for the 1.3 branch. (DLR)
  2826. - README.CVS:
  2827. - Updated to mention the need for a wide character-supporting
  2828. version of curses or slang if UTF-8 support is desired. (DLR)
  2829. - doc/faq.html:
  2830. - Remove now-inaccurate note about verbatim input's not working
  2831. at prompts, and update its description to mention that it
  2832. handles hexadecimal values now. (DLR)
  2833. - Add question about opening files with names beginning with
  2834. '+'s, and add a few more miscellaneous cosmetic fixes.
  2835. - nanorc.sample:
  2836. - Add return to the "c-file" regexes. (DLR)
  2837. - Clarify the text describing good values for whitespace
  2838. display. Since ASCII is technically only seven bits wide,
  2839. characters 128-255 aren't ASCII. (DLR, suggested by Michael
  2840. Piefel)
  2841. - Add the "morespace" option. (DLR)
  2842. - Add support for characters to the "c-file" regexes. (DLR)
  2843. - Add the hexadecimal equivalents of the decimal values
  2844. suggested for whitespace display, now that it can handle
  2845. multibyte characters. (DLR)
  2846. - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR)
  2847. - nano.1. nanorc.5, nano.texi:
  2848. - Add the "morespace" option, and sync with the descriptions in
  2849. nanorc.sample in a few places. (DLR)
  2850. - Miscellaneous wording tweaks. (DLR)
  2851. - src/Makefile.am:
  2852. - Add chars.c to nano_SOURCES. (DLR)
  2853. - If we're installing and the "rnano" symlink already exists,
  2854. remove it so that we can create it again without an error.
  2855. (DLR)
  2856. - AUTHORS:
  2857. - Updated to mention UTF-8 support.
  2858. GNU nano 1.3.5 - 2004.11.22
  2859. - General:
  2860. - Convert more ints that hold only TRUE and FALSE values to
  2861. bools. (DLR)
  2862. - Consolidate the code for finding and running a shortcut in a
  2863. shortcut list, the code for finding and toggling a toggle in a
  2864. toggle list, and the code for doing both of those and
  2865. interpreting mouse clicks in the edit window. Also move the
  2866. code for do_mouse() to get_edit_mouse() and tweak it to
  2867. properly handle cases where a shortcut isn't clicked. New
  2868. functions get_shortcut(), get_toggle(), get_edit_input(), and
  2869. get_edit_mouse(); changes to do_browser(), do_justify(),
  2870. do_help(), and main(). (DLR)
  2871. - Simplify a few more translated messages. (DLR)
  2872. - Translation updates (see po/ChangeLog for details).
  2873. - Remove reference to @includedir@ in src/Makefile.am, as it's
  2874. unneeded and can break cross-compilation. (DLR, found by Mike
  2875. Frysinger)
  2876. - Overhaul the file opening, reading, and loading operations to
  2877. increase efficiency, avoid problems on invalid filenames
  2878. specified on the command line, and eliminate corner cases that
  2879. erroneously leave edittop or current NULL when they shouldn't
  2880. be. Also split out the code to execute a command into a
  2881. separate function, eliminate a workaround for one of the
  2882. aforementioned corner cases, handle files with a mix of DOS
  2883. and Mac format lines, and remove the code to turn on the
  2884. NO_CONVERT flag when opening a binary file, as it's not always
  2885. reliable and will cause problems with UTF-8 text files. New
  2886. functions open_file(), execute_command(), and mallocstrassn();
  2887. changes to read_line(), load_file(), read_file(), open_file(),
  2888. get_next_filename(), do_insertfile(), do_insertfile_void(),
  2889. do_alt_speller(), and edit_refresh(). (David Benbennick) DLR:
  2890. Add a few minor fixes to make sure that current is set
  2891. properly in all cases, indicate on the statusbar when the file
  2892. has a mix of DOS and Mac format lines, move the test for DOS
  2893. line endings from read_line() to read_file() to avoid
  2894. inaccurate statusbar messages and to reduce fileformat to a
  2895. local variable in read_file(), eliminate another workaround in
  2896. edit_update(), rename open_the_file() to open_file() since the
  2897. latter has been removed, and rename load_a_file() to
  2898. load_buffer().
  2899. - Add alternative shortcuts to the main and search shortcut
  2900. lists for moving to the beginning and end of a paragraph and
  2901. justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0),
  2902. and Meta-J, respectively. Do this because Pico's practice of
  2903. putting these shortcuts only in the search shortcut list is
  2904. rather odd. (DLR)
  2905. - Turn off extended input processing (the IEXTEN termios flag)
  2906. as nano 1.2.x does. New function disable_extended_input();
  2907. changes to terminal_init(). (DLR)
  2908. - Remove redundant include of limits.h from nano.c. nano.c
  2909. includes nano.h and nano.h includes limits.h. (DLR)
  2910. - Add a func_key flag to the low-level input functions and the
  2911. currently existing high-level input functions, to indicate
  2912. extended keypad values. This is needed for UTF-8 support.
  2913. Changes to unget_kbinput(), get_kbinput(),
  2914. get_translated_kbinput(), get_shortcut(), get_edit_input(),
  2915. etc. (DLR)
  2916. - Add a multibuffer mode toggle to the "Execute Command" prompt,
  2917. for consistency with the "Read File" prompt. Changes to
  2918. do_insertfile() and shortcut_init(). (DLR)
  2919. - Add an ^X toggle to the "Execute Command" prompt to go back to
  2920. the "Insert File" prompt, and add a ^T toggle to the "Go To
  2921. Line" prompt to go back to the "Where Is" prompt. Changes to
  2922. do_insertfile(), shortcut_init(), do_gotoline(), etc.
  2923. - Make sure a few uninitialized static variables are initialized
  2924. to sane values. (DLR)
  2925. - After reading in a file and detecting the format it's in, set
  2926. the file format flags (DOS_FILE and MAC_FILE) to match, and
  2927. preserve them across multiple file buffers. Changes to
  2928. read_file(), add_open_file(), and load_open_file(). (DLR,
  2929. suggested by Bill Soudan)
  2930. - Remove the -D/--dos and -M/--mac command line options, as they
  2931. aren't much use with the new file format autodetection. Also
  2932. remove the global versions of the toggles, so that they can
  2933. only be used at the "Write File" prompt as similar options
  2934. can. Finally, change the Mac format toggle to Meta-M, since
  2935. that no longer conflicts with the global -m/--mouse toggle.
  2936. (DLR)
  2937. - Add support for reading in UTF-8 sequences to the low-level
  2938. input routines. Changes to get_kbinput() and
  2939. get_translated_kbinput(). (DLR)
  2940. - Reduce search_last_line to a static variable in search.c, and
  2941. allow it to be set to FALSE via a function. New function
  2942. findnextstr_wrap_reset(); changes to do_int_spell_fix(),
  2943. findnextstr(), do_search(), do_research(), do_replace_loop(),
  2944. do_replace(), and do_find_bracket(). (DLR, problem with making
  2945. search_last_line local to findnextstr() found by Rocco)
  2946. - When saving or changing file positions, be sure not to ignore
  2947. placewewant. Changes to do_int_spell_fix(), findnextstr(),
  2948. do_replace_loop(), and do_replace(). (DLR)
  2949. - Convert current_x and mark_beginx to size_t's, and convert
  2950. some functions that use them as a parameter to use size_t as
  2951. well. Also change some related assertions to handle them.
  2952. (David Benbennick and DLR)
  2953. - Add code to partition a filestruct between a set of arbitrary
  2954. coordinates. Given the coordinates of the beginning and end
  2955. of the mark, this allows proper and easier handling of saving
  2956. marked selections, replacing text only in marked selections
  2957. (suggested by Joseph Birthisel), and spell-checking marked
  2958. selections using either the internal or alternate spell
  2959. checker. Do all these using a global partition structure.
  2960. New functions partition_filestruct(),
  2961. unpartition_filestruct(), remove_magicline(), and
  2962. get_totals(); changes to write_marked(), do_int_spell_fix(),
  2963. do_alt_speller(), handle_sigwinch(), and do_replace_loop().
  2964. (DLR)
  2965. - Remove most redundant includes of sys/stat.h. It's included
  2966. in nano.h, so it doesn't need to be included in files that
  2967. include nano.h. (DLR)
  2968. - Remove the DOS_FILE and MAC_FILE flags, as they're only used
  2969. in files.c, and replace them with a static file_format enum.
  2970. Change the openfilestruct structure accordingly in order to
  2971. handle this. (DLR)
  2972. - Convert some ints with predefined boundaries to enums. (DLR)
  2973. - Include config.h only if HAVE_CONFIG_H. (Jordi)
  2974. - cut.c:
  2975. cut_marked_segment()
  2976. - Respect concatenate_cut, as we need to use it if we do a
  2977. marked cut and immediately follow it with a cut-to-end (which
  2978. uses this function). (DLR)
  2979. do_cut_text()
  2980. - Set concatenate_cut to TRUE unconditionally when doing a
  2981. marked cut. This fixes an incompatibility with Pico where an
  2982. extra line is uncut if we do a marked cut that includes the
  2983. magicline and immediately follow it with an unmarked cut.
  2984. (DLR)
  2985. do_uncut_text()
  2986. - Maintain current_y's value when uncutting blocks so that
  2987. smooth scrolling works correctly. (DLR)
  2988. - files.c:
  2989. read_file()
  2990. - Rename variable fileformat to format, to avoid confusion with
  2991. the file_format enum type. (DLR)
  2992. load_buffer()
  2993. - Don't change the file format when we insert another file into
  2994. the current one. (DLR)
  2995. do_insertfile()
  2996. - Simplify by reusing variables whereever possible, and add a
  2997. parameter execute to indicate whether or not to be in "Execute
  2998. Command" mode. (DLR)
  2999. - Rework so that goto is no longer needed, using do_writeout()
  3000. as a model. (DLR)
  3001. - If file browsing succeeds, call statusq_abort() so that the
  3002. cursor position at the statusbar is reset. (DLR)
  3003. - Add missing #ifdefs around the wrap_reset() call so that nano
  3004. compiles with wrapping disabled again. (DLR)
  3005. - If we're not inserting a file into a new buffer, partition the
  3006. current buffer so that it's effectively a new buffer just
  3007. before inserting the file, and only restore placewewant
  3008. afterwards. This is the same behavior we would get if we
  3009. opened the file, added all of it to the cutbuffer, closed the
  3010. file, and uncut at the current cursor position. (DLR)
  3011. - Maintain current_y's value when inserting so that smooth
  3012. scrolling works correctly. (DLR)
  3013. do_writeout()
  3014. - Restructure if blocks for greater efficiency, using
  3015. do_insertfile() as a model. (DLR)
  3016. - Simplify where possible, and use an int retval to hold the
  3017. return value instead of i. (DLR)
  3018. - If file browsing succeeds, call statusq_abort() so that the
  3019. cursor position at the statusbar is reset. (DLR)
  3020. - Remove unneeded calls to display_main_list(). (DLR)
  3021. do_writeout_void()
  3022. - Call display_main_list(), for consistency with
  3023. do_insertfile_void(). (DLR)
  3024. write_file()
  3025. - If we've tried to write to an unwritable file and we're not
  3026. prepending, tempname is NULL when it's passed to unlink().
  3027. This can cause problems if unlink() can't handle NULL, so
  3028. don't call it in that case. (David Benbennick)
  3029. write_marked()
  3030. - Remove check for MARK_ISSET's not being set. (DLR)
  3031. open_prevfile(), open_nextfile()
  3032. - Translate the "New Buffer" string when displaying "Switched
  3033. to" messages on the statusbar. (DLR)
  3034. input_tab()
  3035. - Fix snprintf() call so that we don't segfault when trying to
  3036. complete a filename containing %'s. (Ulf Härnhammar)
  3037. - global.c:
  3038. shortcut_init()
  3039. - Remove redundant NANO_SMALL #ifdef. (DLR)
  3040. - Change an erroneous _() around the "New Buffer" string to
  3041. N_(). (DLR)
  3042. - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for
  3043. "Where Is Next" (Chris).
  3044. - Leave "Mark Text" and "Where Is Next" out entirely when
  3045. NANO_SMALL is defined. Since they aren't in the visible main
  3046. list, there's no point in having them in but disabled. (DLR)
  3047. - In the search prompt shortcut list, move "Full Justify" to
  3048. after "History", so that the latter is visible onscreen
  3049. again. (DLR)
  3050. - nano.c:
  3051. die_save_file()
  3052. - Clarify the error message when there are too many backup files
  3053. and the current one can't be written. (DLR)
  3054. help_init()
  3055. - Rework to be a bit more flexible. Only add tabs for shortcut
  3056. key entries if those entries exist, and if there's only one
  3057. entry left but there's room for more than one, add enough tabs
  3058. to put that entry at the end. Also, make sure a function key
  3059. is displayed in the middle if it's the first entry. These
  3060. changes allow e.g. the miscellaneous meta key sequence to be
  3061. displayed in a shortcut that has a control key, a primary meta
  3062. key sequence, and a miscellaneous meta key sequence, but no
  3063. function key. (DLR)
  3064. - Update the help text to mention replacing and spell checking
  3065. only selected text, and also add a few cosmetic fixes to it.
  3066. (DLR)
  3067. - Update the help text to mention how to get a blank buffer at
  3068. the "Execute Command" prompt. (DLR)
  3069. do_prev_word()
  3070. - Tweak to avoid an infinite loop, since current_x is now a
  3071. size_t and hence is unsigned. (DLR)
  3072. do_int_spell_fix()
  3073. - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL
  3074. #ifdef, since the tiny version of nano doesn't support reverse
  3075. searching. Move the CASE_SENSITIVE flag toggling out in order
  3076. to allow the internal spell checker to work properly when
  3077. NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
  3078. the USE_REGEXP flag off during spell checking in order to
  3079. avoid a potential segfault. (DLR)
  3080. - Fix a problem where if the cursor is in the middle of a file,
  3081. the spell checker will sometimes only correct the misspelled
  3082. word instances that appear before the cursor position and then
  3083. stop. (Rocco)
  3084. - Use do_replace_loop()'s canceled parameter in order to ensure
  3085. that the spell checking stops if we canceled at the replace
  3086. prompt. (DLR)
  3087. do_alt_speller()
  3088. - Call terminal_init() unconditionally after running the
  3089. alternate spell checker, so that the terminal state is
  3090. properly restored in all cases. (DLR)
  3091. justify_format()
  3092. - For more compatibility with Pico, remove extra space after a
  3093. character in punct if that character is the same as the one
  3094. before it. For example, with the default values of punct and
  3095. brackets, only one space will be left after "...". (DLR)
  3096. do_para_begin(), do_para_end()
  3097. - Maintain current_y's value when moving up or down lines so
  3098. that smooth scrolling works correctly. (DLR)
  3099. breakable(), break_line()
  3100. - Make goal a ssize_t instead of an int, since fill is now a
  3101. ssize_t, and the position at which a line is broken can be
  3102. greater than COLS. (DLR)
  3103. main()
  3104. - Tweak the command line parsing routine so that multiple +LINE
  3105. flags are properly interpreted in multibuffer mode. (DLR)
  3106. - nano.h:
  3107. - Add WIDTH_OF_TAB #define, containing the default width of a
  3108. tab. (DLR)
  3109. - Move the PATH_MAX #define here from files.c.
  3110. - Remove unused COPYFILEBLOCKSIZE #define. (DLR)
  3111. - proto.h:
  3112. - Add missing NANO_SMALL #ifdef around the cut_marked_segment()
  3113. prototype. (DLR)
  3114. - rcfile.c:
  3115. parse_rcfile()
  3116. - Add missing brackets around an if statement block so that
  3117. parsing the numeric argument after "tabsize" works properly
  3118. again. (DLR, found by Mike Frysinger)
  3119. - Since flag values are longs, use "%ld" instead of "%d" in the
  3120. debugging messages indicating when a flag is set or unset.
  3121. (DLR)
  3122. - search.c:
  3123. regexp_init()
  3124. - If NANO_SMALL is defined, don't bother checking the
  3125. CASE_SENSITIVE flag or using its value when compiling a list
  3126. of matching regular expressions. (DLR)
  3127. search_init()
  3128. - Add parameter use_answer. When it's TRUE, only set
  3129. backupstring to answer. This is needed to preserve the text
  3130. of the statusbar when switching to the search prompt from
  3131. the "Go To Line" prompt. Also, set backupstring before doing
  3132. anything else, add one minor efficiency tweak, and preserve
  3133. the text of the statusbar no matter what when switching from
  3134. the search prompt to the "Go To Line" prompt, since the
  3135. toggling works both ways now and non-numeric text shouldn't be
  3136. lost when going only one of those ways. (DLR)
  3137. - When we're replacing and the mark is on, display a prompt
  3138. indicating that we're replacing text only in the selection
  3139. instead of the usual prompt. (DLR)
  3140. findnextstr()
  3141. - Take the no_sameline parameter after can_display_wrap and
  3142. wholewords, not after all other parameters. (DLR)
  3143. - Maintain current_y's value when moving up or down lines so
  3144. that smooth scrolling works correctly. (DLR)
  3145. - Fix handling of the wholewords flag so that it works with
  3146. regular expressions and in conjunction with the no_sameline
  3147. flag, and add new parameter needle_len (used to return the
  3148. length of the match). (DLR)
  3149. do_replace_loop()
  3150. - Miscellaneous cleanups: treat real_current as current and
  3151. real_current_x as current_x, only turn the mark off and call
  3152. edit_refresh() if the mark was originally on, and make
  3153. length_change a ssize_t. (DLR)
  3154. - Return ssize_t instead of int. (DLR)
  3155. - Add new parameter canceled, set to TRUE if we canceled at the
  3156. prompt and FALSE otherwise. (DLR)
  3157. - utils.c:
  3158. regexp_bol_or_eol()
  3159. - Don't assume any longer that string will be found if
  3160. REG_NOTBOL and REG_NOTEOL are not set. (DLR)
  3161. mallocstrncpy()
  3162. - New function, used as a malloc()ing equivalent of strncpy().
  3163. (DLR)
  3164. mallocstrcpy()
  3165. - Refactor to be a wrapper for mallocstrncpy(). (DLR)
  3166. mark_order()
  3167. - Add new parameter right_side_up. Set it to TRUE If the mark
  3168. begins with (mark_beginbuf, mark_beginx) and ends with
  3169. (current, current_x), or FALSE otherwise. (DLR)
  3170. - winio.c:
  3171. unget_kbinput()
  3172. - New function used as a wrapper for ungetch(). (DLR)
  3173. get_kbinput()
  3174. - When reading an escape sequence, set get_verbatim_kbinput()'s
  3175. new first parameter to the first character of the sequence
  3176. instead of putting that character back and reading the entire
  3177. sequence afterwards. (DLR)
  3178. get_escape_seq_kbinput()
  3179. - Make the escape_seq parameter a const int*, since it's never
  3180. modified. (DLR)
  3181. - Support the escape sequences for F15 and F16. (DLR)
  3182. get_verbatim_kbinput()
  3183. - Add new parameter first. If first isn't ERR, make it the
  3184. first character in the returned sequence instead of reading
  3185. the first character in via blocking input. (DLR)
  3186. get_mouseinput()
  3187. - Consolidate two if statements to increase efficiency. (DLR)
  3188. - Check kbinput against metaval instead of (erroneously) ctrlval
  3189. when putting back a meta sequence. (DLR)
  3190. - If there are more than MAIN_VISIBLE shortcuts available, only
  3191. register clicks on the first MAIN_VISIBLE shortcuts, since
  3192. bottombars() only shows that many shortcuts. (DLR)
  3193. check_statblank()
  3194. - Rename to check_statusblank(), and rename its associated
  3195. global int statusblank too. (DLR)
  3196. nanogetstr()
  3197. - Refresh the screen when Ctrl-L is pressed at the statusbar
  3198. prompt, as Pico does. (DLR)
  3199. - Always return the key pressed by the user. (DLR)
  3200. statusq()
  3201. - Rework slightly to reset the cursor position when the user
  3202. hits Enter as well as Cancel. This means that resetstatuspos
  3203. no longer needs to be global. (DLR)
  3204. statusq_abort()
  3205. - New function to set resetstatuspos to FALSE when we don't
  3206. properly exit the statusbar prompt, e.g. when we get a file
  3207. from the file browser). (DLR)
  3208. bottombars()
  3209. - For efficiency, no longer dynamically allocate space for each
  3210. visible shortcut, as they're all of a constant short length.
  3211. (David Benbennick)
  3212. reset_cursor()
  3213. - If this is called before any files have been opened, as it can
  3214. be by statusbar(), put the cursor at the top left corner of
  3215. the edit window before getting out. (DLR)
  3216. edit_refresh()
  3217. - Call edit_update() with NONE instead of CENTER when smooth
  3218. scrolling is on, for consistency with the movement routines.
  3219. (DLR)
  3220. edit_update()
  3221. - Simplify so as not to require the fileptr parameter anymore,
  3222. since it's set to current in all calls. (DLR)
  3223. - Add comments better explaining what the update actually does,
  3224. and avoid an infinite loop when location is NONE and current_y
  3225. is greater than (editwinrows - 1). (DLR)
  3226. do_yesno()
  3227. - Don't bother assigning the value of get_mouseinput() to
  3228. anything. Since allow_shortcuts is FALSE, its return value
  3229. will always be FALSE. (DLR)
  3230. - configure.ac:
  3231. - When calling AC_TRY_RUN() to test for a broken regexec()
  3232. function, set the fourth parameter to default to "no" (since
  3233. it apparently only occurs on glibc 2.2.3-based systems) so
  3234. that cross-compiling will work. (DLR, found by Mike Frysinger)
  3235. - Simplify the curses library tests by only checking for
  3236. initscr(), which ncurses, curses, and pdcurses should all
  3237. have, and not tgetent(), which is a termcap-specific function.
  3238. (DLR)
  3239. - Check only for glib 2.x, as it's much more common than
  3240. glib 1.2.x now, and it has a better v?snprintf()
  3241. implementation. (DLR, suggested by Jordi)
  3242. - nanorc.sample:
  3243. - Remove specific references to control key shortcuts other than
  3244. XON and XOFF. (DLR)
  3245. - Add continue and goto to the "c-file" regexes. (DLR)
  3246. - Change the included speller value to "aspell -x -c". The -x
  3247. option makes aspell not create backup files, and this is
  3248. consistent with the internal spell checker's behavior. (DLR)
  3249. - doc/man/fr/nano.1, doc/man/fr/nanorc.1:
  3250. - Updated manpage translations by Jean-Philippe Guérard.
  3251. - README.CVS:
  3252. - Mention the requirement for glib 2.x on systems lacking
  3253. v?snprintf(), and add minor formatting changes.
  3254. - Mention the requirement for groff in order to create html
  3255. versions of the manpages. (DLR)
  3256. - Update the given cvs commands so that they work again, and
  3257. mention the need for ssh to do cvs checkouts. (DLR)
  3258. - List sh as an example of a Bourne shell. (DLR)
  3259. - faq.html:
  3260. - Fixed inaccuracy: Pico compatibility mode was made the default
  3261. in nano 1.1.99pre1, not 1.2.2. (DLR)
  3262. - Added question about how to type F13-F16 on terminals lacking
  3263. keys past F12 (suggested by Chris), question about how to
  3264. select text for the clipboard in X terminals with nano's mouse
  3265. support turned on (answer found by Joseph Birthisel), and
  3266. miscellaneous fixes and link updates. (DLR)
  3267. - nano.1:
  3268. - Eliminate references to the now removed -D/--dos and -M/--mac
  3269. command line options. (DLR)
  3270. - nano.texi:
  3271. - Eliminate references to the now removed -D/--dos and -M/--mac
  3272. command line options, and their corresponding toggles. (DLR)
  3273. - m4/Makefile.am:
  3274. - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS
  3275. with automake 1.7.x again. For some reason, automake 1.9.x
  3276. didn't have a problem with its (erroneously) being left out.
  3277. (DLR, problem found by Chris)
  3278. - m4/glib-2.0.m4:
  3279. - New file imported from glib 2.4.7. This is needed to detect
  3280. glib 2.x on systems that may not have it installed. (DLR,
  3281. suggested by Jordi)
  3282. - src/Makefile.am:
  3283. - Don't use DEFS to define things. Use INCLUDES instead.
  3284. (Jordi)
  3285. GNU nano 1.3.4 - 2004.08.17
  3286. - General:
  3287. - More minor comment cleanups. (DLR)
  3288. - Convert more ints and functions using 0 and 1 to bools using
  3289. TRUE and FALSE. (David Benbennick and DLR)
  3290. - Change more instances of ints that have large enough upper
  3291. bounds and which can never be negative to size_t's, and
  3292. convert nano to handle them properly. (DLR)
  3293. - Convert the shortcut list functions and most related functions
  3294. to return void instead of int, as the return values of all
  3295. those functions are essentially unused. Changes to
  3296. sc_init_one(), shortcut_init(), etc. (David Benbennick and
  3297. DLR)
  3298. - Make flags and all variables meant to store the value of flags
  3299. longs for consistency. (David Benbennick)
  3300. - Rename the TEMP_OPT flags to TEMP_FILE, as it's more
  3301. descriptive. (DLR)
  3302. - Remove unused global variable search_offscreen. (David
  3303. Benbennick)
  3304. - Add new N_() macro to mark strings that aren't translated
  3305. immediately, and convert nano to use it in cases where the
  3306. translated string is stored in a const char*. Changes
  3307. to sc_init_one(), print1opt(), help_init(), rcfile_error(),
  3308. do_credits(), etc. (David Benbennick) DLR: Do this for
  3309. toggle_init_one() too.
  3310. - Minor tweaks and clarifications to some option descriptions.
  3311. (DLR)
  3312. - Overhaul the shortcut list and toggle list initialization
  3313. code for efficiency. Changes to shortcut_init() and
  3314. toggle_init(). (David Benbennick) DLR: Move "Cancel" to just
  3315. after "Get Help" in the file browser list, for consistency
  3316. with all the other lists, have the replace list accept all the
  3317. same function keys as the search list, and clarify a few
  3318. shortcut descriptions.
  3319. - Convert nano to use the new parse_num() function to read in
  3320. numeric values at the command line and in the rcfile, and
  3321. duplicate the messages used in the rcfile in the command line
  3322. for consistency. (David Benbennick) DLR: Tweak parse_num() to
  3323. parse ssize_t values instead of ints and to return a bool
  3324. indicating whether parsing succeeded. Convert tabsize,
  3325. wrap_at, and fill to ssize_t in order to work with
  3326. parse_num() properly and also to increase their capacity
  3327. while keeping the ability to hold negative numbers in case of
  3328. errors. Also exit instead of calling usage() in the event of
  3329. an invalid fill value, for consistency with how an invalid
  3330. tabsize value is handled. Finally, handle invalid tabsize
  3331. entries in the rcfile the same way as on the command line,
  3332. and reset tabsize and wrap_at to their default values if
  3333. invalid rcfile entries are specified for them.
  3334. - Remove several unnecessary reset_cursor() calls. (David
  3335. Benbennick)
  3336. - Include <sys/types.h> in proto.h. (David Benbennick) DLR:
  3337. Remove some redundant inclusions of <sys/types.h> elsewhere.
  3338. - Move the main terminal initialization functions, aside from
  3339. initscr(), into a new terminal_init() function, and convert
  3340. nano to use it. (DLR)
  3341. - Convert placewewant to a size_t, and convert some functions
  3342. that use it as a parameter to use size_t as well. (David
  3343. Benbennick and DLR)
  3344. - Overhaul the paragraph searching code and some of the justify
  3345. code to clarify it and fix a bug where searches from the
  3346. previous paragraph would move up too far. Also make
  3347. quotestr-related variables global so that they only have to be
  3348. compiled once, and remove the no-longer-needed IFREG() macro.
  3349. New functions begpar() and inpar(); changes to quote_length(),
  3350. quotes_match(), do_para_search(), do_para_begin(),
  3351. do_para_end(), and do_justify(). (David Benbennick)
  3352. - Readded the errors flag and moved the ending prompt from
  3353. rcfile_error() to parse_rcfile() so that we only get prompted
  3354. once for all errors instead of separately for each error.
  3355. (DLR) David Benbennick: Make sure that no rcfile error
  3356. messages end in newlines, and show the ending prompt if we
  3357. can't read the .nano_history file while starting nano.
  3358. - Don't treat the return value of strn?(case)?cmp() as boolean.
  3359. (DLR and David Benbennick)
  3360. - Automatically install a symlink "rnano" pointing to nano.
  3361. Changes to src/Marefile.am. (DLR)
  3362. - Move the static int pid to the beginning of nano.c with all
  3363. the other static variables. (DLR)
  3364. - Consolidate some if blocks to remove some redundant code.
  3365. (David Benbennick)
  3366. - Fix warnings when compiling with ENABLE_NLS undefined and with
  3367. the fwritable-strings option. (David Benbennick)
  3368. - Add various #ifdefs to fix warnings and compilation problems
  3369. when compiling with every option manually turned on, including
  3370. NANO_SMALL. (David Benbennick)
  3371. - Simplify some of the rcfile and statusbar error messages, and
  3372. make some of them more consistent. (David Benbennick and DLR)
  3373. - Change some functions to take const char*'s instead of char*'s
  3374. where possible. (David Benbennick)
  3375. - Tweak some #ifdefs around indent_length() and references to
  3376. fill_flag_used to avoid warnings when compiling with
  3377. --disable-wrapping, --disable-justify, or a combination of the
  3378. two. (DLR)
  3379. - Overhaul the routines used to read the rcfiles and history
  3380. files for efficiency, make them work properly on lines over
  3381. 1023 characters long and on lines containing nulls, and make
  3382. them properly handle the case where the user's home directory
  3383. changes in the middle of a session. New functions
  3384. histfilename() and writehist(); changes to
  3385. thanks_for_all_the_fish(), load_history(), save_history(), and
  3386. do_rcfile(). (David Benbennick)
  3387. - files.c:
  3388. get_next_filename()
  3389. - Tweak for efficiency, and add the ".save" suffix to the file
  3390. here. (David Benbennick)
  3391. close_open_file()
  3392. - Tweak to no longer rely on the return values of
  3393. open_(prev|next)file(). (DLR)
  3394. write_file()
  3395. - For consistency with nano 1.2.x and with other editors, make
  3396. the mode of newly created files 666 instead of 600 before
  3397. it's modified by the umask. (DLR, found by Toni Suokas)
  3398. do_writeout()
  3399. - If we're in restricted mode and the current filename isn't
  3400. blank, we can't change it, so disable tab completion in that
  3401. case. (DLR)
  3402. - Fix spacing problem in the "Save Under Different Name"
  3403. prompt. (DLR)
  3404. - global.c:
  3405. shortcut_init()
  3406. - Fix erroneous #ifdef so that nano compiles with
  3407. --disable-justify again. (DLR, found by Mike Frysinger)
  3408. - Change the Cancel shortcut in the file browser to an Exit
  3409. shortcut, to be more compatible with the current version of
  3410. Pico. (DLR)
  3411. thanks_for_all_the_fish()
  3412. - Delete topwin, edit, and bottomwin. (David Benbennick)
  3413. - nano.c:
  3414. die()
  3415. - Don't add the ".save" suffix to a saved file here anymore,
  3416. since get_next_filename() does that now. (David Benbennick)
  3417. die_save_file()
  3418. - Tweak for efficiency. (David Benbennick)
  3419. help_init()
  3420. - Fix the display of the translated key descriptions "Up" and
  3421. "Space" under all circumstances, and make the help browser
  3422. work properly when there are fewer than 24 columns available.
  3423. (David Benbennick)
  3424. usage()
  3425. - Don't translate the option strings for -Z/--restricted.
  3426. (David Benbennick)
  3427. do_enter()
  3428. - Don't treat it as a special case when the user presses Enter
  3429. on the last line of the screen and smooth scrolling is on, for
  3430. consistency. (DLR)
  3431. do_alt_speller()
  3432. - When reloading the newly spell-checked temporary file, call
  3433. terminal_init() to make sure that all the original terminal
  3434. settings are restored, as a curses-based alternative spell
  3435. checker (e.g. aspell) can change them. (DLR)
  3436. quote_length()
  3437. - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H
  3438. wasn't set. (David Benbennick)
  3439. do_justify()
  3440. - Add allow_respacing flag, used to indicate when we've moved to
  3441. the next line after justifying the current line, and only run
  3442. the respacing routine when it's true. This keeps the
  3443. respacing routine from erroneously being run more than once on
  3444. the same line. (DLR)
  3445. - Check for first_par_line's not being NULL and only run the
  3446. renumbering and cutbuffer-splicing routines depending on that
  3447. if that's the case. This fixes a segfault occurring when
  3448. trying to do full justification on a file with no paragraphs
  3449. (in which case there are no normal lines to renumber and no
  3450. backed-up lines to be stored in the cutbuffer or spliced back
  3451. in during unjustify). (DLR)
  3452. do_exit()
  3453. - Tweak for efficiency. (David Benbennick)
  3454. main()
  3455. - Move the reset_cursor() call to the beginning of the main
  3456. input loop, and remove the apparently unnecessary wrefresh()
  3457. call. (David Benbennick)
  3458. - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8
  3459. support won't work properly if the locale isn't set, whether
  3460. NLS is enabled or not. (Junichi Uekawa)
  3461. - Add titlebar() calls before all open_file() calls and remove
  3462. the titlebar() call after them, so that the titlebar is
  3463. displayed properly for all file(s) loaded. Also call
  3464. display_main_list() after adding the first file to open_files,
  3465. so that "Close" is properly displayed then instead of "Exit".
  3466. (DLR)
  3467. - nano.h:
  3468. - Reassign the key for full justification to Ctrl-U, for
  3469. compatibility with the current version of Pico. (DLR)
  3470. - Remove justbegend enum, as it's no longer needed. (DLR)
  3471. - proto.h:
  3472. - Change the variables in the prototypes for do_justify(),
  3473. get_verbatim_kbinput(), and get_mouseinput() to match the ones
  3474. used in the actual functions. (DLR)
  3475. - Remove unused declaration of temp_opt. (David Benbennick)
  3476. - Add missing copy_file() prototype. (David Benbennick)
  3477. - Move the load_history() and save_history() prototypes up to
  3478. match their corresponding location in files.c. (DLR)
  3479. - rcfile.c:
  3480. rcfile_msg()
  3481. - Removed and replaced with calls to rcfile_error(). (David
  3482. Benbennick)
  3483. - Removed the reference to "starting nano" in the statusbar
  3484. message, as it may be called when we exit if the history file
  3485. can't be saved. (DLR)
  3486. parse_rcfile()
  3487. - Have whitespace display default to off instead of on. (Mike
  3488. Frysinger)
  3489. nregcomp()
  3490. - Rename the variable flags to eflags so as not to conflict with
  3491. the global flags. (DLR)
  3492. - search.c:
  3493. do_replace_loop()
  3494. - Make sure old_pww is updated to the current value of
  3495. placewewant when a new match is found, so that edit_redraw()
  3496. will redraw the screen properly when only placewewant changes.
  3497. (DLR, found by Mike Frysinger)
  3498. do_replace()
  3499. - Instead of using edit_update() to redraw the screen with
  3500. edittop at the top, set edittop beforehand and call
  3501. edit_refresh(). (DLR)
  3502. do_gotoline()
  3503. - Use parse_num() to interpret a line entered by the user, and
  3504. start the search for a line from current instead of fileage.
  3505. (DLR)
  3506. do_gotopos(), find_node(), free_history()
  3507. - Tweak for efficiency. (David Benbennick)
  3508. free_history()
  3509. - Only include when DEBUG is defined. (David Benbennick)
  3510. - utils.c:
  3511. parse_num()
  3512. - New function to parse numeric values, so that we don't have to
  3513. duplicate code that calls strtol() all over the place. (David
  3514. Benbennick) DLR: Renamed from parse_int() to parse_num() and
  3515. converted to use ssize_t instead of int.
  3516. nstrnicmp()
  3517. - Remove code chacking for n's being less than 0 that will never
  3518. be run, since n is a size_t and is hence unsigned. (David
  3519. Benbennick)
  3520. ngetdelim(), ngetline()
  3521. - New functions equivalent to getdelim() and getline(), which
  3522. are both GNU extensions. (DLR, adapted from GNU mailutils
  3523. 0.5 with minor changes to better integrate with nano and
  3524. increase efficiency)
  3525. - winio.c:
  3526. get_kbinput()
  3527. - Since the only valid values for escapes are 0, 1, and 2,
  3528. convert it to an int. (DLR)
  3529. get_control_kbinput()
  3530. - Fix erroneous debugging statement so that nano compiles with
  3531. --enable-debug again. (Jon Oberheide)
  3532. nanogetstr()
  3533. - Tweak the code to update the edit window just before getting
  3534. statusbar input for efficiency, and update bottomwin just
  3535. before then too. (David Benbennick)
  3536. - Don't delete the statusbar line on UnCut, since the current
  3537. version of Pico doesn't. (DLR)
  3538. do_cursorpos()
  3539. - Add assert to check whether totsize is correct. (David
  3540. Benbennick)
  3541. line_len()
  3542. - Rename to help_line_len() so as not to conflict with the
  3543. line_len variable used elsewhere, and move inside the
  3544. DISABLE_HELP #ifdef surrounding do_help() since it's only
  3545. called in do_help(). (DLR)
  3546. do_help()
  3547. - Have help_line_len() properly return an int again, since its
  3548. value can't be larger than COLS. (DLR)
  3549. - Allow the user to exit the help browser via Ctrl-C as well as
  3550. Ctrl-X, for consistency with the file browser. (DLR)
  3551. - configure.ac:
  3552. - Add AC_PROG_LN_S, so that we can portably create symlinks.
  3553. (DLR)
  3554. - Check for getdelim() and getline(), which are both GNU
  3555. extensions. (DLR)
  3556. - nanorc.sample:
  3557. - Add sample regexes for patch files. (Mike Frysinger)
  3558. - Various improvements to the "c-file" regexes. Add double,
  3559. typedef, extern, union, unsigned, inline, and long to the
  3560. green list. (Mike Frysinger) DLR: Also add signed, short, and
  3561. enum to the green list.
  3562. - nano.spec.in:
  3563. - Tweak to include all files in %{_bindir} instead of just nano,
  3564. so that the "rnano" symlink will be properly packaged. (DLR)
  3565. GNU nano 1.3.3 - 2004.06.28
  3566. - General:
  3567. - Minor comment cleanups. (DLR)
  3568. - Convert more ints used as boolean values to use TRUE and
  3569. FALSE. (David Benbennick)
  3570. - Make sure the special control keys are handled the same way
  3571. after the window is resized or we come out of suspend mode.
  3572. Changes to do_cont() and handle_sigwinch(). (DLR)
  3573. - Change some instances of ints that can never be negative to
  3574. size_t's. (DLR)
  3575. - Add better explanations for and in the "Terminal breakage"
  3576. comments, and handle missing key #ifdefs inside the functions
  3577. that use those keys. (DLR)
  3578. - Add restricted mode, accessible via the -Z/--restricted
  3579. command line option or by invoking nano with any name
  3580. beginning with 'r' (e.g. "rnano"). In restricted mode, nano
  3581. will not read or write to any file not specified on the
  3582. command line, read any nanorc files, allow suspending, or
  3583. allow a file to be appended to, prepended to, or saved under a
  3584. different name if it already has one. (IO ERROR) DLR: Also
  3585. disable backup files and spell checking (since the latter can
  3586. leave a pre-spell-checked version of the file in a temporary
  3587. directory), use tail() to get the program name so that the
  3588. check for its beginning with 'r' will work when a path is
  3589. specified, disable toggles that are only useful with options
  3590. that are disabled in restricted mode, call nano_disabled_msg()
  3591. when trying to read or spell check a file instead of leaving
  3592. the shortcuts out of the main list, and instead of acting as
  3593. though TEMP_OPT is enabled when exiting with a modified file
  3594. (which caused problems if the filename was blank), only allow
  3595. a filename to be modified at the writeout prompt if it's blank
  3596. beforehand. Changes to do_writeout(), toggle_init(),
  3597. shortcut_init(), die_save_file(), and nanogetstr().
  3598. - Call nano_disabled_msg() directly from the shortcut list
  3599. instead of inside the disabled functions. (David Benbennick)
  3600. - Clarifications to comments explaining exactly what control
  3601. characters and escape sequences are supported. (DLR)
  3602. - Disable "Where Is Next" in tiny mode. (DLR)
  3603. - Added the ability to justify the entire file at once, which
  3604. Pico has via ^W^J. Changes to backup_lines() and
  3605. do_justify(); new functions do_justify_void() and
  3606. do_full_justify(). (DLR)
  3607. - Modify the justification algorithm to work the same way as in
  3608. the current version of Pico, i.e. add a space at the end of
  3609. each line of the justified paragraph except for the last one,
  3610. and if there was a space at the end of the last one, remove
  3611. it. Changes to justify_format() and do_justify(). Note that
  3612. we can no longer reliably detect the first modified line in a
  3613. paragraph, since a line unmodified by justify_format() may get
  3614. a space tacked onto the end of it or removed from the end of
  3615. it later. The entire original paragraph is now always backed
  3616. up, and justify_format() no longer has a non-modifying mode,
  3617. so it's now only called in backup_lines(). (DLR)
  3618. - Wrap the long jump code in NANO_SMALL #ifdefs, since we only
  3619. use it if we're resizing the window, which is disabled when
  3620. NANO_SMALL is defined. (DLR)
  3621. - Add smart home key option, accessible via -A/--smarthome on
  3622. the command line, "set smarthome" in the rcfile, and the
  3623. Meta-H toggle in the edit window. Smart home works as
  3624. follows: When Home is pressed anywhere but at the very
  3625. beginning of non-whitespace characters on a line, the cursor
  3626. will jump to that beginning (either forwards or backwards).
  3627. If the cursor is already at that position, it will jump to the
  3628. true beginning of the line. This option is disabled in tiny
  3629. mode. Changes to do_home(), nanogetstr(), etc. (DLR;
  3630. suggested by Stephan T. Lavavej)
  3631. - Minor tweaks to the punctuation in some statusbar messages.
  3632. (DLR)
  3633. - Overhaul the low-level input routines into main routines that
  3634. actually get the input and state machines that interpret the
  3635. input. This allows better handling of the input (e.g. ignored
  3636. keys are now always ignored instead of just being ignored when
  3637. there are no escapes prefixing them) and will make it easier
  3638. to port to interfaces that don't have blocking input. New
  3639. functions reset_kbinput(), get_translated_kbinput(),
  3640. get_control_kbinput(), and get_untranslated_kbinput(); changes
  3641. to do_verbatim_input(), handle_sigwinch(), get_kbinput(),
  3642. get_ascii_kbinput(), get_escape_seq_kbinput(), and
  3643. get_verbatim_kbinput(); removal of get_ignored_kbinput() and
  3644. get_accepted_kbinput(). (DLR)
  3645. - Overhaul all the movement functions in order to avoid
  3646. redundant screen redraws (and regexec()s when color support is
  3647. available) whenever possible during ordinary cursor movement
  3648. when the text doesn't change. Do the same for moving in
  3649. do_char(), do_delete(), do_next_word(), do_prev_word(),
  3650. do_search(), do_research(), and do_replace_loop. Changes to
  3651. do_first_line(), do_last_line(), do_home(), do_end(),
  3652. do_page_up(), do_page_down(), do_up(), do_down(), do_left(),
  3653. do_right(), do_delete(), do_backspace(), do_search(),
  3654. do_research(), do_replace_loop(), do_find_bracket(), and
  3655. edit_refresh(). New functions do_left_void(),
  3656. do_right_void(), need_horizontal_update(),
  3657. need_vertical_update(), edit_scroll(), and edit_redraw(). All
  3658. of these functions but the first two require the previous
  3659. versions of current and/or placewewant as parameters, so that
  3660. they can redraw properly when the location has changed. Also
  3661. rename the int refresh in do_delete() and do_backspace() to
  3662. do_refresh so as not to conflict with refresh(). (DLR)
  3663. - Add some comments better explaining what is disabled in
  3664. restricted mode and why. (DLR)
  3665. - Since KEEP_CUTBUFFER is only used in cut.c, make it a static
  3666. variable in cut.c instead of a flag, and unset it in other
  3667. files via the new function cutbuffer_reset(). (DLR)
  3668. - Add the ability to change the characters used to display the
  3669. beginning characters of tabs and spaces via the rcfile entry
  3670. "whitespace". This is disabled if nanorc support is disabled
  3671. or if we're in tiny mode. Displaying the new characters is
  3672. toggled on and off by Meta-P; the default is on. (Mike
  3673. Frysinger; minor changes and adaptations by DLR)
  3674. - Add the ability to change the closing punctuation and closing
  3675. brackets used to control justification, via the rcfile
  3676. entries "punct" and "brackets". (DLR)
  3677. - Translation updates (see po/ChangeLog for details).
  3678. - Make the former flag same_line_wrap use TRUE and FALSE
  3679. instead of 1 and 0. (DLR)
  3680. - files.c:
  3681. add_open_file()
  3682. - Rearrange the NANO_SMALL #ifdef so that the code to set the
  3683. MODIFIED flag in open_files->flags is included only once.
  3684. (DLR)
  3685. write_marked()
  3686. - Call write_file() with nonamechange set to TRUE so that we
  3687. don't erroneously change the current filename when writing a
  3688. selection, and don't take a nonamechange parameter anymore
  3689. since we don't use it. (DLR)
  3690. do_writeout()
  3691. - Refactor so that no recursion is needed if we try to exit with
  3692. a modified file that has no name when TEMP_OPT is set. (DLR)
  3693. - Add spaces to the ends of the "Overwrite" and "Different Name"
  3694. prompts, for consistency. (DLR)
  3695. do_browser()
  3696. - Call check_statblank() instead of blanking the statusbar
  3697. unconditionally, for consistency. (David Benbennick)
  3698. - global.c:
  3699. shortcut_init()
  3700. - Don't assign any handler functions to the help browser keys,
  3701. as the help browser handles them all internally. (David
  3702. Benbennick)
  3703. - move.c:
  3704. do_first_line(), do_last_line()
  3705. - Move these functions here from winio.c. (DLR)
  3706. - nano.c:
  3707. finish()
  3708. - Call blank_statusbar() and blank_bottombars() to blank out
  3709. the statusbar and shortcut list in bottomwin. (DLR)
  3710. - Since all of the calls to finish() use 0 for the value of
  3711. sigage, and the return value of finish() is never used, make
  3712. it accept and return void. (David Benbennick)
  3713. die_save_file()
  3714. - Call write_file() with nonamechange set to TRUE since we don't
  3715. need to change the current filename if we're writing emergency
  3716. backup files. (DLR)
  3717. do_early_abort()
  3718. - Removed, as it's no longer called anywhere. (David Benbennick)
  3719. usage()
  3720. - Add missing "[dir]" and two missing _()'s around the strings
  3721. describing the -E [dir]/--backupdir=[dir]" option. (CHAO
  3722. Wei-Lun)
  3723. open_pipe()
  3724. - Call enable_signals() at the beginning and disable_signals()
  3725. at the end, so that we get a SIGINT when Ctrl-C is pressed
  3726. during wait() and can then call cancel_fork() properly. (DLR)
  3727. do_delete(), do_enter()
  3728. - Tweak for efficiency. (David Benbennick)
  3729. do_prev_word()
  3730. - Switch the last test (current != NULL or not) around to match
  3731. the order of the same test in do_next_word() (current ==
  3732. NULL). The results are the same either way. (DLR)
  3733. do_wrap()
  3734. - Tweak for efficiency. (David Benbennick)
  3735. do_spell()
  3736. - Tweak for efficiency. (David Benbennick)
  3737. - Change the statusbar entries used in cases of failure so that
  3738. they all display the actual error that occurred. (David
  3739. Benbennick and DLR)
  3740. do_int_speller(), do_alt_speller()
  3741. - Make these functions return const char*'s instead of char*'s.
  3742. (David Benbennick)
  3743. justify_format()
  3744. - Remove redundant assignment. (DLR)
  3745. do_para_search()
  3746. - Remove unneeded edit_update() calls. (David Benbennick)
  3747. - Convert to use an enum to specify the search type: JUSTIFY,
  3748. BEGIN, or END. (DLR)
  3749. - Refactor to properly do searches for beginnings of paragraphs
  3750. in the same way as searches for endings of paragraphs, without
  3751. needing the old (and somewhat inaccurate) recursive approach.
  3752. (DLR)
  3753. do_justify()
  3754. - Remove unneeded edit_update() calls, and add a few minor
  3755. efficiency tweaks. (David Benbennick)
  3756. - Simplify an if statement. (DLR)
  3757. do_exit()
  3758. - Refactor so that no recursion is needed if we try to exit with
  3759. a modified file that has no name when TEMP_OPT is set. (DLR)
  3760. print_numlock_warning()
  3761. - Removed, as it's no longer needed and was never called
  3762. anywhere after the input overhaul. (DLR)
  3763. signal_init()
  3764. - Don't use termios and _POSIX_VDISABLE to disable keys anymore,
  3765. as there's no real equivalent of it when the latter isn't
  3766. defined. (DLR)
  3767. handle_sigwinch()
  3768. - Call resetty() to get the original terminal settings back.
  3769. (DLR)
  3770. - Rework so that nano properly redraws the screen on systems
  3771. that don't have resizeterm() and/or wresize(). In curses, we
  3772. now leave and immediately reenter curses mode via endwin() and
  3773. refresh(), and then reinitialize all windows via
  3774. window_init(). In slang, the above routine will only work if
  3775. the resize made the window smaller, so we now leave and
  3776. immediately reenter screen management mode via
  3777. SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize
  3778. all windows via window_init(). (DLR, adapted from code in
  3779. Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively)
  3780. do_toggle()
  3781. - Call blank_statusbar() and blank_bottombars() to blank out
  3782. the statusbar and shortcut list in bottomwin. (DLR)
  3783. do_verbatim_input()
  3784. - If PRESERVE is set, disable flow control characters before
  3785. getting input and reenable them after getting input. (DLR)
  3786. disable_signals(), enable_signals(), disable_flow_control(),
  3787. enable_flow_control()
  3788. - New functions that allow more fine-grained control of the
  3789. terminal: disabling and enabling signals without having to use
  3790. _POSIX_VDISABLE and disabling and enabling flow control
  3791. characters. (DLR)
  3792. main()
  3793. - Don't open the first file in quiet mode, since if we do, an
  3794. error message won't be shown if it's unreadable. (DLR; found
  3795. by Jaap Eldering)
  3796. - If we've specified multiple files on the command line and
  3797. multibuffer support is compiled in, turn multibuffer mode on
  3798. when reading those files and turn it off afterward if it was
  3799. off before. This allows us to open multiple files without
  3800. having to turn multibuffer mode on at the command line or in
  3801. the nanorc first, both of which are unintuitive. Multibuffer
  3802. mode should only affect how the "Read File" command behaves
  3803. anyway. (DLR)
  3804. - Remove the disabling of implementation-defined input
  3805. processing, as cbreak mode appears to turn it off anyway.
  3806. (DLR)
  3807. - After noecho(), call disable_signals() and
  3808. disable_flow_control(), the latter only if PRESERVE is not
  3809. set. (DLR)
  3810. - Move the savetty() call down from just after initscr() to just
  3811. after the terminal is properly set up, so that we can restore
  3812. it easily after a resize. (DLR)
  3813. - Add missing cast to char when calling do_char(). (DLR)
  3814. - Don't initialize the backup directory if we're in restricted
  3815. mode, since backups are disabled then. (DLR)
  3816. - Check $SPELL for an alternative spell checker if we didn't get
  3817. one from the command line and/or rcfile, as Pico does. Don't
  3818. do this if we're in restricted mode, since spell checking is
  3819. disabled then. (DLR)
  3820. - Add some cleanups for greater readability, and remove a few
  3821. bits of redundant code. (DLR and David Benbennick)
  3822. - nano.h:
  3823. - Since REGEXP_COMPILED is only used in search.c, convert it
  3824. from a flag to a static int there. (DLR)
  3825. - Add justbegend enum, used in do_para_search(). (DLR)
  3826. - Add updown enum, used in edit_scroll(). (DLR)
  3827. - proto.h:
  3828. - Remove unused xpt() and add_marked_sameline() prototypes.
  3829. (DLR)
  3830. - Add missing #ifdefs around the nstristr() and get_mouseinput()
  3831. prototypes. (DLR)
  3832. - rcfile.c:
  3833. - Move "rebinddelete" up in the list of options so that the list
  3834. is in alphabetical order. (DLR)
  3835. - Cosmetic reorganization of the order in which some options are
  3836. interpreted. (DLR)
  3837. - Explicitly check for rcopts[i].name's being "tabsize" to avoid
  3838. a spurious error under some circumstances about tabsize's
  3839. being 0 when there's no tabsize entry in the rcfile. (DLR)
  3840. - search.c:
  3841. regexp_init()
  3842. - Overhaul for efficiency. Also check if regcomp() failed, and
  3843. if so, display "Bad regex" message on the statusbar, so that
  3844. we don't have to display it separately after every call to
  3845. this function. (David Benbennick)
  3846. search_init()
  3847. - Only check whether USE_REGEXP is set, and hence whether or not
  3848. to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is
  3849. defined. (DLR)
  3850. not_found_msg()
  3851. - Convert to properly handle strings generated by
  3852. display_string() that have been used in the search prompt
  3853. since 1.3.0. (David Benbennick)
  3854. - Use display_string() directly to display the text that we
  3855. didn't find instead of relying on statusbar() to do it
  3856. indirectly, since the latter won't display its text with the
  3857. user-specified whitespace characters and the former will.
  3858. (DLR)
  3859. - utils.c:
  3860. is_blank_char()
  3861. - New function used as an isblank() equivalent, since isblank()
  3862. is a GNU extension. (DLR)
  3863. nstricmp(), nstrnicmp()
  3864. - Add extra blank lines for greater readability, and remove
  3865. unneeded test for n's being less than zero (since it's already
  3866. been tested for being greater than zero or equal to zero at
  3867. that point) from nstrnicmp(). (DLR)
  3868. stristr()
  3869. - Rename to nstristr() to avoid a potential conflict with an
  3870. existing stristr() function, and move up to just after
  3871. nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency.
  3872. - Include and use only when strcasestr() is unavailable, since
  3873. strcasestr() is a GNU extension. (DLR)
  3874. nstrnlen()
  3875. - New function used as a strnlen() equivalent, since strnlen()
  3876. is a GNU extension. (DLR)
  3877. - winio.c:
  3878. get_verbatim_kbinput()
  3879. - Refactor the output in the DEBUG #ifdef. It didn't work
  3880. properly ever since this function was changed to use an int*
  3881. instead of a char*. (DLR)
  3882. - When reading characters from input, properly reallocate
  3883. verbatim_kbinput via (int*)nrealloc() instead of an uncast
  3884. realloc(). (DLR)
  3885. get_accepted_kbinput()
  3886. - Add proper support for the keypad values and escape sequences
  3887. generated by the NumLock glitch and by certain keys on the
  3888. numeric keypad. (DLR)
  3889. - Add an extra break and move an #endif down to fix a potential
  3890. problem when NANO_SMALL is defined or KEY_RESIZE isn't, and
  3891. when PDCURSES isn't defined. (DLR)
  3892. get_escape_seq_kbinput()
  3893. - Add proper support for the keypad values and escape sequences
  3894. generated by the NumLock glitch. (DLR)
  3895. - Add ignore_seq parameter. If a sequence is recognized but
  3896. ignored, we will now return ERR and set ignore_seq to TRUE, and
  3897. if a sequence is unrecognized, we will now return ERR and set
  3898. ignore_seq to FALSE. Also, here and elsewhere, don't bother
  3899. assigning ERR to retval when that's its initial value. (DLR)
  3900. - Fix problem where the escape sequence for F3 on the FreeBSD
  3901. console would not be interpreted properly. (DLR)
  3902. get_mouseinput()
  3903. - Don't ungetch() anything if there's no control key and no meta
  3904. key defined in the shortcut we clicked. (DLR)
  3905. bottombars()
  3906. - Don't display any more than MAIN_VISIBLE shortcuts. Adding
  3907. justification of the entire file above made the search
  3908. shortcut list longer than this and hence made the shortcuts in
  3909. it so short as to be almost incomprehensible. (DLR)
  3910. - Tweak for efficiency and to better handle shorter screen
  3911. widths. (David Benbennick)
  3912. - Restructure the if block used for the sentinel key values,
  3913. dynamically allocate keystr based on the number of columns
  3914. available, and make sure we can display shortcuts even when
  3915. the number of available columns is too short for any complete
  3916. one. (DLR)
  3917. onekey()
  3918. - Don't bother padding the displayed shortcuts with spaces.
  3919. (David Benbennick)
  3920. - Convert len to a size_t. (DLR)
  3921. edit_add()
  3922. - Minor cosmetic reformatting. Also remove unused int
  3923. searched_later_lines. (DLR)
  3924. blank_bottomwin()
  3925. - Removed, as it does the same thing as blank_bottombars().
  3926. (David Benbennick)
  3927. blank_titlebar()
  3928. - New function used to blank the titlebar in topwin. (DLR)
  3929. blank_statusbar_refresh()
  3930. - Removed, as it's now unnecessary. (David Benbennick)
  3931. titlebar()
  3932. - Overhaul to use display_string() to display the filename, and
  3933. to better handle shorter screen widths. Also remove
  3934. now-unneeded wrefresh(topwin) calls. (David Benbennick)
  3935. DLR: Tweak to reserve enough space for "Modified", plus
  3936. padding, in all cases, to make sure that the version message
  3937. takes up no more more than 1/3 of the available width, minus
  3938. padding, and to include a reset_cursor() call so that the
  3939. cursor is always in the right place.
  3940. bottombars()
  3941. - Call blank_bottombars() instead of blank_bottomwin(). (David
  3942. Benbennick)
  3943. check_statblank()
  3944. - Overhaul for efficiency, (David Benbennick) DLR: Add
  3945. reset_cursor() call to ensure that the cursor is always in the
  3946. right place.
  3947. update_cursor()
  3948. - Removed, as it's no longer called anywhere. (David Benbennick)
  3949. edit_refresh()
  3950. - Remove apparently unneeded leaveok() calls. (David Benbennick)
  3951. edit_refresh_clearok(), center_cursor()
  3952. - Removed, as they are now unnecessary. (David Benbennick)
  3953. statusq()
  3954. - Don't allow "Full Justify" when in view mode. (DLR)
  3955. statusbar()
  3956. - Call reset_cursor() just before refreshing the edit window, so
  3957. that slang and other non-ncurses versions of curses will
  3958. properly place the cursor back in the edit window instead of
  3959. leaving it at the end of the statusbar. (DLR)
  3960. do_help()
  3961. - Overhaul for efficiency, and allow scrolling through the help
  3962. via the arrow keys as well as the paging keys. (David
  3963. Benbennick) DLR: Revert the use of the return value of
  3964. curs_set() to restore the previous state of the cursor, as
  3965. some curses implementations (including slang) get it wrong,
  3966. and explicitly turn the cursor off where needed instead.
  3967. do_credits()
  3968. - Use napms() instead of nanosleep(), as it does the same thing
  3969. (aside from taking an argument in milliseconds instead of
  3970. microseconds) and curses includes it. (DLR)
  3971. - Overhaul for efficiency, and make sure the xlcredits
  3972. translations are done after initialization in order to avoid
  3973. an error when compiling with -pedantic. (David Benbennick)
  3974. do_yesno()
  3975. - Add a comment to encourage translators to use both native and
  3976. English shortcuts, if possible. (Jordi)
  3977. - configure.ac:
  3978. - Add tests for isblank(), strcasestr(), and strnlen(), and
  3979. define _GNU_SOURCE so that the tests work properly. Increase
  3980. the minimum required autoconf version to 2.54. (DLR)
  3981. - Reformat the test programs so that they aren't packed into
  3982. fewer lines than usual, so as to make them easier to read, and
  3983. remove unnecessary inclusion of stdio.h in the slang test
  3984. programs. (DLR)
  3985. - Remove the checks for resizeterm() and wresize(), as they're
  3986. no longer needed. (DLR)
  3987. - config.rpath:
  3988. - Replace usage of egrep with grep -E, avoiding a XSI:ism (David
  3989. Weinehall)
  3990. - faq.html:
  3991. - Removed question about the NumLock glitch, as it's no longer
  3992. needed. (DLR)
  3993. - nano.1:
  3994. - Document restricted mode. (IO ERROR) DLR: Add minor
  3995. modifications to account for the above changes.
  3996. - Document the smart home key option. (DLR)
  3997. - Document the use of the SPELL environment variable. (DLR)
  3998. - nanorc.5:
  3999. - Document the smart home key option. (DLR)
  4000. - Document the whitespace option. (DLR, adapted from
  4001. documentation by Mike Frysinger)
  4002. - Document the punct and brackets options. (DLR)
  4003. - nano.texi:
  4004. - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and
  4005. Meta-< and Meta-> aren't toggles. (DLR)
  4006. - Document restricted mode. (IO ERROR) DLR: Add minor
  4007. modifications to account for the above changes.
  4008. - Fix version number inaccuracies: Search/replace history and
  4009. sorting/uniqueness filtering for the internal spell checker
  4010. were added in nano 1.1.99pre1. (DLR)
  4011. - Document the smart home key option. (DLR)
  4012. - Document the use of the SPELL environment variable. (DLR)
  4013. - nanorc.sample:
  4014. - Add missing mouse entry, and update the nanorc sample regexes
  4015. to account for the backupdir and mouse options. (DLR)
  4016. - Add smarthome description. (DLR)
  4017. - Document the whitespace option. (DLR, adapted from
  4018. documentation by Mike Frysinger)
  4019. - README.CVS:
  4020. - Increase the minimum required autoconf version to 2.54, and
  4021. change the recommended automake version 1.7 to the minimum
  4022. required automake version. Note that autoconf 2.54 will
  4023. technically also work with automake 1.6c, but that is a CVS
  4024. version as opposed to a stable release version, and automake
  4025. 1.7 requires at least autoconf 2.54 in any case. (DLR)
  4026. - TODO:
  4027. - Added entry for justifying the entire file at once, since Pico
  4028. can do it, and with "[DONE]" since it's already been
  4029. implemented. (DLR)
  4030. GNU nano 1.3.2 - 2004.03.31
  4031. - General:
  4032. - Change instances in the code that refresh the entire edit
  4033. window when color support is enabled (in order to properly
  4034. handle multi-line color regexes) to only do so when
  4035. it's necessary, i.e. when COLOR_SYNTAX is set. (DLR)
  4036. - Minor cosmetic tweaks to the code involving direction keys.
  4037. NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and
  4038. NANO_NEXTLINE_KEY, and the help messages for them have been
  4039. changed accordingly. Also remove extraneous references to
  4040. NANO_DOWN_KEY in the search history shortcut entries. (DLR)
  4041. - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the
  4042. shortcut list, and tweak the unjustify routine to use it.
  4043. Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak
  4044. the statusbar input routines to handle them and NANO_HELP_FKEY
  4045. properly. (DLR)
  4046. - Block SIGWINCH after setting up its handler, and only unblock
  4047. and handle it when we're in a stable state, i.e. when we're
  4048. waiting for input from the user. New function
  4049. allow_pending_sigwinch(); changes to signal_init(),
  4050. get_kbinput(), and get_verbatim_kbinput(). (DLR)
  4051. - Decouple the paragraph searching code and the justifying code.
  4052. Removed function do_para_operation(); new function
  4053. do_para_search(); changes to do_justify(). (DLR)
  4054. - Add -E/--backupdir option. When used with -B/--backup, backup
  4055. files will be saved in the specified directory with their
  4056. canonical pathnames encoded in their names (all '/'s replaced
  4057. with '!'s). Changes to write_file(). (Martin Ehmsen) DLR:
  4058. Add function init_backup_dir() to handle relative paths
  4059. correctly, use get_full_path() to get the canonical pathname,
  4060. and use tail() to get the filename if get_full_path() fails.
  4061. - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom
  4062. Bates; minor tweaks by DLR)
  4063. - Change some instances of boolean 0 and 1 to TRUE and FALSE.
  4064. (David Benbennick)
  4065. - Fix memory corruption problem occurring when answer is used as
  4066. the value of def; if the realloc() of answer leads to its
  4067. pointing to a different memory block, there will be a segfault
  4068. when the value of def is copied into it via strcpy().
  4069. (bort@alltel.net, Christian Weisgerber, David Benbennick, and
  4070. DLR)
  4071. - Remove the last editbot references, to avoid any potential
  4072. segfaults related to them. Also remove fix_editbot(), as it's
  4073. no longer needed. (David Benbennick)
  4074. - Rename several variables to make their use clearer and to
  4075. avoid conflicts. (DLR)
  4076. - Set the input mode before turning the keypad on. (DLR)
  4077. - cut.c:
  4078. add_to_cutbuffer()
  4079. - Add parameter allow_concat to determine whether we're allowed
  4080. to concatenate strings in the cutbuffer. (DLR)
  4081. - files.c:
  4082. do_insertfile()
  4083. - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef.
  4084. (DLR)
  4085. - Save the already-typed answer when switching from "Insert
  4086. File" to "Execute Command" mode via Ctrl-X, just in case we
  4087. started typing a command before switching. (DLR)
  4088. add_open_files()
  4089. - Make the saving of marked status in open_files->file_flags
  4090. work properly again; a tweak to the ISSET() macro in 1.3.0
  4091. to make it only return 0 or 1 broke it. (DLR)
  4092. write_marked()
  4093. - New function used to write the current marked selection to a
  4094. file, split out from do_writeout(). (DLR)
  4095. do_writeout()
  4096. - Tweak for efficiency. (David Benbennick) DLR: Modify to have
  4097. the current answer preserved between toggles again.
  4098. filestat()
  4099. - Removed, as it is only called in one place and is
  4100. redundant. (DLR)
  4101. do_browser()
  4102. - Replace the filestat() call with an equivalent stat() call.
  4103. (DLR)
  4104. - global.c:
  4105. shortcut_init()
  4106. - Only allow verbatim input when we're not in view mode. (DLR)
  4107. - Set the associated function for unjustify to 0 instead of
  4108. do_uncut_text(), since it's currently unused. (DLR)
  4109. - nano.c:
  4110. usage()
  4111. - Clarify the description for -T/--tabsize a bit. (DLR)
  4112. do_verbatim_input()
  4113. - Remove the now-unneeded code to disable XON, XOFF, and
  4114. suspend, since we now go into raw mode in
  4115. get_verbatim_kbinput() and bypass them. (DLR)
  4116. do_next_word()
  4117. - Simplify and remove references to editbot so as to avoid a
  4118. segfault. (David Benbennick)
  4119. do_prev_word()
  4120. - Simplify and remove references to edittop. (David Benbennick)
  4121. do_int_speller(), do_alt_speller(), do_spell()
  4122. - Modify to write only the current selection from a file to the
  4123. temporary file used for spell checking when the mark is on,
  4124. and add a few miscellaneous cosmetic cleanups. (DLR)
  4125. do_int_spell_fix()
  4126. - Store the value of current_x in a size_t instead of an int,
  4127. and add a few minor efficiency tweaks. (David Benbennick)
  4128. - Remove comment explaining why findnextstr() is called with
  4129. bracket_mode set to TRUE even though we aren't doing a bracket
  4130. search, since after the above efficiency tweaks, it's now more
  4131. accurately called can_display_wrap. (DLR)
  4132. indent_length()
  4133. - Remove unneeded #ifdef. (David Benbennick)
  4134. do_justify()
  4135. - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR)
  4136. signal_init()
  4137. - Trap SIGQUIT in addition to turning it off via termios in
  4138. main(). This is consistent with SIGINT, which we trap here
  4139. and turn off via termios in main(), as well as with the
  4140. associated comment. (DLR)
  4141. handle_sigwinch()
  4142. - Set keypad() to TRUE and switch to cbreak mode just before
  4143. calling siglongjmp(), in case we resized during verbatim
  4144. input. (DLR)
  4145. main()
  4146. - Move the call to raw() on systems that don't define
  4147. _POSIX_VDISABLE outside the main input/output loop, as it
  4148. doesn't need to be called every time through the loop. Call it
  4149. instead of cbreak() on such systems, as it overrides cbreak()
  4150. anyway. (DLR)
  4151. - Add more descriptive comments explaining the termios and
  4152. curses setup routines, and turn the keypad on before setting
  4153. the input mode. (DLR)
  4154. - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR)
  4155. - Don't call keypad() before initializing the windows it needs
  4156. via window_init(). (DLR)
  4157. - nano.h:
  4158. - Move the NANO_H include guard up before the first #include.
  4159. (DLR)
  4160. - Remove the now-unneeded JUSTIFY_MODE flag. (DLR)
  4161. - search.c:
  4162. regexp_cleanup()
  4163. - Only do anything if REGEXP_COMPILED is set. (David Benbennick)
  4164. search_abort()
  4165. - Only test if the mark is set when NANO_SMALL isn't defined.
  4166. (David Benbennick)
  4167. search_init()
  4168. - Add some more comments and comment tweaks, don't indicate that
  4169. the search has been canceled when we enter a blank string in
  4170. replace mode, only call regexp_init() when USE_REGEXP is set,
  4171. and return -1 instead of -3 since a canceled search and a
  4172. canceled replace should be mostly equivalent. (David
  4173. Benbennick) DLR: Tweak to use the old behavior if we try to
  4174. search for invalid regexes.
  4175. findnextstr()
  4176. - Refactor to use a loop invariant, and tweak for greater
  4177. efficiency and simplicity. Also modify so that all searches
  4178. start one character after (or before, if we're doing a
  4179. backwards search) the current one, as opposed to all searches
  4180. except for regex searches for "^" and the like, for
  4181. consistency with other searches. (David Benbennick)
  4182. do_search()
  4183. - Handle search_init()'s no longer returning -3 above. (David
  4184. Benbennick)
  4185. - Port the code from do_replace_loop() to skip the current line
  4186. if we're searching for a regex with "^" and/or "$" in it and
  4187. end up on the same line to this function. This fixes a
  4188. problem where doing a forward search for "^" on a file with
  4189. more than one line would erroneously stop at the magicline and
  4190. indicate that that was the only occurrence. (DLR)
  4191. do_research()
  4192. - Port David Benbennick's efficiency tweaks and the
  4193. aforementioned code ported from do_replace_loop() to this
  4194. function. (DLR)
  4195. replace_regexp()
  4196. - Completely refactor for increased efficiency. (David
  4197. Benbennick)
  4198. replace_line()
  4199. - Use a char* parameter for the replacement string instead of
  4200. last_search, and add minor efficiency tweaks. (David
  4201. Benbennick)
  4202. do_replace_loop()
  4203. - Fix segfault when doing a regex replace of a string that
  4204. matches inside a line (e.g. replace the "b" in "abc" with
  4205. anything). (David Benbennick)
  4206. - If the mark is on at the beginning of the function, turn it
  4207. off and turn it back on just before returning. Also overhaul
  4208. to rely on the return value of findnextstr() instead of a loop
  4209. invariant, to not need to take an int* parameter, and store
  4210. the beginning x-coordinate in a size_t instead of an int.
  4211. (David Benbennick)
  4212. do_replace()
  4213. - Handle search_init()'s no longer returning -3 above, and add
  4214. efficiency tweaks. (David Benbennick) DLR: Tweak to follow
  4215. the old behavior of adding non-blank strings entered at the
  4216. "Replace: " prompt to the search history. (DLR)
  4217. do_gotoline()
  4218. - Simplify the edit_update() call depending on the value of
  4219. save_pos. (David Benbennick)
  4220. do_bracket()
  4221. - Add efficiency tweaks. (David Benbennick) DLR: Remove
  4222. reliance on the hardcoded bracket string length; instead, only
  4223. require that the bracket string length be even.
  4224. - utils.c:
  4225. regexec_safe()
  4226. - Wrap in HAVE_REGEX_H #ifdefs. (DLR)
  4227. regexp_bol_or_eol()
  4228. - New function used to check if a regex contains "^" and/or "$",
  4229. assuming that the regex would be found if the REG_NOT(BOL|EOL)
  4230. flags aren't used in the regexec() call; it replaces the
  4231. direct regexec()s used before. (DLR)
  4232. strstrwrapper()
  4233. - Refactor for increased efficiency, and eliminate the need for
  4234. the line_pos parameter. (David Benbennick)
  4235. mallocstrcpy()
  4236. - Tweak so that when src is "", "" is allocated and returned
  4237. instead of NULL. (David Benbennick)
  4238. - winio.c:
  4239. get_verbatim_kbinput()
  4240. - Set keypad() to FALSE and switch to raw mode while reading
  4241. input, and set it back to TRUE and go back into cbreak mode
  4242. mode afterwards. (Note that if _POSIX_VDISABLE isn't defined,
  4243. we don't need to change to or from raw mode since we're
  4244. already in it exclusively.) This ensures that we don't end up
  4245. reading in extended keypad values that are outside the ASCII
  4246. range or having to deal with interrupt-generating key values.
  4247. Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE
  4248. when the user hits Ctrl-H, which, when cut down to ASCII
  4249. range, ends up being Ctrl-G, which can be confusing. (DLR)
  4250. - For consistency with get_kbinput(), use an int* to store and
  4251. return the input instead of a char*, and tweak the functions
  4252. that call it to handle this. (DLR)
  4253. get_accepted_kbinput()
  4254. - Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
  4255. get_escape_seq_kbinput()
  4256. - Add support for the escape sequences for F1-F14 whenever
  4257. possible (i.e. whenever a conflict doesn't occur), some
  4258. additional comments, and a few cosmetic cleanups. (DLR)
  4259. - Use switch statements instead of strncmp() to read in the long
  4260. xterm sequences for Ctrl-[arrow key] and Shift-[arrow key].
  4261. (DLR)
  4262. get_escape_seq_abcd()
  4263. - A resurrected version of the old abcd() function, readded in
  4264. order to simplify get_escape_seq_kbinput(). (DLR)
  4265. get_mouseinput()
  4266. - Interpret shortcut key values slightly more stringently when
  4267. ungetch()ing them. (DLR)
  4268. strlenpt()
  4269. - Properly cast the second parameter of the strnlenpt() call to
  4270. size_t. (DLR)
  4271. get_page_start()
  4272. - For consistency, tweak so that scrolling always occurs when we
  4273. try to move onto the "$" at the end of the line, as opposed to
  4274. (a) when we move onto the "$" at the end of the line on the
  4275. first page and (b) when we move onto the character just before
  4276. the "$" on subsequent pages. (DLR)
  4277. reset_cursor()
  4278. - Tweak for efficiency. (David Benbennick)
  4279. edit_refresh()
  4280. - Tweak for efficiency. (David Benbennick)
  4281. statusq()
  4282. - Rename "tabs" to "allowtabs". (David Benbennick)
  4283. do_credits()
  4284. - Use nanosleep() instead of usleep(). The latter is only
  4285. standard under BSD, whereas the former is POSIX compliant.
  4286. Accordingly, only include time.h if we use this function, i.e.
  4287. if NANO_EXTRA is defined. (DLR)
  4288. - Add explanatory comment. (DLR)
  4289. - configure.ac:
  4290. - Change instances of "int main ()" to "int main(void)". (DLR)
  4291. - faq.html:
  4292. - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
  4293. not 1.1.12. (DLR)
  4294. - nano.1, nanorc.5, nano.texi
  4295. - Clarify the description for -T/--tabsize a bit. (DLR)
  4296. - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic
  4297. fixes by DLR)
  4298. - nanorc.sample:
  4299. - Add backupdir description. (Martin Ehmsen; minor cosmetic
  4300. fixes by DLR)
  4301. - README:
  4302. - Reformat to 72 characters per line, fix wording in one spot,
  4303. and fix spacing and capitalization in several spots. (DLR)
  4304. - NEWS:
  4305. - Capitalization fix. (DLR)
  4306. - TODO:
  4307. - Clarify the paragraph searching item, and add item for
  4308. filename searches in the file browser. (DLR)
  4309. GNU nano 1.3.1 - 2004.01.09
  4310. - General:
  4311. - Minor overhaul and abstraction of the lowest level of mouse
  4312. input, mostly adapted from the code in do_mouse() that handles
  4313. clicking on the shortcut list. New function do_mouseinput();
  4314. changes to do_mouse(). (DLR) David Benbennick: Add a few
  4315. efficiency/extensibility tweaks.
  4316. - Modify the shortcut structure so that instead of having two
  4317. miscellaneous key values (misc1 and misc2), there is one key
  4318. value reserved for function keys (func_key) and one
  4319. miscellaneous key value (misc), and tweak the
  4320. shortcut-handling code to deal with this. These changes allow
  4321. NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the
  4322. shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove
  4323. the values in the shortcut list and elsewhere that were made
  4324. redundant by the low-level input overhaul, use toupper()
  4325. instead of subtracting 32 from values for greater code
  4326. readability, and eliminate use of adding 32 to values when
  4327. testing for toggles, as get_kbinput_accepted() converts toggle
  4328. values to lowercase before returning them. (DLR)
  4329. - Remove the workarounds for missing KEY_UP and KEY_DOWN, as
  4330. they appear to be holdovers of the old way of denoting the
  4331. search history shortcuts; if they aren't defined, KEY_LEFT and
  4332. KEY_RIGHT probably shouldn't work either, and all four appear
  4333. to be standard keys in termcap/terminfo in any case. Add new
  4334. special sentinel key values NANO_NO_KEY (for no shortcut key)
  4335. and NANO_HISTORY_KEY (for search history keys, both Up and
  4336. Down), modify the shortcut list to use them, and modify the
  4337. shortcut display routines to handle them. Also modify the
  4338. shortcut list code to not treat non-control character values
  4339. of val as Meta-sequences, and fix dependencies on that
  4340. behavior. Also rename several variables: "alt" -> "meta",
  4341. "altval" -> "metaval". (DLR)
  4342. - Hook up the verbatim input functions so that verbatim input
  4343. can be used in the edit window. New function
  4344. do_verbatim_input(); changes to do_char(). (DLR) Additional
  4345. minor tweaks to do_char() by David Benbennick.
  4346. - Clarify the description of the --rebinddelete option. (DLR)
  4347. - Miscellaneous comment tweaks, and copyright year updates in
  4348. the comments and in do_credits(). (DLR)
  4349. - cut.c:
  4350. - Overhaul to increase efficiency and add various cleanups.
  4351. Changes to add_to_cutbuffer(), cut_marked_segment(), and
  4352. do_uncut_text(). (David Benbennick)
  4353. - files.c:
  4354. check_operating_dir()
  4355. - Add an assert to ensure that full_operatingdir isn't NULL,
  4356. a fix for reporting nonexistent (incomplete) directory names
  4357. as being outside the operating directory when tab completion
  4358. is being used, and cosmetic cleanups. (David Benbennick)
  4359. copy_file()
  4360. - New function used to create a copy of a file, split out from
  4361. do_writeout(). (David Benbennick)
  4362. write_file()
  4363. - Completely overhauled to properly ignore appending/prepending
  4364. to symlinks when NOFOLLOW_SYMLINKS is defined, to properly
  4365. support writing a selection to a file under the changed
  4366. cutting code, to have more concise error messages, to add
  4367. various cleanups, and so on. (David Benbennick)
  4368. do_writeout()
  4369. - Prompt the user if we're trying to save an existing file (and
  4370. not just a selection of it) under a different name. (DLR;
  4371. suggested by Jean-Philippe Guérard)
  4372. - Overhaul the code used to write a selection of a file to
  4373. temporarily set fileage and filebot to the top and bottom of
  4374. the selection and then call write_file(), instead of following
  4375. the old hackish behavior with cut_marked_segment() (which
  4376. won't work after the cutting code changes anyway). (David
  4377. Benbennick) DLR: Tweak to not add an extra blank line to the
  4378. end of the written selection if the cursor is at the beginning
  4379. of the last line of the selection.
  4380. open_prevfile(), open_nextfile()
  4381. - For consistency with the rest of the multibuffer code, change
  4382. "No more open files" to "No more open file buffers". (DLR)
  4383. do_browser()
  4384. - Allow '?' to open the help browser, and readd the ability of
  4385. 'G'/'g' to open the "Go to Directory" prompt (which was
  4386. erroneously removed before), for compatibility with Pico.
  4387. (DLR)
  4388. - global.c:
  4389. shortcut_init()
  4390. - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR)
  4391. - nano.c:
  4392. do_int_spell_fix()
  4393. - Add comment explaining why findnextstr() is called with
  4394. bracket_mode set to TRUE even though we aren't doing a bracket
  4395. search. (DLR)
  4396. do_para_operation()
  4397. - Convert to use the new low-level input functions. (DLR)
  4398. main()
  4399. - Remove unused variable option_index. (DLR)
  4400. - Fix omission of NANO_NO_KEY in the shortcut list scanning
  4401. code. (DLR)
  4402. - Remove now-unnecessary initialization of kbinput. (DLR)
  4403. - nano.h:
  4404. - Comment additions and cosmetic tweaks. (DLR)
  4405. - search.c:
  4406. findnextstr(), do_replace_loop()
  4407. - Fix potential infinite loops and other misbehavior when doing
  4408. beginning-of-line or end-of-line regex replacements ("^", "$",
  4409. and "^$"). Add a no_sameline parameter to findnextstr(), and
  4410. set it in the calls in do_replace_loop() when such regexes are
  4411. found, so that such regexes are only found once per line.
  4412. Also change length_change from a long to an int; size_t is
  4413. unsuitable due to its being unsigned. (DLR; found by Mike
  4414. Frysinger and DLR) David Benbennick: Add a few minor cleanups
  4415. to do_replace_loop().
  4416. - winio.c:
  4417. get_kbinput(), get_accepted_kbinput()
  4418. - Don't pass in the value of the REBIND_DELETE flag anymore.
  4419. Instead, handle it directly inside the functions. (DLR)
  4420. get_accepted_kbinput()
  4421. - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY
  4422. if REBIND_DELETE is set), since it apparently is generated
  4423. sometimes even when keypad() is TRUE. (DLR)
  4424. - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into
  4425. NANO_FORWARD_KEY, since they are sometimes generated by
  4426. Shift-Left and Shift-Right. (DLR)
  4427. get_ascii_kbinput()
  4428. - Tweak to make it slightly more readable. (DLR)
  4429. get_verbatim_kbinput()
  4430. - Modify to take an extra parameter indicating if we should
  4431. interpret ASCII codes or not. (DLR)
  4432. get_escape_seq_kbinput()
  4433. - Expand to deal with more broken terminals that don't generate
  4434. keypad values. Support the escape sequences for Insert,
  4435. Delete, Home, End, PageUp, and PageDown, [arrow key],
  4436. Ctrl-[arrow key], and Shift-[arrow key] when needed in the
  4437. Linux console, the FreeBSD console, the Hurd console, xterm,
  4438. rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII
  4439. interpretation disabled, to read in the sequences. (DLR)
  4440. get_skip_tilde_kbinput()
  4441. - Removed, as it is unneeded due to the expansion of
  4442. get_escape_seq_kbinput(). (DLR)
  4443. get_mouseinput()
  4444. - Modify to take an extra parameter indicating if we should
  4445. ungetch() the key equivalents of shortcuts we click on or not.
  4446. (DLR)
  4447. nanogetstr()
  4448. - Properly interpret the Meta key value in misc if we hit it at
  4449. the statusbar prompt. (DLR)
  4450. do_yesno()
  4451. - Add a few efficiency/extensibility tweaks. (David Benbennick)
  4452. - Convert to use the new low-level input functions, and remove
  4453. two last hardcoded widths left after the above tweaks. (DLR)
  4454. do_replace_highlight()
  4455. - Display a highlighted space if the word length is zero, so
  4456. that we can see zero-length regexes we're replacing. (DLR;
  4457. suggested by Mike Frysinger)
  4458. - configure.ac:
  4459. - Check for glib 2.x and then 1.2.x if we need glib. (DLR)
  4460. - faq.html:
  4461. - Add question explaining how verbatim input works, as well as a
  4462. few minor fixes. (DLR)
  4463. - nano.1, nanorc.5:
  4464. - Add nano version numbers (minus any "-cvs" suffixes). (DLR)
  4465. - nano.spec.in:
  4466. - Update for the 1.3 branch of nano. (DLR)
  4467. - NEWS:
  4468. - Reformat so all lines are limited to 72 columns, add a few
  4469. typo fixes, and make a few minor cosmetic cleanups. (DLR)
  4470. - THANKS:
  4471. - Add Danilo Segan, for the Serbian translation.
  4472. GNU nano 1.3.0 - 2003.10.22
  4473. - General:
  4474. - Complete overhaul and abstraction of the lowest level of
  4475. keyboard input, mostly rewritten but incorporating a few bits
  4476. from the old functions and adding support for Pico's Esc Esc
  4477. [three-digit decimal ASCII code] input method. New functions
  4478. get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(),
  4479. get_accepted_kbinput(), get_ascii_kbinput(),
  4480. get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These
  4481. should work properly on FreeBSD (due to code and input
  4482. provided by Lee Nelson and Wouter van Hemel, respectively).
  4483. (DLR)
  4484. - The -K/--keypad command line/rcfile option has been removed,
  4485. and keypad() is now always TRUE. keypad_on() in winio.c and
  4486. the check for _use_keypad in configure.ac have both been
  4487. removed. (DLR)
  4488. - The -d/--rebinddelete command line/rcfile option, equivalent
  4489. to Pico's -d, has been added. It is intended to work around
  4490. the problem with Backspace/Delete confusion on some terminals,
  4491. notably FreeBSD; if your Backspace key acts like Delete, this
  4492. option will fix that. (DLR)
  4493. - Remove unneeded breaks at the ends of default: clauses. (DLR)
  4494. - Add the ability to repeat the last search without prompting
  4495. via Meta-W, and move the line wrapping toggle to Meta-L. New
  4496. function do_research(). (Wouter van Hemel)
  4497. - Added the ability to move to the beginning or end of the
  4498. paragraph, which Pico has via ^W^W (previous paragraph)
  4499. and ^W^O (next paragraph). Changes to do_justify(); new
  4500. functions do_para_operation(), do_para_begin(), and
  4501. do_para_end(). Note that the last three functions are
  4502. disabled if justification is disabled. (DLR)
  4503. - Make sure the "historylog" option isn't included at all if
  4504. NANO_SMALL is defined. (DLR)
  4505. - Source reorganization: move code to src/, docs to doc/.
  4506. (Jordi)
  4507. - Translation updates (see po/ChangeLog for details).
  4508. - Since SAMELINEWRAP is only used in nano.c, make it a static
  4509. variable in nano.c instead of a flag, and surround all
  4510. wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR)
  4511. - Change enum "topmidbotnone" to "topmidnone", as there's no
  4512. BOTTOM option anymore. (DLR)
  4513. - Split out the string-displaying routine from update_line()
  4514. into a separate function; convert the edit window, statusbar
  4515. display, and statusbar prompt to use it, so that they can all
  4516. properly display control characters and tabs; free and NULL
  4517. the backup search string in one place in the search code
  4518. instead of several; and do some other minor refactoring of
  4519. related display functions to simplify them. New functions
  4520. mark_order() and display_string(); new macro charmove();
  4521. changes to actual_x(), strnlenpt(), blank_bottombars(),
  4522. blank_edit(), get_page_start(), edit_add(), update_line(),
  4523. statusbar(), and do_replace_highlight(). (David Benbennick)
  4524. DLR: Add minor cosmetic tweaks, add missing NANO_SMALL #ifdef
  4525. around the text for a backwards search in the refactored code,
  4526. and enclose dump_buffer() and dump_buffer_reverse() in one
  4527. ENABLE_DEBUG #ifdef instead of two.
  4528. - Convert memmove() function calls to charmove() macro calls, as
  4529. the former all work on char*'s. (DLR)
  4530. - Miscellaneous #define cleanups: only include the prototype for
  4531. and definition of wrap_at if wrapping and/or justification are
  4532. enabled, remove duplicate wrap_at prototype, and define
  4533. DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h
  4534. instead of all over the code. (DLR)
  4535. - Autogenerate the html versions of the manpages in the
  4536. Makefile.am's in doc/man/, make sure that they're properly
  4537. installed via "make dist", and make sure that "make distcheck"
  4538. works too. Also be sure to set EXTRA_DIST properly. (Jordi,
  4539. DLR and Jeff Bailey)
  4540. - files.c:
  4541. read_file()
  4542. - After we've read in a file and possibly converted it from
  4543. DOS/Mac format, set fileformat back to 0 to prevent erroneous
  4544. conversion messages when we read other files in. (DLR)
  4545. do_browser()
  4546. - Some of the Pico compatibility options in the file browser
  4547. that don't work properly for current Pico have been removed.
  4548. Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes
  4549. the highlighted file, and 'r' renames the highlighted file;
  4550. neither of these are implemented. (DLR)
  4551. - global.c:
  4552. toggle_init()
  4553. - Change the message for the line wrapping toggle from "Auto
  4554. wrap" to "Auto line wrap", to more clearly associate it with
  4555. Meta-L. (DLR)
  4556. shortcut_init()
  4557. - Change multibuffer-enabled references to
  4558. opening/closing/toggling the previous/next loaded file to
  4559. toggling/switching to/closing the previous/next file buffer,
  4560. for consistency with other references. (DLR)
  4561. - nano.c:
  4562. window_init()
  4563. - Set keypad() to TRUE regardless of whether PDCurses is being
  4564. used, as Meta-X apparently turns it off even under ncurses.
  4565. (DLR)
  4566. do_backspace()
  4567. - Vastly simplify, and remove dependency on page_up(). (David
  4568. Benbennick)
  4569. help_init()
  4570. - Document the support for Esc Esc [character]'s being
  4571. interpreted as Ctrl-[character], and the support for Pico's
  4572. Esc Esc [three-digit decimal ASCII code] input method. (DLR)
  4573. do_mark()
  4574. - Toggle MARK_ISSET at the beginning of the function instead of
  4575. setting it in one place and unsetting it in another place.
  4576. (David Benbennick)
  4577. do_suspend()
  4578. - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can
  4579. properly deal with them while nano is suspended. (DLR; problem
  4580. found by David Benbennick)
  4581. abcd()
  4582. - Removed, as it's unneeded due to the low-level input overhaul.
  4583. (DLR)
  4584. - nano.h:
  4585. - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as
  4586. slang has no equivalent of either. When nano is compiled with
  4587. slang support, resizing the window doesn't generate
  4588. KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux
  4589. console with keypad(TRUE) generates Ctrl-Z instead of
  4590. KEY_SUSPEND, both unlike ncurses. (DLR)
  4591. - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in
  4592. the curses library included with SunOS 5.7-5.9. Also define
  4593. KEY_SUSPEND as -1 if it isn't defined, in case it isn't in
  4594. more than just Slang. (DLR)
  4595. - Define all potentially missing keys as different negative
  4596. values (ERR is -1, so use -2, -3, etc.) so as to avoid having
  4597. duplicate case values when keys are missing. (DLR)
  4598. - move.c:
  4599. - Remove unneeded inclusion of stdio.h, make various cleanups,
  4600. and preserve the cursor's coordinates when paging up and down.
  4601. (David Benbennick) DLR: Readd the ability to behave the old
  4602. way while paging, make it so the new behavior is only used in
  4603. smooth-scrolling mode, and modify page_down() to always go
  4604. down a full page (even when there's less than one page of text
  4605. left) for consistency.
  4606. page_up()
  4607. - Removed due to rewrite of movement functions. (David
  4608. Benbennick)
  4609. - proto.h:
  4610. - Surround the do_prev_word() and do_next_word() prototypes with
  4611. NANO_SMALL #ifdefs, since the actual functions aren't included
  4612. in tiny mode. (DLR)
  4613. - rcfile.c:
  4614. parse_colors()
  4615. - Generate an error if we try to use a bright background color
  4616. in a nanorc file. (DLR; found by Brand Huntsman)
  4617. - Make sure all rcfile error messages are capitalized, for
  4618. consistency. (DLR)
  4619. - winio.c:
  4620. get_verbatim_kbinput()
  4621. - Fix a silly memory corruption bug that would occur when trying
  4622. to read a sequence of more than one key verbatim. (DLR)
  4623. get_accepted_kbinput()
  4624. Handle Ctrl-{ to Ctrl-~ correctly, and drop support for
  4625. converting Esc ` to Esc Space, since making Meta-[key]
  4626. correspond to Ctrl-[key] in all cases is inconsistent due to
  4627. the different natures of Contol and Meta key sequences. (DLR)
  4628. do_first_line()
  4629. - Call edit_update() with TOP instead of CENTER; both do the
  4630. same thing, but it works faster with TOP. (DLR)
  4631. nanogetstr()
  4632. - Don't let the user type in ASCII 127 at the statusbar prompt.
  4633. (DLR)
  4634. titlebar()
  4635. - Fix problem with the available space for a filename on the
  4636. titlebar's being short by one. (DLR)
  4637. edit_add()
  4638. - Fix problems with the marking highlight's being drawn
  4639. improperly in some cases. (DLR)
  4640. edit_update()
  4641. - Tweak for efficiency and remove the fix_editbot() call. (David
  4642. Benbennick)
  4643. do_credits()
  4644. - Update the copyright years to "1999-2003", to match those
  4645. given in the rest of the code. (DLR)
  4646. - configure.ac:
  4647. - Change instances of "GNU Nano" to "GNU nano" for consistency.
  4648. (DLR)
  4649. - nano.1, nanorc.5, nano.texi:
  4650. - Change all instances of $SYSCONFDIR to SYSCONFDIR, since
  4651. SYSCONFDIR is set at compile time and can't be overridden by
  4652. setting SYSCONFDIR in the environment. (David Benbennick)
  4653. - Remove -K/--keypad, and document -d/--rebinddelete. (DLR)
  4654. - Document the support for Esc Esc [character]'s being
  4655. interpreted as Ctrl-[character], and the support for Pico's
  4656. Esc Esc [three-digit decimal ASCII code] input method, if
  4657. applicable. (DLR)
  4658. - French translation by Jean-Philippe Guérard.
  4659. - nano.1.html, nanorc.5.html:
  4660. - Regenerated. (DLR)
  4661. - nanorc.sample:
  4662. - Remove duplicate "historylog" entry, remove "keypad" entry,
  4663. and add "rebinddelete" entry. (DLR)
  4664. - Update and add comments to the regexes for nanorc files.
  4665. (Brand Huntsman)
  4666. - Fix an attempt at a bright background color in the sample Java
  4667. source regexes. (DLR)
  4668. - Since tabs are shown as groups of spaces, they are interpreted
  4669. as such when parsed by color regexes. Accordingly, simplify
  4670. regexes that handle both spaces and tabs to just handle
  4671. spaces, as the results are the same. (DLR)
  4672. - AUTHORS:
  4673. - Updated to show 1.2/1.3 maintainers.
  4674. - 1.3 tree forks here
  4675. GNU nano 1.2.2 - 2003.08.11
  4676. - General:
  4677. - Translation updates (see po/ChangeLog for details).
  4678. - Change uncast nrealloc()s assigned to char pointers/arrays to
  4679. charealloc()s, and cast all other nrealloc()s and all
  4680. nmalloc()s. (David Benbennick and DLR)
  4681. - Remove gettext marks from all debug messages. Good for developers,
  4682. better for translators. (Jordi)
  4683. - Add translator comments on strings that should be short, like in
  4684. status bar strings, etc. (Jordi)
  4685. - utils.c:
  4686. align()
  4687. - Tweak to avoid a potential problem when strp is non-NULL but
  4688. *strp is NULL. (David Benbennick)
  4689. nstricmp(), nstrnicmp()
  4690. - Add these functions, equivalent to strcasecmp() and
  4691. strncasecmp(), and convert nano to use them when strcasecmp()
  4692. and/or strncasecmp() are unavailable. (DLR)
  4693. - winio.c:
  4694. do_help()
  4695. - Get rid of keypad_on() call for bottomwin, which should not be
  4696. needed (DLR).
  4697. nanogetstr()
  4698. - Fix problem with search history where a temporary string
  4699. added at the bottom of the history (but which was not in the
  4700. history) would not be preserved after scrolling down to the
  4701. blank bottom entry and then scrolling back up. (DLR)
  4702. - Fix problem where pressing down,up,down does not blank the
  4703. search prompt but keeps the previous search (DLR).
  4704. - Handle Alt-[-F and H (DLR, fixed home and end not working with
  4705. -K in statusbar).
  4706. - configure.ac:
  4707. - Change the program used to detect a broken regexec() function
  4708. so that it works properly, using information found at
  4709. http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html.
  4710. (DLR)
  4711. - nanorc.sample:
  4712. - Revised comment explaining the non-escaping of quotes to cover
  4713. non-escaping of all shell-interpreted characters. (DLR)
  4714. - Fixes to the descriptions and examples in the comments, and
  4715. changes to some default values. (David Benbennick and DLR)
  4716. - Add regexes for Perl syntax. (Richard Smith, tweaked for
  4717. greater efficiency by David Benbennick)
  4718. - Add regexes for Java source syntax. (David Benbennick)
  4719. Regex for C++-style comments (colored the same way as C-style
  4720. comments) added by DLR.
  4721. - THANKS:
  4722. - Added Laurentiu Buzdugan, for Romanian.
  4723. - Added Geir Helland, for Norwegian Bokmål.
  4724. - TODO:
  4725. - Move the items for nano 1.2 to the "Old Requests" section,
  4726. and mark color syntax highlighting as done. (David Benbennick)
  4727. - faq.html:
  4728. - Added question about nano's not showing color when it's
  4729. compiled with color support. (DLR; suggested by Jordi)
  4730. - nano.1, nanorc.5:
  4731. - Formatting improvements by Jean-Philippe Guérard.
  4732. - Minor fixes by DLR.
  4733. - nano.1.html, nanorc.5.html:
  4734. - Regenerated from nano.1 and nanorc.5. (DLR)
  4735. GNU nano 1.2.1 - 2003.04.19
  4736. - General:
  4737. - Translation updates (see po/ChangeLog for details).
  4738. - Work around broken regexec() on some systems that segfaults
  4739. when passed an empty string. This is known to be in glibc
  4740. 2.2.3. New function regexec_safe(). (David Benbennick)
  4741. - Fix various bugs with search string history logging: don't
  4742. print a broken error message and freeze if ~/.nano_history is
  4743. unreadable, actually show an error message in save_history()
  4744. if ~/.nano_history is unwritable, and prevent ~/.nano_history
  4745. from being completely overwritten by save_history() if it's
  4746. unreadable but writable. (David Benbennick)
  4747. - Only unset KEEP_CUTBUFFER in main() when we do something other
  4748. than cut text in the main input loop, instead of unsetting it
  4749. all over the place (which, as written, didn't handle cases
  4750. like a cut followed by M-Space properly). Also, instead of
  4751. checking for keyhandled's not being set inside the for loops,
  4752. do it in if blocks surrounding the for loops to increase
  4753. efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER
  4754. if we hit a shortcut key other than the one for cutting text.
  4755. - Make it so a marked cut immediately followed by an unmarked
  4756. cut tacks the latter's text onto the end of the former's text
  4757. instead of putting it on a new line, as Pico does. (DLR)
  4758. - Convert instances of "(char *)nrealloc()" to the macro
  4759. charealloc(), which does the same thing. (DLR)
  4760. - Change justify_mode from a boolean int to a flag (DLR).
  4761. - cut.c:
  4762. do_cut_text()
  4763. - Tweak where KEEP_CUTBUFFER is set so that a marked cut
  4764. immediately followed by an unmarked cut preserves the
  4765. cutbuffer between the two. (David Benbennick) DLR: Also
  4766. properly set KEEP_CUTBUFFER in tiny mode.
  4767. do_uncut_text()
  4768. - If we're about to uncut on the magicline, always make a new
  4769. magicline in advance, as Pico does. (DLR)
  4770. - global.c:
  4771. shortcut_init()
  4772. - Simplify the #ifdef used to enable file insertion in view mode
  4773. if multibuffer support has been compiled in. (DLR)
  4774. - nano.c:
  4775. justify_format()
  4776. - If we shave spaces off the end of the line, make sure totsize
  4777. is properly updated. (DLR; much simplified by David
  4778. Benbennick)
  4779. - nano.h:
  4780. - Simplify #ifdefs relating to HAVE_STRCASECMP and
  4781. HAVE_STRNCASECMP. (David Benbennick)
  4782. - search.c:
  4783. goto_abort()
  4784. - Removed, with all instances replaced with display_main_list(),
  4785. since with the removal of all the scattered calls to
  4786. SET(KEEP_CUTBUFFER), that function was all that was left of
  4787. it. (DLR)
  4788. do_find_bracket()
  4789. - If a matching bracket wasn't found, call update_line() after
  4790. setting current and current_x back to their original values,
  4791. in case current_x's original value is greater than the width
  4792. of the screen. (DLR)
  4793. - winio.c:
  4794. nanogetstr()
  4795. - Remove a few unnecessary breaks occurring immediately after
  4796. gotos, and properly interpret the up and down arrow keys when
  4797. ALT_KEYPAD is set. (DLR)
  4798. - configure.ac:
  4799. - Enable autodetection of broken regexec(). (DLR) Re-added
  4800. regex.h check to ensure compile under Debian w/autoconf 1.6.
  4801. - README:
  4802. - Update obsolete 1.1.x information.
  4803. - TODO:
  4804. - Fix typo. (David Benbennick)
  4805. - faq.html:
  4806. - Update RPM links for nano 1.2.x. (DLR)
  4807. GNU nano 1.2.0 - 2003.02.19
  4808. - General:
  4809. - Translation updates (see po/ChangeLog for details).
  4810. - files.c:
  4811. read_file()
  4812. - If the file we're loading has already been detected as a DOS
  4813. or Mac formatted file, don't turn on NOCONVERT if we find
  4814. binary chars in it. This is because if it's detected as
  4815. DOS/Mac format, at least one line has already been converted,
  4816. so setting NOCONVERT (which is supposed to signal that none
  4817. of the file should be converted) makes no sense. (DLR)
  4818. - nano.c:
  4819. justify_format()
  4820. - Fix ugly behavior when wrapping spaces at the end of long
  4821. words (David Benbennick).
  4822. - nanorc.5:
  4823. - Fix formatting error and update copyright year (Jordi).
  4824. - Several enhancements (David Benbennick).
  4825. GNU nano 1.1.99pre3 - 2003.02.13
  4826. - General:
  4827. - Translation updates (see po/ChangeLog for details).
  4828. - Fix globals and externs such that nano will compile with
  4829. DISABLE_SPELLER (David Benbennick).
  4830. - Fix unreasonable fill values by wrapping at length 0 instead
  4831. of erroring out, and don't start up if the window size is too
  4832. small but fill is set reasonably. Changes to
  4833. nano.c:global_init(), window_init(), and handle_sigwinch().
  4834. New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH
  4835. (David Benbennick).
  4836. - Change ngettext macro to P_(), to avoid a clash with the
  4837. reserved C __ identifier (Jordi).
  4838. - Memory leak fixes for files.c:do_insertfile(),do_browser(),
  4839. nano.c:do_spell(), and search.c:do_replace() (David
  4840. Benbennick).
  4841. - Remove do_preserve_msg, as using -p still gives Pico-style
  4842. string behavior, so an annoying message every invocation is
  4843. probably unneeded (all cheer).
  4844. - Change resetpos function to be global (now called
  4845. resetstatuspos. Fixes annoying but small odd problem with
  4846. cursor placement when inserting a file. This needs to be done
  4847. better in 1.3 (originally by David Lawrence Ramsey). Added
  4848. this issue to TODO.
  4849. - files.c:
  4850. cwd_tab_completion()
  4851. - Memory leak fix (David Benbennick).
  4852. input_tab()
  4853. - Fix assumption that matches is null terminated (David
  4854. Benbennick).
  4855. load_history()
  4856. - Fix segfault on loading huge strings from history file
  4857. (David Benbennick).
  4858. load_history(), save_history()
  4859. - Changed to look at $HOME before getpwuid(geteuid()), see
  4860. details in comment for rcfile.c:do_rcfile().
  4861. real_dir_from_tilde()
  4862. - Change check for the running user's home dir to use
  4863. getpwuid(geteuid()) rather than a getpwent() loop
  4864. (suggested by Jordi).
  4865. - nano.c:
  4866. breakable()
  4867. - Fix incorrect return value on short lines (David Benbennick).
  4868. do_help()
  4869. - Fix line lengths not being computed properly, causes display
  4870. glitches most noticeable with < 20 rows. New function
  4871. nano.c:line_len(). (David Benbennick).
  4872. do_justify()
  4873. - Add regfree() to quote regex (David Benbennick).
  4874. - Only copy previous indent if AUTOINDENT is set (David
  4875. Benbennick).
  4876. do_suspend()
  4877. - Fix untranslated message (David Benbennick).
  4878. do_wrap()
  4879. - Fix isspace() call to operate on int.
  4880. help_init()
  4881. - Fix crashing in do_help when COLS < 23 (David Benbennick).
  4882. main()
  4883. - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP
  4884. (David Benbennick).
  4885. - Silence annoying compiler messages about clobbering and
  4886. uninitialized variables by moving variable inits to the top
  4887. of main() and re-initializing them after the sigsetjmp().
  4888. - rcfile.c:
  4889. colortoint()
  4890. - Don't bomb after invalid color and print bad color name
  4891. (David Benbennick).
  4892. colortoint, parse_colors()
  4893. - Don't add strings with invalid fg colors at all.
  4894. do_rcfile()
  4895. - Revert (somewhat) previous behavior of looking at
  4896. $HOME, and only run getpw* if it is NULL. Most *nix programs
  4897. seem to only care about $HOME, and at the user-level
  4898. getpw* may not be reliable (and its slower).
  4899. - search.c:
  4900. do_gotoline()
  4901. - Only goto_abort() if we *didnt* abort the command, making
  4902. the function seem horribly misnamed ;-) (David Benbennick).
  4903. - winio.c:
  4904. browser_init(), striponedir(), do_browse_from()
  4905. - Various memory leak fixes (David Benbennick).
  4906. do_yesno(), do_help()
  4907. - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that
  4908. don't understand MEVENT will compile.
  4909. nanogetstr()
  4910. - Remove unnecessary reset of x since it is now handled
  4911. elsewhere (David Lawrence Ramsey).
  4912. statusq()
  4913. - Always blank the statusbar on exit (David Benbennick).
  4914. - nano.1, nano.1.html:
  4915. - Add initialization file comments, change some options from
  4916. bracketed to underlined to emphasize that they are not
  4917. optional.
  4918. - Add SEE ALSO section (Jordi).
  4919. - Moved nano.1 color and syntax sections to nanorc, pointed
  4920. nano.1 to nanorc.5 for initialization file. Changed
  4921. nanorc.5 variables to be italics to match nano.1. Added
  4922. nanorc.5.html to CVS tree.
  4923. - nanorc.5:
  4924. - Add nanorc manpage, with descriptions of all available commands
  4925. (Jordi).
  4926. - nanorc.sample:
  4927. - Make nanorc entry less tolerant of invalid colors.
  4928. - nano.spec.in:
  4929. - Change default flags to --enable-all.
  4930. - THANKS:
  4931. - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi).
  4932. - UPGRADE:
  4933. - Add upgrading information document for 1.0 users (Jordi).
  4934. GNU nano 1.1.99pre2 - 2003.02.03
  4935. - General:
  4936. - Changed some translatable debug messages to use %s
  4937. instead of the function name, and removed gettext from
  4938. two strings that had no actual words in them that
  4939. should be translated. Suggested originally by
  4940. Christian Rose.
  4941. - Fix subexpression replacement to work consistently.
  4942. Affects search.c:replace_regexp() and
  4943. utils.c:strstrwrapper() (David Benbennick).
  4944. - Fix cursor position being saved when escaping out
  4945. of nanogetstr with keys like ^Y and ^V. New arg
  4946. resetpos to nanogetstr(), added static int
  4947. resetpos in statusq() (bug found by DLR).
  4948. - Fix constant curos updates from obliterating other
  4949. system messages, and fix statusbar message length.
  4950. Affects files.c:load_open_file(), nano.c:main(),
  4951. search.c:findnextstr(), winio.c:statusbar() and
  4952. do_cursorpos() (David Benbennick).
  4953. - Fix nano crashing when searching/replacing an invalid
  4954. regex (try "^*"). Changed regexp_init() to return
  4955. 1 or 0 based on regcomp()'s return value and search_init
  4956. to exit with an error message (sorry Jordi!). Added
  4957. another check when using last_search instead of answer.
  4958. - Move regcomp into rcfile.c rather than each display refresh
  4959. of winio.c. New function rcfile.c:nregcomp().
  4960. This fixes much of nano's resource hogging behavior
  4961. in syntax higlighting. (David Benbennick).
  4962. - Fix justify failing for certain lines, new function
  4963. nano.c:breakable() (David Benbennick).
  4964. - Fix screen getting trashed on signals nano can catch
  4965. (TERM and HUP). New global variable curses_ended,
  4966. changes to winio.c:statusbar() and nano.c:die()
  4967. (David Benbennick).
  4968. - cut.c:
  4969. do_cut_text()
  4970. - Fix incorrect cursor location when cutting long lines
  4971. (David Benbennick).
  4972. - files.c:
  4973. - Set a default PATH_MAX for getcwd() etc calls (David
  4974. Benbennick).
  4975. do_browse_from()
  4976. - Fix path checking to fix bad paths, escaping
  4977. the operating directory, new function readable_dir() (David
  4978. Benbennick).
  4979. do_browser()
  4980. - Fix incorrect path check for check_operating_dir()
  4981. (David Benbennick).
  4982. - Fix goto directory operating dir check and tilde expansion
  4983. (David Benbennick).
  4984. - Even more checks and operating dir fixes (David Benbennick).
  4985. do_insertfile()
  4986. - Add some more checks and fix recursion when toggling
  4987. multibuffer (David Benbennick).
  4988. open_file()
  4989. - Fix FD leak with file load error (David Benbennick).
  4990. add_open_file()
  4991. - Revert the fix for the supposed minor logic error from before;
  4992. it was keeping some updates from happening when they should,
  4993. which was leading to segfaults with both multibuffer and view
  4994. mode on. (DLR; found by David Benbennick)
  4995. save_history()
  4996. - Fix nrealloc return value being ignored (David Benbennick).
  4997. - Fix off-by-one bug causing write to unallocated memory
  4998. (David Benbennick).
  4999. - global.c:
  5000. thanks_for_all_the_fish()
  5001. - Fix compiling with DEBUG and multibuffer (David Benbennick).
  5002. - nano.c:
  5003. do_char()
  5004. - Remove unneeded check_statblank() (David Benbennick).
  5005. do_int_spell_fix(), do_int_speller()
  5006. - Fix crashes with mark position, current_x position,
  5007. and edit_update args (David Benbennick).
  5008. do_justify()
  5009. - Unset KEEP_CUTBUFFER so nano won't crash with subsequent
  5010. ^K cuts and justifies (David Benbennick).
  5011. do_mouse()
  5012. - Fix the mouse code to work with lines longer than COLS and
  5013. with the proper positioning, including special characters
  5014. (David Benbennick).
  5015. do_preserve_msg():
  5016. - Unsplit error message into a single fprintf call (Jordi).
  5017. main()
  5018. - Call load_file with arg 0 for insert, as we aren't really
  5019. doing an insert, allows new_file() to run if we open a
  5020. non-file at startup.
  5021. usage()
  5022. - Remove gettext markings from -p/--preserve (Jordi).
  5023. - Revamp -H option message to fit in 80 column terminal.
  5024. window_init()
  5025. - Fix leaking *WINDOWs (no pun intended) (David Benbennick).
  5026. - search.c:
  5027. do_search(), do_replace_loop()
  5028. - Fix edit_update call to use CENTER instead of current_x
  5029. (related to David Benbennick's fixes for spelling).
  5030. do_replace_loop()
  5031. - Fix various bugs having to do with replace string length
  5032. and positioning (David Benbennick).
  5033. edit_refresh()
  5034. - Fix cursor being above as well as below the current screen
  5035. (David Benbennick).
  5036. - winio.c:
  5037. bottombars()
  5038. - Change strcpy of gettext() "Up" string to strncpy of max
  5039. width 8, to stop stupid strcpy crash.
  5040. do_yesno()
  5041. - Fix mouse interaction bugs with yes/no prompt (David Benbennick).
  5042. - nanorc.sample:
  5043. - Change comment to say magenta instead of purple.
  5044. GNU nano 1.1.99pre1 - 2003.01.17
  5045. - General:
  5046. - New date format for NEWS and ChangeLog.
  5047. - Completely removed PICO_MODE, as with the search/replace
  5048. history patch we should have the extended functionality we can
  5049. without being incompatible with Pico. Removed all code for
  5050. different search/replace string editing and alternate shortcut
  5051. list. I'm sure I won't even have to ask for feedback on this
  5052. one :-)
  5053. - Add in Pico's -p flag, (-p, --preserve). To preserve the XON
  5054. and XOFF keys (^Q and ^S). Add warning if we invoke -p and
  5055. add checks for using --preserve (to skip warning) and --pico
  5056. (to force showing it). New flag PRESERVE, function
  5057. do_preserve_msg(), changes to main(), signal_init().
  5058. - Search history and replace history up/down cursor arrows,
  5059. w/history tab completion, not available w/NANO_SMALL. Changes
  5060. to statusq(), others (Ken Tyler). Added shortcut to
  5061. search/replace shortcuts so people will know it's there,
  5062. forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case
  5063. blame needs to be placed later). Minor fixes by DLR: allow ^P
  5064. and ^N as alternatives to the up and down arrows, make sure
  5065. the "Up" shortcut is displayed properly in the help menu,
  5066. remove a few bits of unneeded and/or warning-generating code,
  5067. and fix some missing statusq() prompts with --enable-tiny.
  5068. - Added search/replace history log. Flag -H, --historylog.
  5069. Flags HISTORY_CHANGED and HISTORYLOG (only room for one more
  5070. flag!), added entries in nanorc.sample, new functions
  5071. log_history and save_history (Ken Tyler).
  5072. - Translation updates (see po/ChangeLog for details).
  5073. - Forward-ported Chris' --disable-wrapping-as-root option from
  5074. 1.0.9. Per Jordi's suggestions, have it override
  5075. $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR)
  5076. - Change all references to /etc/nanorc in the documentation to
  5077. $SYSCONFDIR/nanorc. (DLR)
  5078. - Minor cosmetic tweaks to the ngettext() macro, and fix to
  5079. properly detect systems lacking ngettext() and correctly
  5080. compile on them; the previous fix didn't work. (DLR)
  5081. - Fix problems with some code sections' not being #ifdef'ed out
  5082. when they should be, or being #ifdef'ed out improperly. (David
  5083. Benbennick and DLR)
  5084. - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the
  5085. associated logic accordingly, throughout the code. (David
  5086. Benbennick)
  5087. - Rework #ifdefs to not include mouse_init() at all if
  5088. DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR)
  5089. - For consistency, change many references of (!x) to (x == NULL)
  5090. and (x) to (x != NULL). (DLR)
  5091. - Define KEY_IC properly (and KEY_DC more portably) when slang
  5092. support is enabled, and remove the hack to work around the
  5093. former's not being defined. (David Benbennick and DLR)
  5094. - Miscellaneous tweaks to update_color() calls, to make sure
  5095. they're called at the right times and that refreshes are done
  5096. afterwards only when needed. (David Benbennick)
  5097. - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR)
  5098. - Add the "preserve" option to the nanorc file, to match
  5099. nanorc.sample. (DLR)
  5100. - Fixed awful scrolling in do_int_speller. Problem was
  5101. findnextstr() calling edit_update(), though screen updating
  5102. is not its business. Added checks in do_search() and
  5103. do_replace_loop() to do the checks. It really should not be
  5104. done here, as some function in winio.c should handle this,
  5105. but I can't seem to find a good place to put this check.
  5106. - Updated all copyright notices to say 2003 rather than 2002, as
  5107. nearly all the source files have been worked on this year
  5108. (DLR).
  5109. - configure.ac:
  5110. - Added tr and eu to ALL_LINGUAS (Jordi).
  5111. - Fix now inaccurate description of --enable-tiny's effects; it
  5112. no longer disables NLS support. (DLR)
  5113. - Fix typo. (David Benbennick)
  5114. - Check for strcasecmp() and strncasecmp(), since they are
  5115. apparently only standard under BSD. (DLR)
  5116. - Small cleanups. Add copyright header, add autopoint support and
  5117. define bug report address and full package name in AC_INIT. Move
  5118. ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11.
  5119. - Added --enable-all option to compile in all the extra stuff
  5120. we'd normally need extra flags for.
  5121. - color.c:
  5122. update_color():
  5123. - Remove an unneeded edit_refresh() call after do_colorinit().
  5124. (David Benbennick)
  5125. - cut.c:
  5126. do_cut_text()
  5127. - Fix a memory corruption problem caused by accessing edittop
  5128. after it was freed but before it was reset to a sane value
  5129. from current. (David Benbennick)
  5130. do_uncut_text()
  5131. - If uncutting more than one line of unmarked text at editbot,
  5132. don't center the screen, since Pico doesn't. (DLR)
  5133. - If uncutting previously unmarked text, uncut to end if we're
  5134. not at the beginning of the line, and set placewewant to 0 if
  5135. we are. This matches Pico's behavior. (DLR)
  5136. - files.c:
  5137. load_file()
  5138. - Remove unneeded wmove() call. (David Benbennick)
  5139. read_line()
  5140. - Miscellaneous cleanups. (David Benbennick)
  5141. open_file()
  5142. - If we're in multibuffer mode and there's an error opening the
  5143. file in read-only mode, display the error message on the
  5144. statusbar regardless of the value of quiet. (DLR)
  5145. read_file()
  5146. - Miscellaneous cleanups. (David Benbennick)
  5147. - Fix len's being off by one when reading in Mac-format files,
  5148. exposed by one of David Benbennick's cleanups. (DLR)
  5149. - If NO_CONVERT isn't set when we first enter, and it gets set
  5150. while reading in the file, unset it again afterwards. (DLR)
  5151. do_insertfile()
  5152. - If we're in multibuffer mode and there's an error opening the
  5153. file that we're trying to insert, close the new buffer that we
  5154. made to hold it and reload the buffer we had open before.
  5155. (DLR)
  5156. add_open_file()
  5157. - Fix minor logic error when determining when to resave fileage
  5158. and filebot. (DLR)
  5159. load_open_file()
  5160. - If switching between files when CONSTUPDATE is set, only force
  5161. a cursor position display update if DISABLE_CURPOS isn't set.
  5162. This will ensure that the "Switching to [file]" messages are
  5163. shown. (DLR)
  5164. write_file()
  5165. - Change lineswritten from a long to an int, to match
  5166. filestruct->lineno. (DLR; mismatch found by David Benbennick)
  5167. real_dir_from_tilde()
  5168. - Since this is needed for proper interpretation of paths
  5169. containing tildes and not just for tab completion, include and
  5170. use it regardless of whether tab completion is disabled.
  5171. (David Benbennick and DLR)
  5172. input_tab()
  5173. - Variable name change: matchBuf -> matchbuf. (DLR)
  5174. diralphasort()
  5175. - Remove the HAVE_STRCASECMP #ifdef block; see the changes to
  5176. configure.ac and nano.h for why. (DLR)
  5177. - global.c:
  5178. thanks_for_all_the_fish()
  5179. - Miscellaneous cleanups. (David Benbennick)
  5180. - move.c:
  5181. do_page_down()
  5182. - If there's a page or less of text, do an edit_update() if the
  5183. mark is on; otherwise, the highlight won't be displayed. (DLR)
  5184. - nano.c:
  5185. - Added free_history() list calls clean up, added init of list
  5186. headers, and modified statusq() calls (Ken Tyler).
  5187. do_prev_word()
  5188. - Make the assert match that in do_next_word(). (DLR)
  5189. do_enter()
  5190. - If smooth scrolling is on, and Enter is pressed on the
  5191. magicline, don't center the screen. (DLR)
  5192. do_justify()
  5193. - Fix memory corruption problem triggered when edittop and
  5194. current->next pointed to the same value and current->next was
  5195. destroyed during justification. (DLR)
  5196. - Center the screen when justification moves the cursor entirely
  5197. off the bottom of the screen, instead of when it moves the
  5198. cursor near the bottom of the screen, to more closely match
  5199. Pico's behavior. (DLR)
  5200. version()
  5201. - Remove obsolete reference to --enable-undo. (David Benbennick)
  5202. - Move up check for --disable-nls as it's independent of
  5203. --enable-tiny now (DLR).
  5204. do_int_speller()
  5205. - Make internal spell program use sort -f and uniq to create a
  5206. less redundant word list. [The only reason this is going in
  5207. during feature freeze is because the int speller is useless as
  5208. is and should either be improved or removed. I chose
  5209. improved].
  5210. - Change all child error checks to use one goto (gasp!) called
  5211. close_pipes_and_exit, so we don't leak FDs.
  5212. - Fix FD leaks which occur outside of errors (David Benbennick).
  5213. do_int_speller(), do_alt_speller()
  5214. - Programs now return char *, NULL for successful completion,
  5215. otherwise the error string to display. This allows us to give
  5216. more useful feedback to the user when spell checking fails.
  5217. ABCD()
  5218. - Renamed abcd(). (DLR)
  5219. main()
  5220. - Remove an unneeded do_colorinit() call, do major cleanups, and
  5221. allow loading of multiple files on the command line when
  5222. multibuffers are used. (David Benbennick)
  5223. - nano.h:
  5224. - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same
  5225. value. (DLR; discovered by Ken Tyler)
  5226. - If strcasecmp() and/or strncasecmp() aren't available, use
  5227. strcmp() and/or strncmp() instead. (DLR)
  5228. - proto.h:
  5229. - Fix the #ifdef block for DISABLE_TABCOMP's being undefined
  5230. so that functions only used with tab completion are properly
  5231. #ifdef'ed out. (DLR)
  5232. - search.c:
  5233. do_gotoline()
  5234. - Don't call blank_statusbar_refresh() so if there's an error
  5235. returned in multibuffer mode, we can actually see it.
  5236. do_search()
  5237. - Remove erroneously introduced near-duplicate call to
  5238. update_history(). (DLR)
  5239. print_replaced()
  5240. - Remove and replace with an equivalent ngettext() call. (DLR)
  5241. do_replace_loop()
  5242. - Fix bug where if text on the magicline was replaced (which can
  5243. be done via a regexp replace of "^$" with something other than
  5244. ""), a new magicline wouldn't be created. (DLR)
  5245. - Remove check for answer being a blank string, presumed to be
  5246. a PICO_MODE holdover, but it stops us from doing a blank
  5247. spelling replacement.
  5248. do_replace()
  5249. - For greater Pico compatibility, when an attempt to replace a
  5250. string results in 0 replacements due to the string's not being
  5251. found, display "[string] not found" instead of "Replaced 0
  5252. occurrences". (DLR)
  5253. - utils.c:
  5254. is_cntrl_char()
  5255. - Rework to fix a problem with displaying certain high-bit
  5256. characters. (David Benbennick; reported by Andrzej Marecki)
  5257. align()
  5258. - Don't just assert that the string passed in isn't NULL; check
  5259. that it isn't and only do the alignment when it isn't. (David
  5260. Benbennick)
  5261. nmalloc(), nrealloc()
  5262. - If the size passed to nmalloc() or nrealloc() is zero, don't
  5263. die with an erroneous out-of-memory error. Also, change
  5264. their dying messages to "nano is out of memory!". (David
  5265. Benbennick)
  5266. charalloc()
  5267. - Removed and redefined as a macro that calls nmalloc(). (David
  5268. Benbennick)
  5269. - winio.c:
  5270. nanogetstr()
  5271. - Tweak to make the cursor stay in the same place if we hit a
  5272. prompt-changing toggle while it's in the middle of the string.
  5273. Reset it to -1 (so next time we come here, it'll be set to the
  5274. end of the string) if we leave the prompt via Enter or Cancel.
  5275. Also fix minor problem with search history where the current
  5276. search item could be at the bottom of the history twice in a
  5277. row under certain conditions. (DLR)
  5278. - Remove parens in NANO_CONTROL_I check so nano won't complain if
  5279. just NANO_SMALL is defined (David Benbennick).
  5280. edit_refresh()
  5281. - Miscellaneous cleanups that fix a bug where the screen
  5282. isn't updated after uncutting chunks of upwardly marked cut
  5283. text that are over a page in length. (David Benbennick)
  5284. do_credits()
  5285. - Add David Benbennick to credits. (DLR)
  5286. - nanorc.sample:
  5287. - Added comment to explain the non-escaping of quotes in
  5288. color regexes, based on info provided by David Benbennick.
  5289. (DLR)
  5290. - Added some examples for groff and the nanorc courtesy of
  5291. Robert D. Goulding.
  5292. - Added double hash marks to comment lines, so people who
  5293. uncomment the beginning of every line won't get syntax errors.
  5294. - faq.html:
  5295. - Miscellaneous fixes and updates for typos, broken links, and
  5296. slashes at the end of directories. It is now fully compliant
  5297. with HTML 4.01 Transitional. (DLR and David Benbennick)
  5298. - Added docs about the new unified search string interface and
  5299. search histories, and added --enable-all into configure docs.
  5300. - nano.texi:
  5301. - Typo fixes and updates. (David Benbennick)
  5302. - Updates for the most recent and not so recent changes.
  5303. - nano.1, nano.1.html
  5304. - Updated for the --preserve and --historylog options.
  5305. - TODO
  5306. - Added some wishlist stuff.
  5307. - THANKS:
  5308. - Added Doruk Fisek and Peio Ziarsolo (Jordi).
  5309. GNU nano 1.1.12 - 10/24/2002
  5310. - General:
  5311. - Translation updates (see po/ChangeLog for details).
  5312. - Remove malloc.h, as it's unneeded and just causes annoyances on
  5313. *BSD systems. Added stdlib.h to global.c.
  5314. - Added Meta-Y toggle to disable/enable color syntax highlighting
  5315. completely. This may eventually be per-buffer, but that's too
  5316. complicated for a feature freeze.
  5317. - Disable VSTOP keystroke. Stops people accidentally locking up
  5318. nano (suggested by David Benbennick).
  5319. - Pluralize messages with ngettext() where needed. (David
  5320. Benbennick) Tweaked to compile on systems lacking ngettext()
  5321. by DLR (problem found by Ken Tyler).
  5322. - Update nano.1 and nano.1.html to show that nano now does an
  5323. emergency save on receiving SIGHUP or SIGTERM. (DLR)
  5324. - Don't include "nowrap" in the long options if
  5325. DISABLE_WRAPPING is defined. (DLR)
  5326. - files.c:
  5327. read_file()
  5328. - Minor efficiency fixes, some of which fit in with the change
  5329. to ngettext() usage mentioned above. (David Benbennick)
  5330. do_browser()
  5331. - Make sure the value of path is mallocstrcpy()ed into retval
  5332. and not just assigned to it, to avoid memory corruption
  5333. problems. (DLR)
  5334. - nano.c:
  5335. version()
  5336. - If ENABLE_NLS isn't defined, display "--disable-nls"
  5337. (suggested by Ken Tyler). (DLR)
  5338. justify_format()
  5339. - Make sure the double space maintained after sentence-ending
  5340. punctuation is done when that punctuation is immediately
  5341. followed by a bracket-type character, so justifying e.g.
  5342. sentences in parentheses works properly. (David Benbennick)
  5343. handle_hup()
  5344. - Renamed handle_hupterm() to show that it now handles SIGTERM
  5345. as well as SIGHUP. (DLR)
  5346. signal_init()
  5347. - Do an emergency save on receiving either SIGHUP or SIGTERM,
  5348. not just SIGHUP. (David Benbennick)
  5349. main()
  5350. - Fix a problem where control key commands were printed
  5351. literally instead of interpreted after a failed search of a
  5352. one-line file. (David Benbennick)
  5353. - proto.h:
  5354. handle_hup()
  5355. - Renamed handle_hupterm(); see above for why. (DLR)
  5356. - winio.c:
  5357. edit_add()
  5358. - Fix a potential infinite loop occurring with certain
  5359. zero-length regexes. (David Benbennick)
  5360. GNU nano 1.1.11 - 10/01/2002
  5361. - General:
  5362. - Translation updates (see po/ChangeLog for details).
  5363. - Upgraded to gettext 0.11.5 (Jordi).
  5364. - Updated nano.1, nano.1.html, and nano.texi to fix an
  5365. inaccuracy in the description of -Q/--quotestr. (DLR)
  5366. - Set REG_EXTENDED in all regcomp() calls. (DLR)
  5367. - Minor cosmetic code cleanups. (DLR)
  5368. - Changed do_insertfile to (a) report multibuffer status at the
  5369. prompt and allowing it to be toggled, taking into account the
  5370. need to keep the translatable strings, and (b) added a
  5371. variable inspath to keep track of what the string was before
  5372. toggling. I'm sure there's bugs, have at it.
  5373. - Make sure all functions have prototypes in proto.h, and swap
  5374. some functions around to put similar functions closer
  5375. together (for this, rename clear_bottombars() to
  5376. blank_bottombars()). (DLR; suggested by David Benbennick)
  5377. - More changes of char *'s to const char *'s when possible.
  5378. (David Benbennick)
  5379. - Fix various minor memory leaks in files.c. (David Benbennick)
  5380. - Fix minor problems with the operating directory code: set the
  5381. operating directory properly if it's specified only in a
  5382. nanorc file, and handle an operating directory of "/"
  5383. properly. New function init_operating_dir() to handle
  5384. setting it both on the command line and in the nanorc file.
  5385. (David Benbennick)
  5386. - Major rewrite of color and screen update routines to fix
  5387. minor bugs and increase efficiency. New function
  5388. set_colorpairs() for the former. (David Benbennick)
  5389. - configure.ac:
  5390. - Added pt_BR to ALL_LINGUAS (Jordi).
  5391. - Changed --enable-color warning to be slightly less severe.
  5392. - Put the configure options in more or less alphabetical order,
  5393. and remove --enable-undo, since it doesn't do anything. (DLR)
  5394. - files.c:
  5395. open_file()
  5396. - String change: "File "x" is a directory" -> ""x" is a
  5397. directory". (Jordi)
  5398. do_insertfile()
  5399. - Disallow multibuffer toggling at the "Insert File" prompt if
  5400. we're in both view and multibuffer mode, so as to keep proper
  5401. integration between the two, and make sure the toggle
  5402. actually works all the time otherwise. Also, make sure
  5403. TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and
  5404. ENABLE_MULTIBUFFER are both defined. (DLR)
  5405. open_prevfile_void(), open_nextfile_void()
  5406. - Return the return values of open_prevfile() and
  5407. open_nextfile(), respectively, instead of (incorrectly)
  5408. calling them and returning 0. (DLR)
  5409. real_dir_from_tilde()
  5410. - Rework to use getpwent() exclusively and end reliance on
  5411. $HOME. Adapted from equivalent code in do_rcfile(). (DLR)
  5412. input_tab()
  5413. - Most likely fixed the check marked with FIXME, so that tab
  5414. completion works properly when we're trying to tab-complete a
  5415. username and the string already contains data. (DLR)
  5416. - global.c:
  5417. shortcut_init()
  5418. - Disable the new multibuffer toggle at the file insertion
  5419. prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both
  5420. defined. (DLR)
  5421. thanks_for_all_the_fish()
  5422. - Make sure the reference to help_text is #ifdefed out when
  5423. --disable-help is used. (DLR)
  5424. - move.c:
  5425. page_up()
  5426. - Fix bug where current is moved up two lines when the up arrow
  5427. is pressed on the top line of the edit window; this causes a
  5428. segfault if the top line in the edit window is the second
  5429. line of the file, as the line current ends up on doesn't
  5430. exist. (Jeff DeFouw)
  5431. do_down()
  5432. - Fix bug where, if the last line in the edit window is the
  5433. line before the magicline, and smooth scrolling is turned
  5434. off, pressing the down arrow on that last line centers the
  5435. cursor without updating the edit window. (Jeff DeFouw)
  5436. - nano.c:
  5437. version()
  5438. - Put the listed configure options in more or less alphabetical
  5439. order. (DLR)
  5440. open_pipe()
  5441. - If we're in view mode here (in which case we're also in
  5442. multibuffer mode), don't set the modification flag. (DLR)
  5443. do_next_word(), do_prev_word()
  5444. - If we're on the last/first line of the file, don't center the
  5445. screen; Pico doesn't in the former case. (DLR)
  5446. do_backspace()
  5447. - Rework to call edit_refresh() regardless of the value of
  5448. current_x if ENABLE_COLOR is defined, so that multiple-line
  5449. color regexes are properly updated onscreen as they are in
  5450. do_delete(). (DLR)
  5451. do_delete()
  5452. - Rework to only call edit_refresh() unconditionally if
  5453. ENABLE_COLOR is defined; if it isn't, and we're not deleting
  5454. the end of the line, only call update_line(). (DLR)
  5455. do_wrap()
  5456. - Make sure wrapping is done properly when the number of
  5457. characters on the line is exactly one over the limit. (David
  5458. Benbennick)
  5459. - Restore the previous wrapping point behavior (pre 1.1.10)
  5460. (David Benbennick). Minor fix by DLR to prevent spaces from
  5461. being added to the ends of lines ending in spaces or lines
  5462. ending in tabs (the latter case found by David Benbennick).
  5463. do_alt_speller()
  5464. - Readd DLR's fix to preserve marking when using the alternate
  5465. spell checker; it was accidentally dropped. (David
  5466. Benbennick)
  5467. do_justify()
  5468. - Fix cosmetic problems caused when justifying on the
  5469. magicline, and a minor problem where the cursor would
  5470. sometimes be moved to the wrong line after justification.
  5471. (David Benbennick)
  5472. main()
  5473. - When searching through the main shortcut list looking for a
  5474. shortcut key, stop searching after finding one; this avoids a
  5475. rare segfault. (DLR)
  5476. - nano.h:
  5477. - Change search toggles for case sensitive searching and regexp
  5478. searching to M-C and M-R, respectively. (DLR; suggested by
  5479. Chris)
  5480. - Add support for HP-UX's curses, which doesn't seem to support
  5481. KEY_HOME and KEY_END.
  5482. - nanorc.sample:
  5483. - Fix the c-file regex for all caps words to be extended regex
  5484. format ({} instead of \{\}) (found by DLR).
  5485. - Add a better string matching sequence that includes escaped
  5486. quotes (thanks to Carl E. Lindberg, who doesn't even know he
  5487. helped ;-). Some unneeded \'s in that sequence removed, and
  5488. a new sequence to handle multi-line quotes added, by David
  5489. Benbennick.
  5490. - Add some examples for HTML and TeX files (David Benbennick).
  5491. - rcfile.c:
  5492. parse_colors()
  5493. - Stop infinite loop when syntax doesn't begin with " char.
  5494. - utils.c:
  5495. charalloc()
  5496. - Switch from using calloc() to using malloc(). (David
  5497. Benbennick)
  5498. - faq.html:
  5499. - Typo fix. (DLR)
  5500. - AUTHORS:
  5501. - Add David Benbennick. (Jordi and Chris)
  5502. - TODO:
  5503. - Add entry in the 1.4 section for Pico's paragraph searching
  5504. ability (at the search prompt, ^W goes to the paragraph's
  5505. beginning, and ^O goes to the paragraph's end). (DLR)
  5506. GNU nano 1.1.10 - 07/25/2002
  5507. - General:
  5508. - Translation updates (see po/ChangeLog for details).
  5509. - Upgraded to gettext 0.11.2 (Jordi).
  5510. Removed intl/ entirely, and a few more tweaks by gettextize.
  5511. - i18nized a few strings used in DEBUG mode. (DLR)
  5512. - Some chars being assigned 0 are now assigned '\0'. (DLR)
  5513. - Put header file #includes in a more consistent order. (DLR)
  5514. - Remove some unneeded blank lines and spaces, and make some
  5515. spacing more consistent. (DLR)
  5516. - When possible, use iscntrl() to determine whether a character
  5517. is a control character or not. (DLR)
  5518. - Miscellaneous typo fixes. (DLR)
  5519. - Many fixes to the help browser and shortcut lists: efficiency
  5520. updates, consistency fixes, help text fixes and improvements,
  5521. and spacing improvements. (David Benbennick)
  5522. - Make some functions use const variables when possible, and
  5523. also make them static when necessary. (David Benbennick,
  5524. necessary redefined by Chris ;-)
  5525. - Add Carl Drinkwater's backup file option (-B or --backup on the
  5526. command line, M-B in nano's global shortcuts). If the original
  5527. file is unchanged from when it was loaded, it is backed up to
  5528. filename~; if the original file has been changed or deleted
  5529. since it was originally loaded, it isn't backed up. The backup
  5530. file retains the permissions, owner/group, and
  5531. access/modification times of the original file. This option is
  5532. disabled when --enable-tiny is used. It will not back up
  5533. temporary files. Minor fixes to it by David Benbennick and
  5534. DLR. Changes to open_file(), add_open_file(),
  5535. load_open_file(), write_file(), and do_writeout().
  5536. - Add \n's to the ends of "filename is %s" debugging strings.
  5537. (Carl Drinkwater)
  5538. - Add the long option --quotestr as an alternative for -Q, and
  5539. --regexp as an alternative for -R; they were listed in nano's
  5540. usage information, but weren't actually in nano. Also, display
  5541. "-?" as an alternative for "-h" in nano's usage information,
  5542. put the command line options in a more consistent (i.e. mostly
  5543. alphabetical) order in nano, put the long options in a more
  5544. consistent order in rcfile.c and nanorc.sample, don't include
  5545. rcfile options if their equivalent command line options are
  5546. disabled, and remove obsolete relative option from
  5547. nanorc.sample. (DLR)
  5548. - Change "File Name to Append/Prepend" to "File Name to
  5549. Append/Prepend to". The original prompt could confusingly
  5550. imply that we are appending/prepending another file to the
  5551. current file, when we are actually appending/prepending the
  5552. current file to another file. (DLR)
  5553. - Put nano.1, nano.1.html, and nano.texi up to date, and fix a
  5554. few inconsistencies in them. (DLR)
  5555. - Typo fixes for the ChangeLog. (David Benbennick and DLR)
  5556. - Complete rewrite of justification code to fix some bugs and
  5557. improve its functionality. (David Benbennick)
  5558. - If a variable isn't going to be used in tiny mode, #define it
  5559. out when possible. (David Benbennick)
  5560. - Major reworking of the cutting/screen-updating code in cut.c,
  5561. some functions in utils.c, the cursor placement code in
  5562. winio.c, and many, many other areas to increase efficiency.
  5563. (David Benbennick)
  5564. - Rework handling of prompts when there's a list of partial
  5565. filename matches on the screen: remove kludgy case-by-case
  5566. handling (which didn't even handle every case), and have
  5567. statusq() handle it directly for all cases. (David Benbennick
  5568. and DLR)
  5569. - Fix some warnings and errors that show up when using gcc's
  5570. -pedantic option. (DLR)
  5571. - Add a comment to nanorc.sample warning that an out-of-range
  5572. negative value for fill can make nano die complaining that
  5573. the screen is too small (which may not be immediately
  5574. obvious). (DLR)
  5575. - There were some opendir() calls in files.c without
  5576. corresponding closedir() calls; add them. (DLR)
  5577. - Move align() and null_at() from nano.c to utils.c, and move
  5578. the openfilestruct handling functions from nano.c to files.c.
  5579. (DLR)
  5580. - In color.c, start the "#ifdef ENABLE_COLOR" block after
  5581. including all the header files, as rcfile.c does; this fixes
  5582. a warning about ANSI C'S inability to handle blank files.
  5583. (DLR)
  5584. - Add new function is_cntrl_char() as a wrapper for iscntrl();
  5585. this is needed to treat ASCII 0x80-0x9f as control characters
  5586. consistently. (Without this, they will only be treated as
  5587. such when gettext is used; when it isn't used, they will be
  5588. printed as-is and be interpreted as commands by xterm, which
  5589. will corrupt the display.) (DLR)
  5590. - Add command line option -I/--ignorercfiles to ignore
  5591. $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to
  5592. parsing getopt args (DLR).
  5593. - Fix minor bugs with importing certain text files in Mac
  5594. format. (DLR)
  5595. - files.c:
  5596. append_slash_if_dir(), input_tab()
  5597. - Changed variable names: lastWasTab -> lastwastab, matchBuf ->
  5598. matchbuf. (DLR)
  5599. check_operating_dir()
  5600. - Memory leak fix. (David Benbennick)
  5601. check_writable_directory()
  5602. - Optimizations (David Benbennick).
  5603. cwd_tab_completion()
  5604. - Changed a variable name: dirName -> dirname. (DLR)
  5605. do_browser()
  5606. - Optimizations and mouse selection fixes (David Benbennick).
  5607. do_writeout()
  5608. - Fix problem with formatstr's being defined as NULL when
  5609. --enable-tiny is used. Since formatstr isn't ever used in tiny
  5610. mode, don't bother even creating the variable. (David
  5611. Benbennick and DLR)
  5612. do_insertfile()
  5613. - Memory leak fix (accidentally dropped 1st time).
  5614. (David Benbennick).
  5615. get_full_path()
  5616. - Memory leak fix. Also, make it properly interpret ~/ notation
  5617. so, among other things, the option "--operatingdir ~" works.
  5618. (David Benbennick)
  5619. - More optimizations (David Benbennick).
  5620. new_file()
  5621. - Make sure current_x is zero; this fixes a problem where the
  5622. current cursor position wasn't reset when reading in a file in
  5623. multibuffer mode. (David Benbennick)
  5624. - Use make_new_node rather than setting up fileage by hand
  5625. (David Benbennick).
  5626. read_file(), read_line()
  5627. - Rework to properly handle nulls in the input file, fix
  5628. detection of binary files to properly mark a file as binary if
  5629. the only binary characters it contains are ASCII 127's, and
  5630. after reading the last line of a file that doesn't end in a
  5631. newline, increment totsize. Remove previous kludge to set
  5632. totsize properly. (DLR)
  5633. write_file()
  5634. - Rework to properly handle nulls in the input file. When
  5635. appending/prepending, don't change the current file's name to
  5636. the name of the file it's being appended/prepended to. When
  5637. writing a marked selection to a file, save and restore totsize
  5638. so it isn't decreased by the size of the selection afterward.
  5639. (DLR)
  5640. - Optimizations (David Benbennick).
  5641. - global.c:
  5642. free_toggles()
  5643. - Only include if we're not using tiny mode. (David Benbennick)
  5644. toggle_init()
  5645. - Remove global entries for search toggles, as they aren't really
  5646. global. (DLR)
  5647. - Don't reinititialize the toggles if they've already been
  5648. initialized; it's unnecessary and even causes a segfault in
  5649. do_toggle() if Pico emulation mode is the toggle in question.
  5650. Don't free the toggles here, either; it's unnecessary after the
  5651. above change. (David Benbennick)
  5652. - If wrapping is disabled, don't include the toggle for it.
  5653. (DLR)
  5654. shortcut_init()
  5655. - Rework IFHELP macro (David Benbennick).
  5656. - move.c
  5657. page_down(), page_up()
  5658. - Put sanity checks for current_x back in, to avoid rare
  5659. segfaults (oops). Now, however, they are only called when
  5660. placewewant is zero instead of being called unconditionally;
  5661. see changes to winio.c:actual_x_from_start() below. (DLR)
  5662. - nanorc.sample:
  5663. - Put in much less crappy example regex rules for c-file.
  5664. - nano.c:
  5665. clear_filename()
  5666. - Remove this function, as it has unneeded functionality, is
  5667. short enough to be inlined, and is only called in two spots
  5668. anyway. (DLR)
  5669. die()
  5670. - Rework slightly to remove redundant printing of last message
  5671. and print all messages after resetting the terminal. (DLR)
  5672. do_backspace()
  5673. - Make sure placewewant is set properly, and that the mark is
  5674. moved backwards. (David Benbennick)
  5675. do_char()
  5676. - Fix a problem where, if ENABLE_COLOR wasn't used, typing
  5677. characters on a marked line before the beginning of the mark
  5678. would make the highlight short by one. (David Benbennick)
  5679. do_cont()
  5680. - Handle the case where the window was resized while we were
  5681. stopped. (David Benbennick)
  5682. do_delete()
  5683. - Make sure placewewant is set properly, to match Pico's
  5684. behavior. (DLR)
  5685. do_int_spell(), do_alt_spell()
  5686. - Rework to save the marked selection before doing spell checking
  5687. and restore it afterward. (DLR)
  5688. do_next_word(), do_prev_word()
  5689. - Fix a problem where highlighting isn't done properly after
  5690. calling either of these, and another problem where the cursor
  5691. would move back too far in certain cases with do_prev_word().
  5692. (David Benbennick)
  5693. do_toggle()
  5694. - Since the search mode toggles aren't global anymore, we don't
  5695. need to explicitly block them here anymore (which will end up
  5696. blocking the global backup mode toggle, which is the same as
  5697. the backwards search toggle). (DLR)
  5698. do_wrap()
  5699. - fill fixes and 'two short word wrap' bug (David Benbennick).
  5700. global_init()
  5701. - Call die_too_small() when fill is 0. (DLR)
  5702. handle_sigwinch()
  5703. - Make sure we adjust fill when the window is resized. (David
  5704. Benbennick)
  5705. - Call die_too_small() when fill is 0. (DLR)
  5706. help_init()
  5707. - Since the return value of snprintf() isn't well defined, use
  5708. sprintf() instead. (David Benbennick)
  5709. main()
  5710. - Rework to blank out filename manually before doing anything
  5711. with it, instead of calling clear_filename() in two places.
  5712. Make startline an int instead of a long, since it's supposed to
  5713. hold a line number. (DLR)
  5714. - Properly handle multiple -r settings on the command line. (Carl
  5715. Drinkwater)
  5716. - Fix a bug that prevented file insertion via the Insert key
  5717. from working at all when --enable-multibuffer wasn't used
  5718. (oops). (DLR)
  5719. - Adapt David Benbennick's fix to get fill to accept negative
  5720. numbers properly in parse_rcfile() (see below) to the
  5721. handlers for the -r and -T options as well, so that -r/-T 0
  5722. can be treated separately from -r/-T string. (DLR)
  5723. - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space.
  5724. (DLR)
  5725. usage()
  5726. - List the options that are ignored for the purpose of Pico
  5727. compatibility, and make some minor consistency fixes. (DLR)
  5728. - nano.h:
  5729. - Fix some space/tab formatting for flags (DLR).
  5730. - proto.h:
  5731. - Remove external declaration of the global int fill, since
  5732. it's now static. (DLR)
  5733. - rcfile.c:
  5734. parse_rcfile()
  5735. - Add David Benbennick's fix that allows fill to accept
  5736. negative numbers properly. Specifically, use strtol() there
  5737. instead of atoi() so that errors can be detected. Also
  5738. adapted for tabsize by DLR.
  5739. parse_next_regex(), colortoint()
  5740. - Only include if ENABLE_COLOR is defined. (DLR)
  5741. - search.c:
  5742. search_init()
  5743. - Since the search mode toggles aren't global anymore, rework the
  5744. part of this function referencing them so that they still work.
  5745. (DLR)
  5746. - Remove unneeded toggles variable. (David Benbennick)
  5747. - Fix a problem where the first character of buf was overwritten
  5748. if the last search string was one third the number of columns
  5749. plus one. (David Benbennick)
  5750. findnextstr()
  5751. - Update the current line at current_x if we don't find a match.
  5752. Also, pass current_x_find to strstrwrapper() so we know whether
  5753. we're at the beginning of a string or not (see changes to
  5754. strstrwrapper() below), and reset it between lines. (DLR)
  5755. do_gotoline():
  5756. - Make sure placewewant is zero after we go to a line. (David
  5757. Benbennick)
  5758. do_gotopos()
  5759. - Simplify the sanity check to only put x within the range of the
  5760. current line; don't call actual_x() anymore. (DLR)
  5761. - utils.c:
  5762. - Add sunder() and unsunder(). These functions convert nulls
  5763. other than the terminating null in strings to newlines and
  5764. back; they're used to handle null characters in files properly.
  5765. (DLR)
  5766. lowercase()
  5767. - Remove, since it isn't actually used anywhere. (David
  5768. Benbennick)
  5769. strstrwrapper()
  5770. - Set REG_NOTBOL when we're not at the beginning of a
  5771. string, to avoid false positives when searching for regular
  5772. expressions prefixed with ^. Make it take a new parameter,
  5773. line_pos, to determine where we are in the string. (DLR)
  5774. check_wildcard_match()
  5775. - Changed variable names: retryPat -> retrypat, retryText ->
  5776. retrytext. (DLR)
  5777. - winio.c:
  5778. actual_x_from_start()
  5779. - Overhaul to make cursor placement more like that of Pico: add
  5780. sanity check for i, and then place i as close to the value of
  5781. xplus column as possible. This change is most noticeable when
  5782. moving down through binary files. (DLR)
  5783. do_credits()
  5784. - Fix for the i18ned credits so it will compile with -pedantic
  5785. (DLR & Chris).
  5786. do_help()
  5787. - Add support for the handled keyboard escape sequences in the
  5788. help menu, as they are needed with some terminals (e.g. xterm
  5789. with TERM=ansi). (DLR)
  5790. edit_refresh()
  5791. - Turn on leaveok() so the cursor doesn't bounce around the
  5792. screen while we're updating it (most noticeable when using
  5793. color syntax over a very slow connection).
  5794. do_replace_highlight()
  5795. - When using regexps, make sure the highlight is the length of
  5796. the search result and not the regexp string. (DLR)
  5797. nanogetstr()
  5798. - After the user presses Enter at the prompt, refresh the edit
  5799. window in case there's a list of possible filename matches
  5800. (left over from attempted tab completion) on it. (DLR)
  5801. statusbar()
  5802. - Limit statusbar display to the number of columns less four, and
  5803. don't allow it to go over its original row. (David Benbennick)
  5804. titlebar()
  5805. - Tweak text spacing and printing so that the titlebar text looks
  5806. better on smaller terminals. (Carl Drinkwater)
  5807. update_line()
  5808. - When marking control characters, make sure the mark moves
  5809. forward by two characters instead of one. Rework control
  5810. character display routine to display newlines within the line
  5811. (which should never occur under normal circumstances; they will
  5812. only be there if the line had nulls in it and was unsunder()ed
  5813. beforehand) as ^@'s. (DLR)
  5814. - Fix to properly treat ASCII 128-159 as control characters.
  5815. (DLR)
  5816. - configure.ac:
  5817. - Added ms to ALL_LINGUAS (Jordi).
  5818. - Merged acconfig.h in (Jordi).
  5819. - Fixed so that --enable-debug defines DEBUG and undefines
  5820. NDEBUG. (Carl Drinkwater)
  5821. - THANKS:
  5822. - Completed a bit (Jordi).
  5823. - Fixed David Benbennick's email address. (David Benbennick)
  5824. - Typo fix. (DLR)
  5825. GNU nano 1.1.9 - 05/12/2002
  5826. - General:
  5827. - Typos n misspellings all over the place (David Benbennick).
  5828. - Allow --tiny and --multibuffer to cooperate (who the heck
  5829. would want this is beyond me but ;-). Changes to
  5830. configure.ac, global.c, , (David Benbennick).
  5831. - Change to openfilestruct for multibuffer mode by DLR.
  5832. New functions nano.c:make_new_opennode(), free_openfilestruct(),
  5833. delete_opennode(), unlink_opennode(), splice_opennode(),
  5834. new struct openfilestruct in nano.h.
  5835. - Preliminary prepend code. This may be a bad idea, but I've
  5836. been wanting it for awhile now and we'll see how bad it messes
  5837. everything up. Changes to files.c:do_writeout(), write_file().
  5838. Fixes for O_CREAT & append compatibility by David Benbennick.
  5839. - Change from read() and write() to file streams by Jay Carlson.
  5840. Allows OS to implement read and write ahead rather than making
  5841. us do it. Hopefully merged properly.
  5842. - More cleanups with DISABLE flags, better free_shortcutage and
  5843. free_toggle, and get rid of unnecessary variable decls with
  5844. NANO_SMALL in shortcut_init() by David Benbennick.
  5845. - Added "syntax" command to .nanorc file, to allow multiple
  5846. syntaxes. New function color.c:update_color(), calls in various
  5847. files.c places, syntaxtype struct, global variables syntaxes,
  5848. syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax
  5849. to specify the type on the command line, if there's no good
  5850. filename regex to use. Global variable syntaxstr.
  5851. - Changed many strcmp()s and strcpy()s to their equivalent
  5852. '\0' counterparts (David Lawrence Ramsey).
  5853. - Many changes to allow marked cutting to work with multiple
  5854. file buffers: changes to openfilestruct type in nano.h and
  5855. files.c (David Lawrence Ramsey).
  5856. - Changed NANO_SMALL to ENABLE_NLS for gettext disabling
  5857. (David Benbennick).
  5858. - Move next_key and pev_key definitions out of main() and into
  5859. global.c where they belong (David Benbennick).
  5860. - color.c:
  5861. update_color()
  5862. - Add regfree call here to avoid memory leaks.
  5863. - configure.ac:
  5864. - Define NDEBUG to silence asserts (David Benbennick).
  5865. - files.c:
  5866. get_next_filename()
  5867. - Optimizations (David Benbennick).
  5868. - global.c:
  5869. shortcut_init()
  5870. - Add missing free_shortcutage()s (David Benbennick).
  5871. thanks_for_all_the_fish()
  5872. - Only defined when using DEBUG, makes sense (David Benbennick).
  5873. - nano.c:
  5874. die_save_file()
  5875. - Add missing free (David Benbennick).
  5876. do_justify()
  5877. - Optimizations (David Benbennick).
  5878. do_wrap()
  5879. - Complete rewrite (David Benbennick).
  5880. help_init()
  5881. - A little less readable, a lot shorter :-) (David Benbennick).
  5882. - Fix Meta-A not getting capitalized, and convert the ASCII
  5883. #s to their character equivalent.
  5884. main()
  5885. - Changed charalloc(), strcpy()s to mallocstrcpy()s.
  5886. - nano.h:
  5887. - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol)
  5888. (David Benbennick).
  5889. - nano.spec.in:
  5890. - Don't put Chris' name as the Packager in the distribution
  5891. by default (Im an idiot).
  5892. - Fixed Source line (David Lawrence Ramsey).
  5893. - nano.1:
  5894. - Changed references to Debian GNU/Linux to Debian GNU (Jordi).
  5895. - nano.1.html:
  5896. - Updated for -Y option (David Lawrence Ramsey).
  5897. - rcfile.c:
  5898. - Made some rc file errors less fatal.
  5899. - Added in my patch for getpwent instead of relying on $HOME
  5900. (David Lawrence Ramsey).
  5901. - winio.c:
  5902. edit_add()
  5903. - Changed some syntax highlight computations for the sake of COLS.
  5904. - Add in the necessary regfree() calls to stop nano from leaking
  5905. memory like a sieve when using color syntax highlighting :-)
  5906. bottombars(), onekey()
  5907. - Cleanups (David Benbennick).
  5908. - po/gl.po:
  5909. - Galician translation updates (Jacobo Tarrio).
  5910. - po/de.po:
  5911. - German translation updates (Michael Piefel).
  5912. - po/fr.po:
  5913. - French translation updates (Jean-Philippe Guérard).
  5914. - po/ca.po, po/es.po:
  5915. - Catalan and Spanish translation updates (Jordi).
  5916. - po/sv.po:
  5917. - Swedish translation updates (Christian Rose).
  5918. - po/nl.po:
  5919. - Dutch translation updates (Guus Sliepen).
  5920. - po/it.po:
  5921. - Italian translation updates (Marco Colombo).
  5922. - po/ru.po, po/uk.po:
  5923. - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
  5924. - po/id.po:
  5925. - Indonesian translation updates (Tedi Heriyanto).
  5926. - po/sv.po:
  5927. - Swedish translation updates (Christian Rose).
  5928. GNU nano 1.1.8 - 03/30/2002
  5929. - General
  5930. - Type misalignments and mem leaks in renumber_all, do_justify
  5931. and do_spell (Rocco & Steven Kneizys).
  5932. - New "External Command" code, originally by Dwayne Rightler,
  5933. various fixes and changes by Chris, Rocco and David Benbennick.
  5934. New function nano.c:open_pipe() and signal handler cancel_fork(),
  5935. changes to do_insertfile(), new list extcmd_list, cmd is
  5936. ^X after ^R.
  5937. - Added separate regex variable (color_regex and colormatches)
  5938. so that color syntax and regex search/replace can coexist.
  5939. - Added new nano.spec file from Brett <brett@bad-sports.com>,
  5940. added because maintaining the spec file is getting to be a large
  5941. hassle ;)
  5942. - files.c:
  5943. check_writable_directory()
  5944. - Stat full_path, not path (Steven Kneizys).
  5945. open_pipe()
  5946. - I18nize the pipe error (DLR).
  5947. do_insertfile()
  5948. - Handle cancel from ExtCmd properly (David Benbennick).
  5949. read_file()
  5950. - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70.
  5951. - Reverse tests to stop segfault on editing a new file of 0
  5952. lines (David Benbennick)
  5953. - Change input var to one char instead of array (David Benbennick).
  5954. - Move NO_CONVERT check up so chars get read in properly (DLR).
  5955. - nano.c:
  5956. do_justify()
  5957. - More fixes for indented justify (David Benbennick).
  5958. do_int_speller()
  5959. - Fix zombie processes and spelling buffer issues (Rocco Corsi).
  5960. help_init()
  5961. - Capitalize Meta altkeys.
  5962. - Various fixes and string changes.
  5963. main()
  5964. - Put NANO_SMALL defines around toggle pointer (noticed by Jordi);
  5965. usage()
  5966. - Rewritten to encompass systems with and without GETOPT_LONG.
  5967. New function print1opt does most of the dirty work, stops
  5968. duplication of effort and eases translator's jobs. Also
  5969. breaks all the current translations ;-)
  5970. - proto.h:
  5971. - Missing externs (Rocco).
  5972. - rcfile.c:
  5973. do_rcfile()
  5974. - Reset lineno between system and local .nanorc file.
  5975. - Fix errno->strerror(errno) mismatch.
  5976. parse_rcfile()
  5977. - Don't use i for both for loop and atoi(), fixes lots of
  5978. potential crashes, 1st reported by Jean-Philippe Guérard.
  5979. rcfile_error()
  5980. - Don't print out the file name if we haven't opened the file
  5981. yet (lineno == 0).
  5982. - search.c:
  5983. search_init()
  5984. - Fix a missing free (Rocco).
  5985. do_gotoline()
  5986. - Set placewewant if we actually move to a different line.
  5987. - utils.c:
  5988. stristr()
  5989. - Defined regardless of NANO_SMALL (noticed by Jordi).
  5990. nperror()
  5991. - New wrapper for perror (David Benbennick).
  5992. - winio.c:
  5993. do_credits()
  5994. - Add Thomas Dickey.
  5995. do_cursorpos()
  5996. - Make col numbering start from 1 (suggested by Andrew Ho).
  5997. update_line(), xpt()
  5998. - Add check for 127 (DLR).
  5999. - po/sv.po:
  6000. - Swedish translation updates (Christian Rose).
  6001. - po/de.po:
  6002. - German translation updates (Michael Piefel).
  6003. - po/id.po:
  6004. - Indonesian translation updates (Tedi Heriyanto).
  6005. - po/it.po:
  6006. - Serious typo.
  6007. - po/ca.po, po/es.po:
  6008. - Catalan and Spanish translation updates (Jordi).
  6009. - Typo (DLR).
  6010. - po/fr.po:
  6011. - French translation updates (Jean-Philippe Guérard).
  6012. - po/gl.po:
  6013. - Galician translation updates (Jacobo Tarrio).
  6014. - po/uk.po, po/ru.po:
  6015. - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
  6016. - po/pl.po:
  6017. - Polish translation updates (Wojciech Kotwica).
  6018. - po/fr.po:
  6019. - French translation updates (Jean-Philippe Guérard).
  6020. - po/it.po:
  6021. - Italian translation updates (Marco Colombo).
  6022. - po/da.po:
  6023. - Danish translation updates (Keld Simonsen).
  6024. GNU nano 1.1.7 - 03/05/2002
  6025. - General
  6026. - malloc->calloc, etc cleanups (DLR).
  6027. - New option, noconvert (-N, --noconvert) to completely stop
  6028. the translation of files from DOS or Mac format (DLR).
  6029. - New functions check_writable_directory() and safe_tempnam()
  6030. to get around the tempnam warning. More improvements (DLR)
  6031. Still needs testing.
  6032. - Added DOS and Mac format options to write file routine.
  6033. Changes to shortcut_init() and do_writeout().
  6034. - Removed stupid static definitions of toggles and shortcut
  6035. lists. Many changes to shortcut_init(), toggle_init(),
  6036. statusq(), nanogetstr(), main(), and many other places.
  6037. - Multibuffer mode now allows multiple empty filenames.
  6038. Changes to add_open_files(), removed open_file_dup_search(),
  6039. open_file_dup_fix(), etc (DLR).
  6040. - New code to handle multiple .save files. Changes to
  6041. die_save_file(), new function files.c:get_next_filename()
  6042. and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris)
  6043. - Many malloc() cleanups and files.c tweaks by Steven Kneizys,
  6044. new functions utils.c:free_shortcutage() (got to love that
  6045. name!) & free_toggles(), and big cleanup program
  6046. thanks_for_all_the_fish() (originally
  6047. thanks_for_the_memories()). Mods to shortcut_init() by Chris.
  6048. - Preliminary quoting support for justify. New arg -Q,
  6049. --quotestr, changes to do_justify(), global variable
  6050. quotestr().
  6051. - Makefile.am:
  6052. - Add SYSCONFDIR to DEFS, so we can have a $SYSCONFDIR/nanorc.
  6053. - Change localedir line to 1.0's version.
  6054. - Moved m4/ stuff to its own m4/Makefile.am.
  6055. - m4/aclocal_inc.m4:
  6056. - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look
  6057. for macros (Gergely Nagy).
  6058. - configure.in:
  6059. - Renamed to configure.ac.
  6060. - configure.ac:
  6061. - Moved to autoconf 2.52 (Jeff Bailey).
  6062. - Added call to AM_ACLOCAL_INCLUDE.
  6063. - files.c:
  6064. read_byte()
  6065. - Added check for control characters (indicative of a binary
  6066. file), set NO_CONVERT if found (fixes by DLR).
  6067. do_insertfile()
  6068. - Added support for -o in prompt (Steven Kneizys).
  6069. - global.c:
  6070. - Move openprev and opennext functions to shortcuts, they really
  6071. aren't toggles (DLR).
  6072. - rcfile.c:
  6073. parse_next_regex()
  6074. - Allow " symbol to be in regex without leading \ by checking
  6075. for *ptr+1 is not the end of the regex.
  6076. do_rcfile()
  6077. - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler).
  6078. - nano.1:
  6079. - Added Noconvert option to man page (DLR).
  6080. - nano.c:
  6081. justify_format(), do_justify()
  6082. - Various fixes for starting blank spaces, spaces after
  6083. punctuation, & segfault with quoting strings (David Benbennick).
  6084. do_justify()
  6085. - Don't continue to justify string if it's indented more
  6086. (quoting wise) than the beginning of the justification.
  6087. help_init()
  6088. - Added message re: having multiple blank buffers (DLR).
  6089. main()
  6090. - Add 407 as equiv of 26, this seems to be sent when using
  6091. ^Z in linux console with keypad() enabled.
  6092. - rcfile.c:
  6093. - Get rid of unneeded relativechars from rcopts (DLR).
  6094. - search.c
  6095. do_replace(), findnextstr()
  6096. - Fixes for various search issues (Ken Tyler)
  6097. - winio.c:
  6098. do_cursorpos()
  6099. - Rewritten to show col place as well as character place, without
  6100. needing an entirely separate flag.
  6101. bottombars(), onekey()
  6102. - Make bottom list dynamic with screen size (Guus Sliepen & Chris).
  6103. - More cleanups w/width of shortcut.
  6104. - utils.c:
  6105. strcasestr(),revstrcasestr()
  6106. - Renamed to stristr and revstristr since strcasestr has not
  6107. been confirmed to be detected properly on various Linux
  6108. systems.
  6109. strstrwrapper()
  6110. - NANO_SMALL test was backwards (Ken Tyler).
  6111. - winio.c:
  6112. strlenpt()
  6113. - Changed main function to strnlenpt() for new justify changes,
  6114. original function now just a stub.
  6115. - nanorc.sample
  6116. - Mention unset in the sample nanorc.
  6117. - po/ca.po, po/es.po:
  6118. - Catalan and Spanish translation updates (Jordi).
  6119. - po/sv.po:
  6120. - Swedish translation updates (Christian Rose).
  6121. - po/fr.po:
  6122. - French translation updates (Jean-Philippe Guérard).
  6123. - po/nn.po:
  6124. - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
  6125. - po/de.po:
  6126. - German translation updates (Michael Piefel).
  6127. - po/it.po:
  6128. - Italian translation updates (Marco Colombo).
  6129. - po/cs.po:
  6130. - Partial Czech translation updates (Vaclav Haisman).
  6131. - po/hu.po:
  6132. - Hungarian translation updates, or to be precise, rewrite
  6133. (Gergely Nagy).
  6134. - po/uk.po, po/ru.po:
  6135. - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
  6136. - po/da.po:
  6137. - Danish translation updates (Keld Simonsen).
  6138. - po/nb.po:
  6139. - Norwegian bokmål translation updates (Stig E Sandoe).
  6140. - po/nl.po:
  6141. - Dutch translation updates (Guus Sliepen).
  6142. - po/pl.po:
  6143. - Polish translation updates (Wojciech Kotwica).
  6144. nano-1.1.6 - 01/25/2002
  6145. - General
  6146. - Add Meta-A as alternate keystroke for ^^ for people with
  6147. non-US keyboards.
  6148. - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in
  6149. browser.
  6150. - Better partial word checking code. New function
  6151. search.c:is_whole_word(), changes to findnextstr(),
  6152. and nano.c:do_int_spell_fix() (Rocco Corsi).
  6153. - Added multiple-line regex support. Format in .nanorc is
  6154. start="regex" end="regex". Cleaned up nanorc:parse_colors(),
  6155. added parse_next_regex(), changes to edit_add in winio.c(),
  6156. changes to colortype, cleaning up some old cruft.
  6157. - Upgrade to gettext 0.10.40, probably broke everything again :)
  6158. - Upgraded to and then downgraded from automake 1.5, as there
  6159. are severe security implications.
  6160. - color.c:
  6161. do_colorinit()
  6162. - Moved some comments and braces around so color can work
  6163. w/slang (DLR).
  6164. - global.c:
  6165. shorcut_init()
  6166. - Replace hard coded ALT_G and ALT_H values in the replace
  6167. and goto shortcuts with their macro counterparts NANO_ALT_*_KEY.
  6168. - nano.c:
  6169. usage()
  6170. - Remove extra \n in --keypad description (Jordi).
  6171. main()
  6172. - Check that alt value is an alpha char before comparing to
  6173. val - 32, fixes Alt-R calling doprev instead of replace.
  6174. do_char()
  6175. - Run edit_refresh() if ENABLE_COLOR is defined so adding
  6176. multi-liners will update (e.g. /* in C).
  6177. do_int_spell_fix()
  6178. - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi).
  6179. do_suspend()
  6180. - Call tcsetattr() to restore the old terminal settings, so
  6181. tcsh can use ^C after suspend for example (fixes BUG #68).
  6182. do_wrap()
  6183. - Move "right" increment to part where new line is created,
  6184. should change (fix?) some wrapping problems with autoindent.
  6185. version()
  6186. - Show --enable-multibuffer independently of --enable-extra being
  6187. compiled in (Jordi).
  6188. - nano.h:
  6189. - Changed color struct slightly, because of previous issue with
  6190. applying color painting in order, the "str" portion was
  6191. useless. Renamed "val" in colortype to "start", added "end"
  6192. for multi-line color strings.
  6193. - rcfile.c:
  6194. General
  6195. - Took silly variables being passed everywhere like lineno and
  6196. filename and made them static variables.
  6197. - Re-indented.
  6198. - Added stdarg.h to includes.
  6199. rcfile_error()
  6200. - Now automatically prepends the "error in line blah at foo"
  6201. message to error messages.
  6202. parse_colors()
  6203. - Added section for computing "end" section.
  6204. parse_next_word()
  6205. - Added support for "\ ", in word parsing.
  6206. - search.c:
  6207. do_search()
  6208. - Check position of cursor and return value of findnextstr and
  6209. tell user if search string only occurs once (Rocco & Chris).
  6210. findnextstr()
  6211. - Fix off by one in check for wrap around (Rocco Corsi).
  6212. - winio.c:
  6213. edit_refresh()
  6214. - Rename lines to nlines to fix AIX breakage (reported by
  6215. Dennis Cranston, re-reported by arh14@cornell.edu).
  6216. edit_add()
  6217. - Refuse to honor regex matches of 0 characters when applying
  6218. color highlighting, and say so on the statusbar. Otherwise
  6219. we go into an infinite loop, the error message should clue
  6220. users into the fact that their regex is doing something bad.
  6221. - THANKS:
  6222. - Oops, correct Eivind's entry. His translation was Norwegian nynorsk,
  6223. not bokmål as we claimed (Jordi).
  6224. - .cvsignore
  6225. - Added config.guess config.sub install-sh missing & mkinstalldirs
  6226. - po/ca.po, po/es.po:
  6227. - Catalan and Spanish translation updates (Jordi).
  6228. - po/sv.po:
  6229. - Swedish translation update (Christian Rose).
  6230. - po/de.po:
  6231. - German translation update (Michael Piefel).
  6232. - po/fr.po:
  6233. - French translation update (Jean-Philippe Guérard).
  6234. - po/ru.po, po/uk.po:
  6235. - Russian and Ukrainian translation updates (Sergey A. Ribalchenko).
  6236. - po/no.po:
  6237. - Moved to po/nn.po, which is the correct name for Norwegian nynorsk.
  6238. - po/nn.po:
  6239. - Norwegian nynorsk translation updates (Kjetil Torgrim Homme).
  6240. - po/nb.po:
  6241. - New Norwegian bokmål translation (Stig E Sandoe <stig@ii.uib.no>).
  6242. - po/da.po:
  6243. - Danish translation update (Keld Simonsen).
  6244. nano-1.1.5 - 01/05/2002
  6245. - General
  6246. - Better integration of View mode (-v) and multibuffer.
  6247. Fixes to new_file(), do_insertfile_void(), shortcut_init()
  6248. (David Lawrence Ramsey).
  6249. - The keypad handling has changed (again). We now use
  6250. the keypad() function by default. New flag -K, --keypad
  6251. allows the old behavior for those using the keypad arrow keys
  6252. and rxvt-based terminals.
  6253. - Updated copyright notices to 2002 (Jordi).
  6254. - nano.c:
  6255. die()
  6256. - Only save files that were modified (David Lawrence Ramsey).
  6257. do_cont()
  6258. - Run signal_init() after doupdate() so ^Y wont suddenly
  6259. start suspending after returning from ^Z suspend in Hurd.
  6260. signal_init()
  6261. - Unconditionally disable VDSUSP if it exists, stops ^Y
  6262. suspending nano on the Hurd.
  6263. help_init()
  6264. - Typo fixes in help strings (Jordi).
  6265. - New variable helplen needed cause currslen is not always
  6266. the length we want (bug found by David Lawrence Ramsey).
  6267. - Typo in file switch string (found by David Lawrence Ramsey).
  6268. main()
  6269. - Handle Alt prev/next file keys (,.), as well as normal ones (<>).
  6270. - Handle OS-specific insert keys by jump to do_insertkey (David
  6271. Lawrence Ramsey).
  6272. - files.c:
  6273. read_file()
  6274. - Make conversion message less confusing (suggested by Jordi).
  6275. - rcfile.c:
  6276. parse_next_word()
  6277. - Get rid of ptr == \n check to abort, screws up option
  6278. parsing (bug found by David Lawrence Ramsey)
  6279. - winio.c:
  6280. update_line()
  6281. - set realdata check to >= 1 && <= 31, lack of > 0 check screwed
  6282. high ascii characters.
  6283. titlebar()
  6284. - gettextized a pair of strings.
  6285. bottombars()
  6286. - Get rid of that annoying reversed line when color is on! :)
  6287. edit_add()
  6288. - Little fixes to let color highlights not bleed onto the next line.
  6289. statusq()
  6290. - Initialize "list".
  6291. - m4/gettext.m4:
  6292. - Back down to 1.1.3 version.
  6293. - faq.html:
  6294. - Various link updates and other fixes (Aaron S. Hawley).
  6295. - Typo fixes (David Lawrence Ramsey).
  6296. - AUTHORS
  6297. - Add DLR.
  6298. - po/sv.po:
  6299. - Swedish translation update (Christian Rose).
  6300. - po/ru.po, po/uk.po:
  6301. - Russian and Ukrainian translations updates (Sergey A. Ribalchenko).
  6302. - po/ca.po, po/es.po:
  6303. - Catalan and Spanish translations updates (Jordi).
  6304. - po/pl.po:
  6305. - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>.
  6306. - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new
  6307. official maintainer.
  6308. - po/fr.po:
  6309. - French translation update (Michel Robitaille).
  6310. - po/gl.po:
  6311. - Galician translation update (Jacobo Tarrío).
  6312. - po/it.po:
  6313. - Italian translation update (Marco Colombo).
  6314. - po/de.po:
  6315. - German translation update (Michael Piefel).
  6316. - po/fr.po:
  6317. - French translation update (Jean-Philippe Guérard).
  6318. nano-1.1.4 - 12/11/2001
  6319. - General
  6320. - Preliminary syntax highlighting support. New functions
  6321. colortoint() and parse_color() in rcfile.c, new code in
  6322. edit_add() in winio.c to actually do the highlighting. It's
  6323. not even close to pretty yet :P
  6324. - Many int/long alignments (David Lawrence Ramsey).
  6325. - files.c:
  6326. - Fixes for tab completion and screen refresh (David Lawrence
  6327. Ramsey).
  6328. add_open_file()
  6329. - Get rid of unsetting MARK_ISSET because otherwise writing
  6330. marked text will automatically unset the marker with
  6331. multibuffer enabled.
  6332. - global.c:
  6333. - Define currshortcut and currslen when either DISABLE_MOUSE
  6334. or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan
  6335. Minghetti).
  6336. - nano.c:
  6337. main()
  6338. - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert).
  6339. - Added better Hurd support for function keys (Alt-V,U,9,@,F).
  6340. signal_init()
  6341. - do SIG_IGN for the SIGTSTP sigaction regardless of whether
  6342. we have _POSIX_VDISABLE or not (more Hurd fixes)
  6343. help_init()
  6344. - Typo fixes and additions to the new help texts.
  6345. do_curpos()
  6346. - Now takes arg for constant updating to always show the cursor
  6347. position (David Lawrence Ramsey).
  6348. do_wrap()
  6349. - Many fixes (David Lawrence Ramsey).
  6350. do_spell()
  6351. - Dont prompt for replace if we don't change the word in
  6352. question (Rocco Corsi).
  6353. - po/de.po:
  6354. - German translation updates (Karl Eichwalder).
  6355. - po/ru.po:
  6356. - Russian translation updates (Sergey A. Ribalchenko).
  6357. - po/sv.po:
  6358. - Swedish translation updates (Christian Rose).
  6359. - po/da.po:
  6360. - Danish translation updates (Keld Simonse).
  6361. - po/es.po:
  6362. - Spanish translation updates (Jordi).
  6363. - po/fr.po:
  6364. - French translation updates (Michel Robitaille).
  6365. - m4/gettext.m4:
  6366. - diff against mutt 1.2.5's gettext.m4.
  6367. nano-1.1.3 - 10/26/2001
  6368. - General
  6369. - Finally wrote function-specific help mode. Changes to
  6370. nano.c:help_init() and winio.c:do_help(). Changed
  6371. currshortcut and currslen #ifdefs to depend on both
  6372. DISABLE_HELP and DISABLE_MOUSE being defined to not
  6373. include. Changed all the shortcuts and lengths.
  6374. - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again,
  6375. this was causing nasty errors if the call to nrealloc moved
  6376. where the data was located.
  6377. - Changed header comments to say "version 2" instead of "version
  6378. 1" as the COPYING file is actually version 2 of the GPL (bug
  6379. noticed by Jordi Mallach).
  6380. - cut.c:
  6381. do_cut_text()
  6382. - Check to see whether marked text is contained within edit
  6383. window and if so only do an edit_refresh (variable dontupdate
  6384. replaces cuttingpartialline).
  6385. do_uncut_text()
  6386. - Similar display fixes (David Lawrence Ramsey).
  6387. - faq.html
  6388. - Removed nano-editor.org FTP site address [deprecated] and added
  6389. the GNU one.
  6390. - files.c:
  6391. - Added status messages for converted DOS and Mac files.
  6392. People should know that their file wasnt normally formatted.
  6393. load_file()
  6394. - Status message when trying to load an already loaded file with multiple
  6395. buffers (David Lawrence Ramsey).
  6396. read_file()
  6397. - Get rid of useless linetemp variable and name num_lines int
  6398. (David Lawrence Ramsey).
  6399. - nano.c:
  6400. - New function do_prev_word, similar to do_next_word. Hard coded as
  6401. Alt-space, as next word is hard coded as control-space. Fixed
  6402. goofy logic setting x pos to value of last line when hitting the
  6403. beginning of first line, prog should simply abort. Added
  6404. the #ifdefs around the code in main().
  6405. - nano.h:
  6406. - Additional #define, SMALL_TOO to determine how long
  6407. MAIN_LIST_LEN is. We need this because of the find matching
  6408. bracket code.
  6409. main()
  6410. - Moved #ifndef NANO_SMALL down past the case 0: line so
  6411. control-space doesn't insert a \0 (ack!)
  6412. - rcfile.c:
  6413. - Fix incorrect number of rc options (David Lawrence Ramsey).
  6414. - po/sv.po:
  6415. - Updated Swedish translation (Christian Rose).
  6416. - po/da.po:
  6417. - Updated Danish translation (Keld Simonsen).
  6418. - po/es.po:
  6419. - Style updates to Spanish translation (Santiago Vila).
  6420. - po/ru.po, po/uk.po:
  6421. - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko).
  6422. nano-1.1.2 - 10/03/2001
  6423. - General
  6424. - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(),
  6425. new flag CLEAR_BACKUPSTRING because there's no easy way to
  6426. clear the backupstring without making it global (messy), so we
  6427. use a flag instead (just as messy?)
  6428. - --enable-tiny now leaves out the Auto Indent code, do you really
  6429. need that on a bootdisk? =-)
  6430. - New flag -o, --operatingdir, similar to Pico's -o mode. New
  6431. function check_operating_dir(), changes to load_file (arg),
  6432. open_file_dup_search (arg), new function do_gotopos for -F
  6433. (David Lawrence Ramsey).
  6434. - Code to read/write dos formatted files. Massive amounts of
  6435. new code in read_line and write_file. New cmdline flag
  6436. (-D --dos) to automatically write the file in DOS format,
  6437. regardless of the original format.
  6438. - Mac file writing supported too. Flag -M, --mac. Toggle
  6439. Meta-O (MacOS? OS-X? =-)
  6440. - New smooth scroll code by Ken Tyler. New flag -S, --smooth,
  6441. changes to page_up() and page_down(). Many fixes to paging by
  6442. David Lawrence Ramsey.
  6443. - Bracket (brace, parens, etc) matching code by Ken Tyler.
  6444. New functions do_find_bracket(), changes to findnextstr(),
  6445. command is Meta-] (hope you dont mind since I already sold off
  6446. Meta-O to the MacOS file code Ken...) Fixes to bracket_msg
  6447. by DLR.
  6448. - Call do_gotopos from do_alt_spell() to keep position
  6449. consistent when invoking alt speller (DLR).
  6450. - Readded DISABLE_CURPOS because in certain instances (like
  6451. all the "Search Wrapped" lines) the cursor position will
  6452. be different yet we don't want the cursor position displayed.
  6453. - Take control-space out of -tiny build, unneeded.
  6454. - cut.c:
  6455. cut_marked_segment()
  6456. - Add magic line when cutting a selection including filebot
  6457. (discovered by DLR, fixed by DLR & Chris, fixes BUG #66).
  6458. do_cut_text()
  6459. - Don't recenter the line when cutting one line (DLR) (Bug #65).
  6460. - faq.html:
  6461. - Notes about the Free Translation Project.
  6462. - Debian additions.
  6463. - files.c:
  6464. do_writeout()
  6465. - Expanded strings to not use %s and ?: to determine
  6466. write/append string to be nice to translators.
  6467. new_file()
  6468. - Initialize totsize (DLR).
  6469. - nano.c:
  6470. main()
  6471. - Added var constcheck as a CRC-like check of whether cursor
  6472. pos has changed and if so update the pos with -c.
  6473. - Many tweaks and changes from numerics to char equivs
  6474. (David Lawrence Ramsey).
  6475. - Fix the KEY_IC being undefined when using slang.
  6476. do_mouse()
  6477. - Send 27 when the menu item clicked is an alt key seq... The
  6478. lines aren't lined up since the menu width changed though,
  6479. this breakage depends on whether the new widths will be kept
  6480. or not (FEEDBACK!!)
  6481. - Change k based on currslen to allow the new widths in
  6482. bottombars().
  6483. do_wrap()
  6484. - Fixes for Pico incompatibility in cases 2b and 2c.
  6485. (David Lawrence Ramsey).
  6486. global_init()
  6487. - New arg save_cutbuffer, allows cutbuffer to not be lost when
  6488. using multibuffer.
  6489. - nano.1:
  6490. - Added new features, fixed some typos (Jordi).
  6491. - nano.texi:
  6492. - Corrected the Mouse Toggle section, noticed by Daniel Bonniot.
  6493. - Added many command line options, toggles and other additions
  6494. (Jordi).
  6495. - rcfile.c:
  6496. - NUM_RCOPTS fix (DLR).
  6497. - Add tabsize support to rc file (Nathan Heagy).
  6498. - Fix incorrect argument in fill and tabsize error message
  6499. (Nathan Heagy)
  6500. - search.c:
  6501. - Changed search prompt to "Search" followed by a list of
  6502. bracketed, free-standing modifiers that do not imply a grammar,
  6503. and the (to replace) string separately. Hopefully this resolves
  6504. the i18n problems that this provoked.
  6505. findnextstr()
  6506. - Various fixes that need testing (Ken Tyler).
  6507. - winio.c:
  6508. - Add David Lawrence Ramsey to credits.
  6509. bottombars()
  6510. - Spread out the menu items, feedback definitely needed on this.
  6511. nanogetstr()
  6512. - More key fixes (David Lawrence Ramsey)
  6513. - Don't be clever and wasteful, just repaint every iteration.
  6514. - po/nl.po:
  6515. - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>.
  6516. - po/ca.po, po/es.po:
  6517. - Updated Catalan and Spanish translation (Jordi).
  6518. - po/gl.po:
  6519. - Updated Galician translation (Jacobo Tarrío).
  6520. - po/da.po:
  6521. - New Danish translation, by Keld Simonsen <keld@dkuug.dk>.
  6522. - po/sv.po:
  6523. - Updated Swedish translation (Christian Rose).
  6524. - po/it.po:
  6525. - Updated Italian translation (Marco Colombo).
  6526. - po/fi.po:
  6527. - Updated Finnish translation (Pauli Virtanen).
  6528. nano-1.1.1 - 07/28/2001
  6529. - General
  6530. - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir.
  6531. - Added m4/ directory to allow rebuilding using only the internal
  6532. version of gettext.m4 (Albert Chin).
  6533. - nano.c:
  6534. main()
  6535. - Change the multibuffer getopt option to 'F' (David Lawrence
  6536. Ramsey)
  6537. do_mark()
  6538. - Temporarily disable cursorpos when enabled to be able to see
  6539. the mark (un)set message (Ken Tyler).
  6540. - nanorc.sample
  6541. - Typo fixes and updates (David Lawrence Ramsey)
  6542. - files.c:
  6543. new_file()
  6544. - Do add_open_files if there aren't any open yet (David Lawrence
  6545. Ramsey).
  6546. close_open_file()
  6547. - Try to open the next file first, then the previous one
  6548. (David Lawrence Ramsey).
  6549. - global.c:
  6550. shortcut_init()
  6551. - Rewrote the whereis and replace lists to put CANCEL at the end
  6552. of the list, and not include the toggle functions when using
  6553. NANO_SMALL.
  6554. - nano.h:
  6555. - Fix type in INSERTFILE_LIST_LEN.
  6556. - Rewrote all the macro definitions to be a little less messy,
  6557. for the #ifdefs anyway.
  6558. - rcfile.c:
  6559. - Update for the multibuffer option (oops) (David Lawrence Ramsey).
  6560. - search.c:
  6561. - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code.
  6562. search_init()
  6563. - add #ifdef NANO_SMALL around toggles code.
  6564. - winio.c:
  6565. bottombars()
  6566. - Fixed an off by one that wasn't letting lines with odd #
  6567. shortcuts work in certain cases.
  6568. nano-1.1.0 - 07/15/2001
  6569. - General
  6570. - New global variables currshortcut and currslen to support using
  6571. the mouse with the shortcuts. Also supports clicking on files
  6572. in browser. Added #ifdef DISABLE_MOUSE around this code also.
  6573. - Changed mouse disabling code from depending on --enable-tiny
  6574. to its own flag, --disable-mouse. The --tiny option defines
  6575. this automatically, but now just mouse support can be disabled
  6576. if desired.
  6577. - File Browser supports the "Goto Directory"
  6578. - Added rcfile.c source file. Only includes much of anything when
  6579. --enable-nanorc is used. Tons of new funcs, most notably
  6580. do_rcfile() called from nano.c:main(). Added much needed
  6581. function ncalloc(), will have to go through source code later
  6582. and change the appropriate calls which used nmalloc for lack of
  6583. an appropriate calloc function *** FIXME ***
  6584. - After "Alternate" spell checker is called, cursor is repositioned on
  6585. the same line as before ^T was pressed.
  6586. - Moved config.h up in all .c files #include list (Albert Chin).
  6587. - Added config.guess and config.sub to distribution because,
  6588. apparently, newer autoconf/automakes can't live without them.
  6589. - Various spelling updates by David Lawrence Ramsey.
  6590. - Changed all string allocations to charalloc(), new function
  6591. designed to take nmalloc argument but call calloc based on
  6592. (char *) size.
  6593. - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping
  6594. and justify being disabled. This allows us to compile out the
  6595. -r flag if neither are set, and will also allow us to comment
  6596. out -W when it is written.
  6597. - Allow fill to take a negative value to signify a "from right side"
  6598. value. This allows the value to vary with the screen size yet
  6599. still be correct. New static value wrap_at to minimize code
  6600. impact. Updated man page and info file.
  6601. - Allow file appending. New shortcut list nano_insertfile_list (since
  6602. insert and write routines can't share shortcut lists anymore),
  6603. new args to do_writeout and write_file called append, and of source
  6604. code changes to those functions.
  6605. - Allow backwards searching. Drastic rewrite of the search prompt
  6606. string by Chris. All other code by Ken Tyler. New globals
  6607. nano_reverse_msg, new functions revstrstr and revstrcasestr,
  6608. many changes to search functions. Not too big a code size
  6609. increase!
  6610. - Moved extension functions (Case Sensitive, Regexp, and Backwards
  6611. Search, Append key in write file function) to Meta keys, as
  6612. people are complaining loudly about nano not being control-key
  6613. compatible with Pico, which is a Bad Thing (TM). Changes to
  6614. shortcut_init, toggle_init, new toggles for backwards and regexp
  6615. (and you can now toggle all search options including regexp at
  6616. the Search: prompt!) Changes to nanogetstr to enable Meta
  6617. keys to be grabbed, changes to onekey to print M-style shortcuts.
  6618. - New macro TOGGLE which just toggles, no more silly checking
  6619. ISSET and then using SET or UNSET when we want a simple toggle
  6620. for a flag.
  6621. - Added multiple buffer capability (God help us). New configure
  6622. option --enable-multibuffer (-F), changes to do_insertfile(),
  6623. do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(),
  6624. and write_file(), new functions add_open_file(),
  6625. open_file_change_name(), load_open_file(), open_file_dup_search(),
  6626. open_file_dup_fix(), open_prevfile(), open_nextfile(),
  6627. close_open_file(), get_full_path(), die_save_file(), etc.
  6628. (David Lawrence Ramsey).
  6629. - Using --enable-extra automatically defines --enable-multibuffer
  6630. changes to version() and configure.in.
  6631. - Moved to gettext 0.10.38 at the last second, sure to break
  6632. something, but at least I can run make distcheck!
  6633. - Makefile.am:
  6634. - Include ABOUT-NLS and the new THANKS files to the distributed list.
  6635. - THANKS:
  6636. - Initial, incomplete list of people to thank.
  6637. - Added some more people.
  6638. - configure.in:
  6639. - New option, --enable-nanorc, which allows people to have a .nanorc
  6640. initialization file and set options normally used on the command
  6641. line, and color later on.
  6642. - Added --enable-color option to allow color and syntax highlighting
  6643. (stub as of now).
  6644. - cut.c:
  6645. add_to_cutbuffer()
  6646. - Remove useless statements (Rocco).
  6647. cut_marked_segment()
  6648. - Add bizarre copy of bot node, else *BSD goes ballistic (fixes
  6649. BUG #60).
  6650. - Added 'destructive' argument. Allows the selected text to be
  6651. added to the cutbuffer without changing the contents of the
  6652. file. This allows writing selection to separate files.
  6653. do_cut_text()
  6654. - If the line is empty when using -k and wasn't already added,
  6655. create a dummy line and add it to the cutbuffer (fixes bug #61)
  6656. - Reset marked_cut if we blow away the cutbuffer.
  6657. - Moved the case of current == mark_beginbuf into cut_marked
  6658. segment, so do_writeout could call it when writing selection to
  6659. file.
  6660. do_uncut_text()
  6661. - Reset cutbuffer even if we're uncutting marked or cut to end text!
  6662. - faq.html:
  6663. - Brought the FAQ up to date, many little changes (Jordi).
  6664. - Added sections 3.7 and 3.8 for the multibuffer and nanorc support.
  6665. - files.c:
  6666. do_browser()
  6667. - Minor fixes to the processing of SELECT function (Rocco)
  6668. - Added the "Goto Directory" code (Rocco)
  6669. - Don't shift the size of the file is it's less than 1K. Fixed
  6670. files less than 1K being displayed as 0B (Rocco).
  6671. - More Picoish keystrokes for the browser, ^P, ^N, etc, for up,
  6672. down, etc, and add the consistent ^C to exit (Jim Knoble).
  6673. do_writeout()
  6674. - New code to allow writing selected text to a separate file.
  6675. When this is done, the current state is preserved.
  6676. write_file()
  6677. - New arg, nonamechange, means whether or not to update the
  6678. current filename after writing the file out.
  6679. - Increment lineswritten when the very last line isn't null.
  6680. Fixes off by one count when writing selection to file.
  6681. - global.c:
  6682. - Updated some of the lists for the "Goto Directory" code (Rocco)
  6683. - move.c:
  6684. page_up()
  6685. - Rewritten with a loop to make screen updates work when
  6686. mark is set (fixes bug #59).
  6687. do_home(), do_end()
  6688. - Don't keep cutbuffer.
  6689. - nano.1:
  6690. - Added the missing -r flag (Jordi).
  6691. - nano.c:
  6692. do_alt_speller()
  6693. - Reposition cursor on same line as before ^T was called (Rocco)
  6694. ABCD(), main()
  6695. - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
  6696. main()
  6697. - Code to silently process "-g" and "-j" (Rocco)
  6698. - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen).
  6699. signal_init()
  6700. - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and
  6701. SIGCONT from being interrupted, allows suspending nano
  6702. to work more reliably, esp. with mutt, etc.
  6703. do_suspend()
  6704. - Don't try to play with the handler inside the handler. Just
  6705. raise a SIGSTOP. We also now write the "use "fg"" message to
  6706. stdout instead of stderr.
  6707. - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke.
  6708. Eliminates the possibility that nano can be suspended when
  6709. it's not supposed to be. Many many many thanks to Jordi and
  6710. Tom Lear for helping out finding and fixing this bug!
  6711. do_cont()
  6712. - Now just does a refresh call instead of playing with the SIGTSTP
  6713. handler.
  6714. - nano.h:
  6715. - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco)
  6716. - proto.h:
  6717. - New shortcut list added: gotodir_list (Rocco).
  6718. - search.c:
  6719. do_gotoline()
  6720. - Optimizations, remove "$" goes-to-last-line, less messages (Rocco)
  6721. do_replace()
  6722. - If we manage to make it in somehow with VIEW_MODE on, abort
  6723. nicely (fixes BUG #59).
  6724. - utils.c
  6725. strcasestr()
  6726. - Replaced by mutt's mutt_stristr function, because the thought
  6727. of dynamically allocating memory and copying each line in a file
  6728. to do a search or replace was causing me to lose sleep.
  6729. - winio.c:
  6730. actual_x()
  6731. - Remove inline from function decl (Albert Chin).
  6732. - po/POTFILES.in:
  6733. - Added utils.c to the list.
  6734. - po/es.po, po/ca.po:
  6735. - Updated (Jordi).
  6736. - po/gl.po:
  6737. - Galician translation by Jacobo Tarrío.
  6738. - po/uk.po, po/ru.po:
  6739. - New Ukrainian and Russian translations by Sergey A. Ribalchenko
  6740. <fisher@obu.ck.ua>, thanks!
  6741. - po/id.po:
  6742. - Updated Indonesian translation by Tedi Heriyanto.
  6743. - po/it.po
  6744. - Updated Italian translation by Marco Colombo.
  6745. - po/no.po:
  6746. - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>.
  6747. - po/sv.po:
  6748. - New Swedish translation by Christian Rose <menthos@menthos.com>.
  6749. nano 1.1 tree forked here 04/07/2001
  6750. nano 1.0.1 - 04/06/2001
  6751. - General:
  6752. - added configure option --disable-wrapping. Does what it says,
  6753. no wrapping or checks are done. Separate from --enable-tiny,
  6754. some may want a bare-bones Pico clone that does wrap text.
  6755. Affects configure, nano.c:do_char() and check_wrap() obviously,
  6756. version(), and do_char().
  6757. - aclocal.m4:
  6758. - Minor patch for intl check (really this time) (Albert Chin)
  6759. - faq.html:
  6760. - Fixed typo in section 6.1 (discovered by Bob Farmer).
  6761. - files.c:
  6762. - fix two typos in comments, one in ChangeLog (Matthias Andree)
  6763. diralphasort()
  6764. - Stop abort on symlinks (Matthias Andree)
  6765. - use strcasecmp to sort directory if available, pilot does that
  6766. as well (Matthias Andree)
  6767. filestat(), do_browse()
  6768. - Changed lstat calls to stat, which fixes the browser not
  6769. following links to directories. We only use lstat() when
  6770. printing the details of the file, and if it is a link, then
  6771. check via lstat() for link to a directory. If it is
  6772. a directory, display (dir), else use the normal "--".
  6773. do_browser()
  6774. - Fix broken size suffix off-by-one errors (Matthias Andree)
  6775. cwd_tab_completion(), do_browse_from()
  6776. - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree).
  6777. - Changed above to use PATH_MAX only when defined on the
  6778. system, as the HURD e.g. does not support it.
  6779. - intl/Makefile.in:
  6780. distclean
  6781. - added intl/libintl.h to the rm -f rule, should fix the unresolved
  6782. gettext symbols problem (Jordi).
  6783. nano-1.0.0 - 03/22/2001
  6784. - General
  6785. - Added void to functions declared as () args, nano.c:do_mark()
  6786. and search.c:regexp_cleanup(). (Christian Weisgerber).
  6787. - Changed internal variables called "new" to "newnode" to avoid
  6788. the "new" C++ reserved word, even though there is likely no way
  6789. nano will EVER be compilable with a C++ compiler. (suggested by
  6790. Rocco Corsi).
  6791. - ca.po, es.po:
  6792. - Final tweaks for Nano 1.0.
  6793. - cs.po:
  6794. - Czech translation from Vaclav Haisman.
  6795. - nano.info:
  6796. - Added dir entry (Albert Chin).
  6797. - winio.c:
  6798. statusq()
  6799. - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right.
  6800. 1.0-test prerelease - 03/17/2001
  6801. - nano.c:
  6802. do_wrap()
  6803. - Added case for autoindenting text causing new line (Adam).
  6804. - Added SAMELINE case to above. Added checks to cases 1b and
  6805. 2b for placement of cursor.
  6806. - move.c:
  6807. page_down()
  6808. - Check for totlines < editwinrows in check for superfluous
  6809. edit update (fixed BUG #57).
  6810. - search.c:
  6811. print_replaced()
  6812. - s/occurence/occurrence typos (Jordi).
  6813. search_init()
  6814. - If using Pico mode and regex and same answer is entered, use
  6815. last_search string instead of answer (fixes BUG #56).
  6816. - nano.texi:
  6817. - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks).
  6818. nano-0.9.99pre3 - 02/19/2001
  6819. - General
  6820. GNU compliance issues:
  6821. - Reworked shortcut list, put "Get Help" into default list,
  6822. removed "Goto Line", aligned "Read File" with "Write Out" and
  6823. "Replace" with "Where is" for consistency.
  6824. - Added texinfo manual nano.texi. Added texi options to
  6825. Makefile.am.
  6826. - configure.in:
  6827. - Autoconf compatibility fixes (Pavel Roskin)
  6828. - Added separate check for resizeterm().
  6829. - ALL_LINGUAS: added hu and ca.
  6830. - cut.c:
  6831. do_cut_text()
  6832. - marked text cut fixes (Rocco) (Fixes bug #54).
  6833. - nano.c:
  6834. do_delete()
  6835. - Added check for current->next == fileptr, as we have a magic
  6836. line code again, fixes silliness at the end of the last line
  6837. before the magic line (reported by J.A. Neitzel).
  6838. do_justify()
  6839. - If the keystroke after the justify is not the unjustify key,
  6840. blank the statusbar (bug reported by Neil Parks).
  6841. main()
  6842. - Added ENABLE_NLS check around gettext stuff.
  6843. - winio.c:
  6844. do_yesno()
  6845. - Added localized yes, no and all strings to function and rewrote
  6846. handler for the new format.
  6847. - de.po:
  6848. - Translation updates by Florian König.
  6849. - fi.po:
  6850. - Translation updates by Pauli Virtanen.
  6851. - hu.po:
  6852. - Hungarian translation by Horvath Szabolcs.
  6853. - id.po:
  6854. - Translation updates by Tedi Heriyanto.
  6855. - es.po:
  6856. - Translation updates and grammatical/typo fixes (Jordi).
  6857. - ca.po:
  6858. - Catalan translation by Jordi Mallach :)
  6859. - Miquel Vidal <miquel@sindominio.net> went over it and corrected
  6860. many typos and completed bits that remained untranslated by error.
  6861. nano-0.9.99pre2 - 01/31/2001
  6862. General
  6863. - Removed center_x and center_y globals. center_y was
  6864. completely unused and center_x was only used a few places,
  6865. easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
  6866. - Deleted free_node, duplicate of delete_node, and changed all
  6867. free_node calls to delete_node.
  6868. - Fix for resizing the window in modes other than normal edit mode
  6869. Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
  6870. - files.c:
  6871. write_file()
  6872. - Don't free() realname on error, if it needs to be free()d later
  6873. it will be (fixes crash on successful write after failed write,
  6874. discovered by David Sobon).
  6875. username_tab_completion()
  6876. - Optimization and removal of useless vars (Rocco).
  6877. - Rewritten using getpwent (suggested by Rocco).
  6878. - Removed redundant conditional (Rocco).
  6879. real_dir_from_tilde()
  6880. - Rewritten using getpwent (suggested by Adam, much optimized by
  6881. Rocco).
  6882. - global.c:
  6883. - Don't define toggles global or toggle_init_one if using --tiny.
  6884. - nano.c:
  6885. do_justify()
  6886. - Added restoration of totsize after unjustify command.
  6887. usage()
  6888. - Add arg to -T help (Rocco).
  6889. global_init(), handle_sigwinch()
  6890. - Messy loops replaced with memset calls (Rocco).
  6891. do_alt_speller()
  6892. - Added code to parse multi-word alt_speller strings.
  6893. - Fix initialization before fork() (Rocco).
  6894. - proto.h:
  6895. - Fix do_credits() proto (oops!)
  6896. - winio.c:
  6897. nanogetstr()
  6898. - Sanity check for x overrunning the string buffer len.
  6899. nano 0.9.99pre1 - 01/17/2001
  6900. General
  6901. - Changed #ifdefs to check for both DISABLE_TABCOMP and
  6902. NANO_SMALL, makes tiny option leave out tab completion, which
  6903. should be left out in that circumstance. Saves at least 5k.
  6904. - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
  6905. back. (Rocco)
  6906. - Various #ifdef & #ifndef cleanups. (Rocco)
  6907. - Added message for when keypad goes awry. Added code in main and
  6908. function print_numlock_warning() to notify user, and added an
  6909. appropriate section in the faq to refer to this brokenness.
  6910. - Added macros in nano.h for magic values that might be unclear in
  6911. nano.c:global_init(). (Rocco)
  6912. - configure.in:
  6913. - Fix for _use_keypad check breaking slang support (Christian
  6914. Weisgerber).
  6915. - Changed to automatically define the 5 DISABLE variables when
  6916. NANO_SMALL (enable-tiny) is requested at configure.
  6917. - faq.html:
  6918. - Added some info on making the binary smaller with the configure
  6919. script.
  6920. - Added section on keypad bugginess.
  6921. - files.c:
  6922. real_dir_from_tilde()
  6923. - Oops, fix case where buf ="~", silly crash (bug discovered by
  6924. Neil Parks).
  6925. do_browser()
  6926. - Added space and - keys to do page up and down.
  6927. cwd_tab_completion(), input_tab()
  6928. - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
  6929. - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
  6930. - nano.c:
  6931. ABCD()
  6932. - New function, figures out what kbinput to return given
  6933. input common to several switch statements, allows us to
  6934. support the default Konsole key settings.
  6935. main()
  6936. - Alternate speller option no longer valid if DISABLE_SPELLER is
  6937. active. (Rocco)
  6938. - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
  6939. options when these have been disabled. (Rocco)
  6940. - Initialized kbinput to get around stupid compiler warning.
  6941. nano_small_msg()
  6942. - This function has been removed. All references now call
  6943. nano_disabled_msg. (Rocco)
  6944. version()
  6945. - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
  6946. variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
  6947. reported as enabled when Nano is called with -V (--version)
  6948. command line option. (Rocco)
  6949. usage()
  6950. - Alternate speller option no longer valid if DISABLE_SPELLER is
  6951. active. (Rocco)
  6952. window_init(), handle_sigwinch()
  6953. - Added check for not having enough LINES to do anything useful,
  6954. if so die with an error. (Rocco)
  6955. die_too_small()
  6956. - Function to print the window too small error message, avoids
  6957. repeated string defs and globals.
  6958. do_justify()
  6959. - Small fix for totsize calculation (Rob)
  6960. - fi.po:
  6961. - Update by Pauli Virtanen.
  6962. nano 0.9.25 - 01/07/2001
  6963. General -
  6964. - New file browser code. New functions in files.c:do_browser(),
  6965. helper functions browser_init(), tail(), striponedir(),
  6966. filestat(). New shortcut list browser_list. Some new
  6967. strings to translate. Added function do_browse_from().
  6968. - Keypad code has been changed slightly. Now checks for
  6969. _use_keypad flag in window to see whether or not to turn
  6970. the keypad() back off when finished (taken from aumix). Moved
  6971. to winio.c where it should probably be anyway. New configure
  6972. check for _use_keypad in window struct. This will have to do
  6973. for now.
  6974. - Moved keypad() calls for PDCurses from main() to window_init()
  6975. so the keypad continues to work after a Meta-X, for example.
  6976. Fixed bug #51.
  6977. - faq.html:
  6978. - Fix typos and small mistakes (Jordi).
  6979. - files.c:
  6980. username_tab_completion()
  6981. - Added the (char *) sizeof when allocating memory for the filename
  6982. array (Rocco).
  6983. cwd_tab_completion()
  6984. - removed skipping . and .. when tabulating matches.
  6985. - Added the (char *) sizeof when allocating memory for the filename
  6986. array (Rocco).
  6987. do_writeout()
  6988. - Now takes an argument so the string typed in can be retained
  6989. when calling the browser.
  6990. do_browser()
  6991. - Don't decrement longest by the length of path. Fixes crashes
  6992. on entering various dirs (Rocco).
  6993. - Don't ungetch() the exit key, unneeded, fixes inserting a file
  6994. causes exit code.
  6995. - move.c:
  6996. page_down()
  6997. - Don't do an edit_update when there is only one page of text
  6998. (fileage == edittop && filebot == editbot). Fixes Bug #50.
  6999. - nano.c:
  7000. main()
  7001. - Reorder the getopt options to be more or less alphabetical
  7002. (suggested by Sven Guckes).
  7003. - winio.c:
  7004. do_cursorpos()
  7005. - Optimizations and cleanups by Rocco Corsi.
  7006. do_credits()
  7007. - Spell Erik Andersen's name right.
  7008. titlebar()
  7009. - Now takes an arg, needed for browser function.
  7010. do_help()
  7011. - Changed way of temporarily bringing up shortcuts at the
  7012. bottom in the help screen (actually works).
  7013. - utils.c:
  7014. mallocstrcpy()
  7015. - Takes char pointers now instead of void (makes debugging a
  7016. helluva lot easier)
  7017. - Duh, don't do anything if src == dest!
  7018. - es.po:
  7019. - Updates for file browser (Jordi).
  7020. nano 0.9.24 - 12/18/2000
  7021. General
  7022. - Added --disable-help option, affects acconfig.h, configure(.in),
  7023. winio.c:do_help, nano.c:help_init,help_text_init,version.
  7024. - Changed filename to no longer use PATH_MAX, so it can work on the
  7025. HURD. Changes in files.c:write_file(), new function
  7026. nano.c:clear_filename(), many changed in main(), a few other
  7027. places. Please test this!
  7028. - Added -b, -e, and -f flags, which we ignore as nano provides
  7029. their functionality already.
  7030. - cut.c:
  7031. do_uncut_text()
  7032. - Fix renumbering bug when uncutting marked text at filebot.
  7033. - Fix screen not being displayed when we are uncutting marked
  7034. text at editbot (Bug discovered by Ken Tyler).
  7035. - Fix magic line not getting created when (you guessed it)
  7036. uncutting marked text at filebot (Ryan Krebs).
  7037. - files.c:
  7038. read_file()
  7039. - If we encounter an error and insert is not set, run new_file().
  7040. (bug discovered by Ben Roberts).
  7041. write_file()
  7042. - Change open call flags, basically copy joe's way of doing it so
  7043. a more recent version will actually be included in (un)stable.
  7044. - Remove useless fstat call.
  7045. open_file()
  7046. - Added check for S_ISBLK and S_ISCHR, don't open device files!
  7047. - nano.c:
  7048. renumber()
  7049. - Don't stupidly assign the value of prev->lineno if prev == NULL!
  7050. main()
  7051. - Added code to check for Alt-Alt (27-27) keystrokes and set the
  7052. next keystroke as a control sequence. New variable
  7053. modify_control_key. Removed #ifdef _POSIX_VDISABLE check
  7054. around Control-S,Q,Z handlers because we need it now for
  7055. the Alt-Alt-x code.
  7056. - Added --view option to getopt_long() call. Bug discovered
  7057. by Rocco Corsi.
  7058. help_init()
  7059. - Fix off by one error that was making ^G help in normal mode and
  7060. ^_ in Pico mode not be displayed in the help (bug discovered by
  7061. Rocco Corsi).
  7062. do_toggle()
  7063. - Added fix_editbot() call to fix improper redisplay of edit
  7064. window when using nohelp toggle (bug discovered by Rocco Corsi).
  7065. - nano.1, nano.1.html:
  7066. - Updated man page for -b, -e, -f and expanded explanation for -p.
  7067. - winio.c
  7068. do_help()
  7069. - Force keypad on so F-keys and PageUp/Down will work properly.
  7070. Added check for NANO_EXIT_FKEY to loop.
  7071. - utils.c:
  7072. new_magicline()
  7073. - Increment totsize!! We decrement it when we've read a file,
  7074. everywhere else it should automatically be incremented
  7075. nano 0.9.23 - 12/08/2000
  7076. General
  7077. - Changed --disable-spell to --disable speller. The term is
  7078. "speller" for -s, so it should be --disable-speller.
  7079. - files.c:
  7080. write_file()
  7081. - Added tmp check to TMP_OPT section (how appropriate).
  7082. - Added new consistency checking code from securityfocus
  7083. article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
  7084. - We now run check on result of lstat(), not stat(), to be
  7085. safer. New variable anyexists, we use still use realexists
  7086. later in the program.
  7087. - OOPS, line up link/unlink/rename check if conditional with
  7088. top if conditional. Option -l has been broken for 9 versions,
  7089. no one noticed?!
  7090. - Added saving perms at end of link so we can apply them to the
  7091. new file if --nofollow is used.
  7092. - winio.c:
  7093. edit_add()
  7094. - Off by one display error (fix by Rocco Corsi).
  7095. do_replace_highlight()
  7096. - New code to handle being past COLS (Rocco Corsi).
  7097. - Moved from search.c, as it's definitely a winio function now =)
  7098. update_line()
  7099. - More '$' display fixes (Rocco Corsi).
  7100. nano 0.9.22 - 12/02/2000
  7101. - General
  7102. - Username tab completion code, and cleaned up existing tabcomp
  7103. code. New functions real_dir_from_tide(), append_slash_if_dir(),
  7104. username_tab_completion is more than a stub now =-).
  7105. - Ignore key sequence 543 & 545, right control and alt keys in
  7106. windows. Affects main() and winio.c:nanogetstr().
  7107. - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
  7108. Is using a spell checker THAT difficult? =-)
  7109. - New function nano_disabled_msg(), to alert that certain
  7110. functions have been disabled, similar to nano_tiny feature.
  7111. - New configure options:
  7112. - Added configure argument --disable-tabcomp. Affects
  7113. bottom of files.c and write_file, utils.c:check_wildcard_match()
  7114. and winio.c:nanogetstr().
  7115. - New options --enable-extra. New code in nano.c:version() to
  7116. print out various options from ./configure, function do_credits().
  7117. - Added --disable-spell option for those who want to just disable
  7118. the spell check feature. Affects the spelling functions
  7119. do_spell, do_int_speller and do_alt_speller.
  7120. - Added --disable-justify to get rid of the justify function.
  7121. Affects do_justify() (not surprisingly).
  7122. - files.c:
  7123. write_file()
  7124. - Unsetting modified on temp files bug fixed (Rocco Corsi).
  7125. - Okay, if tmp == 1 and the file exists, we abort.
  7126. do_insertfile()
  7127. - Added call to real_name_from tilde, oops. Added check for
  7128. DISABLE_TABCOMP.
  7129. read_file()
  7130. - Added check for fileptr == NULL.
  7131. - global.c:
  7132. shortcut_init()
  7133. - Now takes an argument as to whether to display the unjustify
  7134. shortcut or the normal uncut text one. Needed to accommodate
  7135. the kludgey unjustify code.
  7136. - nano.1, nano.1.html:
  7137. - Updated date on pages because of -p changes.
  7138. - Added "NOTES" section, where I explain what nano.save & friends
  7139. are.
  7140. - Added a copyright notice for the manpage, under the GPL.
  7141. - Other minor changes.
  7142. - nano.c:
  7143. do_justify()
  7144. - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
  7145. text there, then grabs the next keystroke and, if the unjustify
  7146. key, gets rid of the justified text and calls do_uncut_text.
  7147. Added macro NANO_UNJUSTIFY_KEY.
  7148. do_int_spell*
  7149. - Various fixes (Rocco Corsi).
  7150. - Changed abort of program to aborting based on value of "edit a
  7151. replacement" question, and not caring about the replace loop
  7152. return value. That way the user can get out of the replace loop
  7153. and continue spell checking (very important to me anyway).
  7154. version()
  7155. - Took out huge check for the various --disabled macros,
  7156. eventually there will be too many to reasonably check for.
  7157. nano_small_msg(), nano_disabled_msg()
  7158. - Added checks for disabled functions to see whether or not to
  7159. declare them.
  7160. do_next_word()
  7161. - Update the previous line as well as the current one in case we
  7162. have moved beyond COLS or back from COLS, patch submitted
  7163. by Ryan Krebs.
  7164. die()
  7165. - Now creates .save file using variable-length strings. Also
  7166. calls write_file with tmp == 1, which happens to do exactly what
  7167. we want (abort on save file exists and use mode 0600).
  7168. handle_sighup()
  7169. - Now calls die instead of writing on its own and exiting normally.
  7170. - search.c:
  7171. do_replace_highlight()
  7172. - New function, displays the currently selected word as highlighted
  7173. in the spell check. Called from do_replace_loop (Rocco Corsi).
  7174. - Added calls to curs_set(0) and (1) to disable the cursor when
  7175. highlighting, looks much better.
  7176. - es.po:
  7177. - Traditional Spanish strings updates.
  7178. nano 0.9.21 - 11/23/2000
  7179. - AUTHORS
  7180. - Added Rocco Corsi.
  7181. - nano.c:
  7182. main()
  7183. - Changed check for argc == 1 to argv[optind] == NULL to decide
  7184. whether or not to display "New File" in the statusbar.
  7185. - search.c:
  7186. findnextstr()
  7187. - Fix current_x increment bug by using another variable (Rocco Corsi).
  7188. search_init()
  7189. - Silly typo in our "one simple call" of statusq. Stopped
  7190. previous search string from being displayed.
  7191. do_replace()
  7192. - Copy back the previous value of last_replace into answer if
  7193. using PICO_MODE and answer == ""
  7194. - winio.c:
  7195. do_up()
  7196. - Deleted first update_line() call, screws up display when marker is
  7197. set.
  7198. - nano.1, nano.1.html
  7199. - Updated man page for new -p definition.
  7200. nano 0.9.20 - 11/18/2000
  7201. - General
  7202. - Ran source through indent -kr again. Make everything pretty.
  7203. - Changed behavior of "search" and "replace" prompts to make all
  7204. previous values editable. This change was made so that you can
  7205. replace with the null string without needing a special key for it.
  7206. changed code in search_init(), do_replace(), nanogetstr (see
  7207. below).
  7208. - Added some missing gettext calls here and there (Jordi).
  7209. - Revamped nanogetstr() and calls to it to use variable length
  7210. strings.
  7211. MANY changes in nanogetstr(), many chances in search.c, new
  7212. function mallocstrcpy which is sure to be a programmatic
  7213. nightmare, changed last_search, last_replace, answer to
  7214. pointers. New function not_found_msg in search.c for displaying
  7215. truncated strings in statusbar when the string is not found
  7216. (-pedantic fixes by Rocco Corsi). We disable this feature when
  7217. using PICO_MODE (-p).
  7218. - New spelling code by Rocco Corsi. New functions
  7219. do_int_speller, do_alt_speller, changes to do_spell in nano.c,
  7220. New functions search_init_globals and do_replace_loop, changes
  7221. to search_init(), do_replace, findnextstr, moved last_search and
  7222. last_replace back to nano.c (*shrug*).
  7223. - New tab completion code. Used check_wildcard_match, input_tab,
  7224. cwd_tab_completion, username_tab_completion from busybox,
  7225. hacked them a lot, changes to nanogetstr(). nanogetstr() and
  7226. statusq() now take an arg for whether or not to allow tab
  7227. completion.
  7228. - Fixed value being input in statusbar during a search or replace
  7229. and CASE_SENSITIVE or the other search is called and the
  7230. string being typed in is blown away. Reported by Ken Tyler.
  7231. - Changed PICO_MSGS flag to PICO_MODE, changed help strings
  7232. accordingly.
  7233. - files.c:
  7234. do_writeout()
  7235. - Change strcpy to answer to mallocstrcpy.
  7236. - global.c
  7237. - New global replace_list_2, for 2nd half of the replace dialog
  7238. ("Replace with:"), has fewer options than first half because
  7239. they were inappropriate.
  7240. toggle_init()
  7241. - Added #ifdef around toggle_regex_msg to get rid of compiler
  7242. warning.
  7243. - nano.c:
  7244. keypad_on()
  7245. - New function, toggles turning the keypad on and off in edit and
  7246. bottomwin(). Added call to this in finish(), fixes bug #45.
  7247. - search.c
  7248. findnextstr()
  7249. - New arg for begin_x variable, basically a rewrite that
  7250. makes a little more sense and isn't quite as messy (Rocco Corsi).
  7251. - Update the line we're checking if not the whole screen, because
  7252. it's quite possible the search team could exist somewhere way
  7253. to the right on the same line, for example.
  7254. replace_abort()
  7255. - Add reset of placewewant, stops cursor from jumping when moving
  7256. cursor after a replace.
  7257. do_replace()
  7258. - Added code for Gotoline key after entering the search term.
  7259. Fixes bug #46.
  7260. - Removed redundant code involving processing replacement string.
  7261. Converted if statements to switch statements.
  7262. - Optimizations by Rocco Corsi.
  7263. - Removed code for deleted shortcuts from in replace_list_2.
  7264. do_search()
  7265. - Converted if statements to one switch statement.
  7266. - winio.c
  7267. nanogetstr()
  7268. - Added check for 343 in while loop to get rid of getting "locked"
  7269. into statusbar" bug in odd $TERMs like iris-ansi.
  7270. - Changed check to return -2 on "enter" from answer == ""
  7271. to answer == def.
  7272. - Fixed fallthrough code because there was no break. Make much
  7273. more sense now.
  7274. - Added check for ASCII 54[124] when using PDCurses, ignore them
  7275. if noticed.
  7276. nanoget_repaint()
  7277. - New function, removes about 30 lines of duplicate code in
  7278. nanogetstr().
  7279. - Black magic code to make $ appear in prompt if we're past
  7280. COLS.
  7281. blank_edit()
  7282. - Removed wrefresh() call, much less choppy now. If there's a need
  7283. for a wrefresh after a specific call, let me know.
  7284. - es.po:
  7285. - Updated translation for 0.9.20 (Jordi).
  7286. nano 0.9.19 - 10/02/2000
  7287. - General
  7288. - Added PDCurses support under cygwin, which allows building
  7289. a nice stand-alone nano.exe for those poor Windows users.
  7290. Extra check in configure.in for initscr() in -lcurses (as
  7291. PDcurses has no tgetent), some #ifdef PDCURSES statements
  7292. in main().
  7293. - Changed web site and email to new nano-editor.org domain.
  7294. - nano.c
  7295. - Added (int) casts to remove compile warnings with -Wall.
  7296. main()
  7297. - Added check for _POSIX_VDISABLE around term variable definition.
  7298. - search.c
  7299. - Added initializations for last_search and last_replace (Rocco Corsi)
  7300. nano 0.9.18 - 09/18/2000
  7301. - General
  7302. - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
  7303. added check for regex.h in configure.in.
  7304. - configure.in:
  7305. - Added default case for cross-compiling to get rid of annoying
  7306. AC_TRY_RUN warning.
  7307. - cut.c:
  7308. do_cut_text()
  7309. - Don't immediately abort if we're on filebot and the marker is
  7310. set (fixes bug #42).
  7311. - files.c:
  7312. open_file()
  7313. - Fix for bug #44 (Rocco Corsi).
  7314. - global.c:
  7315. shortcut_init()
  7316. - Added in FKEYs that for some reason were left out. *boggle*
  7317. - nano.c:
  7318. main()
  7319. - Added check for _POSIX_VDISABLE and use raw mode if not
  7320. available, allows nano to work with cygwin.
  7321. - Added gettext calls to enable/disable strings (Jordi).
  7322. - Revamped a great deal of the F-key and keypad key handling,
  7323. because we not longer use keypad() (see below).
  7324. - Removed keypad() call because nano was not working with the
  7325. keypad in many terms, which is very bad.
  7326. - Made insert key call do_insertfile().
  7327. do_toggle()
  7328. - Rewrote function to allow NOHELP toggle to work on systems
  7329. without a working resizewin(). New function window_init().
  7330. mouse_init()
  7331. - Add keypad only if mouse support is on, otherwise mouse doesn't
  7332. work. I guess you have to choose between having the mouse and
  7333. having a working keypad for the time being (thank god for Meta-M).
  7334. - winio.c:
  7335. total_refresh()
  7336. - Added titlebar() call.
  7337. onekey()
  7338. - Off by one error fix fix ;-) (Rocco Corsi).
  7339. - search.c:
  7340. findnextstr()
  7341. - Reset starting at current for search instead of begin.
  7342. - es.po:
  7343. - Translated new strings and minor updates (Jordi).
  7344. - de.po
  7345. - Revised translations by floki@bigfoot.com
  7346. nano-0.9.17 - 09/04/2000
  7347. - General
  7348. - New shortcuts to toggle certain options that are normally only
  7349. flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
  7350. toggles in nano.h, toggle_init(), toggle_init_one() in global.c
  7351. called from shortcut_init(), and do_toggle in nano.c. Also
  7352. moved the signal code into a separate function in nano.c called
  7353. signal_init(). Moved "struct sigaction act"into a static in
  7354. nano.c.
  7355. - Changed from Alt-key symbol (@) which is completely nonstandard
  7356. to the *nix "Meta" symbol (M-). Changed help_init to show
  7357. the M-key usage and the help text to explain keys which generate
  7358. Meta. Moved the toggle Meta keystrokes to the first column
  7359. instead of the third as they are the primary keystrokes for the
  7360. functions. Thanks Mini editor team :->
  7361. - Changed last_search and last_replace vars to statically
  7362. allocated (hence nulled) and moved to search.c (Matt Kraai).
  7363. - global.c:
  7364. toggle_init()
  7365. - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
  7366. "Help mode". See the change to do_toggle() below.
  7367. - nano.c:
  7368. do_mouse()
  7369. - Patch for handling lines w/tabs and mouse better (Ben Roberts).
  7370. do_wrap()
  7371. - Made wrapping code less ambitious.
  7372. do_toggle()
  7373. - Added checks for no help and no wrap mode, and print opposite
  7374. enable/disable message.
  7375. do_suspend(), do_cont():
  7376. - New functions, handle suspend signal in a Pico-like manner and
  7377. work with Meta-Z.
  7378. - winio.c:
  7379. total_refresh()
  7380. - Added edit_refresh() call to actually update the screen if messy.
  7381. edit_refresh_clearok()
  7382. - New function, does a total update for edit refresh, needed to fix
  7383. lack of reversed text on searching with MARK_ISSET.
  7384. onekey()
  7385. - Off by one error fix (Rocco Corsi).
  7386. update_line()
  7387. - Added check for binary data >= 1 and <= 26, and use ^+letter
  7388. to display it. Should fix editing text files with binary
  7389. data in them. Placing of the cursor seems to be a bit screwed
  7390. though...
  7391. - search.c:
  7392. search_abort()
  7393. - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
  7394. ugliness bug (reported by Ken Tyler).
  7395. findnextstr():
  7396. - Added reset for placewewant (Ben Roberts).
  7397. - Fixed check for string that only occurs on the same line failing
  7398. (discovered by Ken Tyler).
  7399. nano-0.9.16 - 08/09/2000
  7400. - cut.c:
  7401. do_cut_text()
  7402. - Fixed getting locked into cutbuffer on cutting first line of file.
  7403. - Added check_statblank().
  7404. - Check for fileptr == filebot, if so return, we shouldn't bother
  7405. cutting the magic line.
  7406. do_uncut_text()
  7407. - Added check_statblank().
  7408. - nano.c:
  7409. main()
  7410. - Changed tabsize long arg to actually accept an argument *sigh*.
  7411. - po/Makefile.in.in:
  7412. - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
  7413. Christian Weisgerber)
  7414. - configure.in:
  7415. - New (and severally revised =) slang test code (Albert Chin-A-Young)
  7416. nano-0.9.15 - 08/03/2000
  7417. - Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
  7418. Affects many many functions. Removed functions edit_update_top and
  7419. edit_update_bot.
  7420. - Added global variable tabsize, we no longer screw with the curses
  7421. library in order to implement -T (suggested by Christian Weisgerber).
  7422. - configure.in:
  7423. - Finally fixed check for slang to report "no" if not called
  7424. with --with-slang or --without-slang
  7425. - nano.c:
  7426. splice_node()
  7427. - New function, abstracts linking in nodes. Fixes bug #36.
  7428. null_at()
  7429. - New function, nulls a string at a given index and realigns it.
  7430. delete_buffer()
  7431. - Removed, same as free_filestruct().
  7432. do_backspace()
  7433. - Now calls page_up_center instead of page_up (as it should?)
  7434. do_enter()
  7435. - Fixed typo (?) in check for inptr->next. Caused lots of
  7436. grief for editing lines at filebot.
  7437. main()
  7438. - Removed now useless usertabsize variable (Christian Weisgerber).
  7439. - search.c:
  7440. replace_abort()
  7441. - redundant, now just calls search abort until it does something
  7442. different.
  7443. - winio.c:
  7444. edit_refresh()
  7445. - Added check for current line "running" off the screen.
  7446. Hopefully this will not cause any recursive lockups.
  7447. (Who am I kidding, of course it will!)
  7448. - Added check to stop infinite loop calling edit_update.
  7449. edit_update()
  7450. - Rewritten, hopefully this will remove a lot of the
  7451. scrolling the cursor back and forth needlessly.
  7452. - move.c:
  7453. page_down()
  7454. - do an edit_update() at last case. Made function more like
  7455. Pico's version, only move down to two lines before editbot.
  7456. page_up()
  7457. - Made function more like Pico's version, only move down to two
  7458. lines after edittop.
  7459. nano-0.9.14 - 07/27/2000
  7460. - nano.h:
  7461. - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
  7462. - cut.c:
  7463. do_cut_text()
  7464. - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
  7465. - Simplified check for freeing cutbuffer. Added checks for doing
  7466. multiple cuts with -k, now sets marked_cut to 2 for later
  7467. processing by do_uncut_text().
  7468. do_uncut_text()
  7469. - Added handler for uncutting with -k cuts.
  7470. - files.c:
  7471. write_file()
  7472. - Removed (redundant) check for writing out files with -t.
  7473. do_writeout()
  7474. - Changed check for filename to filename[0]. Added some code,
  7475. overall fixes bug #30 =-)
  7476. - nano.c:
  7477. do_justify() & do_wrap():
  7478. - totsize-related fixes (Rob)
  7479. - de.po
  7480. - Revised translations by floki@bigfoot.com
  7481. nano-0.9.13 - 07/23/2000
  7482. - Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
  7483. affects do_cut_text in cut.c. Not available with SMALL_NANO because it
  7484. depends on the marker code which is not available with that setting.
  7485. - Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
  7486. -t with an unwritable file causes users to get locked into editor).
  7487. - move.c
  7488. page_down()
  7489. - Don't edit_refresh() if the bottom of the file is in the edit
  7490. buffer. (Adam)
  7491. - nano.c:
  7492. main():
  7493. - TABSIZE now set before first call to edit_refresh (Bill Soudan)
  7494. - Different ^C kill code (patch by Christian Weisgerber).
  7495. die():
  7496. - More intelligent emergency-save filename selection (Rob)
  7497. do_spell():
  7498. - Changed exit semantics a bit so that aspell wouldn't get
  7499. all screwy (bug discovered by Joshua Jensen.
  7500. - files.c:
  7501. read_file():
  7502. - Added init of buf variable, hopefully this will stop the
  7503. "bleeding" of text seen with mutt and using i18n.
  7504. write_file():
  7505. - Added code to check to see if using -l and the file is not
  7506. in fact a link. This should fix the behavior where a file
  7507. that does not have write permission but could be removed and
  7508. rewritten is saved without error. Please test this feature
  7509. and give feedback.
  7510. - search.c:
  7511. search_init():
  7512. - Added " (to replace)" statement to end of search string if
  7513. we are doing a replace. Manually converted all the translations
  7514. from '%s' to '%s%s' to ensure they still work with the new code.
  7515. Also put in the translation for " (replace)" in the .po's. Hope
  7516. I didn't step on your toes doing this Jordi. (Chris)
  7517. do_search(), do_replace():
  7518. - Removed call to search_abort()/replace_abort() before call to
  7519. the opposite function.
  7520. - Fixed bug #28.
  7521. findnextstr()
  7522. - do not center string found if it is currently visible. (Adam)
  7523. - fr.po:
  7524. - French update by Clement Laforet <clem_laf@wanadoo.fr>.
  7525. - es.po:
  7526. - Updated strings to 0.9.13 (Jordi).
  7527. nano-0.9.12 - 07/07/2000
  7528. - all:
  7529. - New regexp search feature by Bill Soudan. New flags USE_REGEXP
  7530. and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
  7531. replace_line, replace_regexp in search.c, changes to
  7532. search_init() and do_replace() and strstrwrapper().
  7533. - Added _POSIX_VERSION check to regexp code. Better than nothing
  7534. for non-POSIX systems...
  7535. - Made search functions & keys more like Pico. Added goto line from
  7536. search and replace function, changed wording to "No Replace" instead
  7537. of "To Search", "To Replace" to simply "Replace", and changed to
  7538. Pico's keystroke by default, ^R. Affects search_init(),
  7539. do_search() in search.c, globals in nano.h and
  7540. shortcut_init() in global.c.
  7541. - changed 'sprintf' calls to safer 'snprintf' (Rob)
  7542. - cut.c
  7543. - further totsize update corrections
  7544. - files.c:
  7545. - changed do_insertfile to call fix_editbot (Rob)
  7546. - Magic Line code in read_file (Rob)
  7547. - nano.c:
  7548. - Removed dual alt_speller variables, oops! (Rocco Corsi)
  7549. - Removed unnecessary do_oldspell function (Rocco Corsi). Added
  7550. SMALL_NANO #ifdef around actual spell function.
  7551. - Moved page_up() to move.c where is belongs.
  7552. - Corrected FIXME in do_enter with explanation. (Rob)
  7553. - Fixed FIXME in do_justify, resulted in creation of
  7554. fix_editbot [also fixed in do_enter] (winio.c) (Rob)
  7555. help_init():
  7556. - Moved newline out of if statement (Rocco Corsi)
  7557. do_char():
  7558. - Magic Line related code in do_char (Rob)
  7559. do_backspace(), do_delete():
  7560. - Added magic line code here too.
  7561. - de.po:
  7562. - Revised translations by floki@bigfoot.com.
  7563. - fi.po:
  7564. - Finnish translation by pauli.virtanen@saunalahti.fi.
  7565. - utils.c:
  7566. - Added new_magicline()
  7567. - winio.c:
  7568. - Added stdlib.h to includes, found by OpenBSD gcc.
  7569. - lots of new commenting around display functions
  7570. do_yesno(), nanogetstr():
  7571. - Removed now unnecessary raw/cbreak combos.
  7572. - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
  7573. we decide if those keybindings should be translated. (Jordi)
  7574. clear_bottomwin():
  7575. - Removed wrefresh(edit) call.
  7576. edit_update_top():
  7577. - Fixed a bug that caused nano to not update when
  7578. current->next == NULL (e.g. paging down to the very bottom of
  7579. ABOUT NLS wouldn't work).
  7580. fix_editbot:
  7581. - Added (should rebuild editbot from a valid edittop) (Rob)
  7582. edit_add:
  7583. - removal of redundant call to mvwaddnstr
  7584. nano-0.9.11 - 06/20/2000
  7585. - New flag "-T" or "--tabsize" to specify how to display tab widths.
  7586. Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
  7587. winio.c, and nano.h. Many hardcoded "8"s have been changed to the
  7588. TABSIZE int. Added changes to nano.1 and nano.1.html.
  7589. - id.po:
  7590. - Indonesian translation by Tedi Heriyanto.
  7591. - es.po:
  7592. - Updated translation (Jordi Mallach).
  7593. - winio.c
  7594. - Rewrite of display functions to correct the display problems
  7595. we had been seeing. Affects: add_marked_sameline, edit_add,
  7596. and many others. (Rob Siemborski)
  7597. - totsize fixes (Rob Siemborski)
  7598. total_refresh():
  7599. - Cut display_main_list call, as this function is only supposed to
  7600. refresh what's already on the screen, not go through the process
  7601. of adding the text again.
  7602. - cut.c:
  7603. - totsize fixes (Rob Siemborski)
  7604. - nano.c:
  7605. - experimental do_wrap and check_wrap (Adam Rogoyski)
  7606. - Removed editwineob, as it was redundant for (editwinrows - 1).
  7607. Changed all calls to editwinrows - 1 in nano.c and move.c.
  7608. - Removed all functions that were split into other files.
  7609. Affects LOTS of funcs.
  7610. do_enter():
  7611. - Added reset of placewewant to end.
  7612. do_insertfile():
  7613. - Fix display problem when using ctrl-r to load a file
  7614. into the buffer (Rob Siemborski)
  7615. handle_sigwinch():
  7616. - Added titlebar(), edit_refresh() and display_main_list() calls
  7617. because a resize wasn't picking up on possible different width
  7618. correctly.
  7619. - utils.c:
  7620. - Moved nmalloc() and nrealloc() here.
  7621. - move.c:
  7622. - New file, contains movement functions (like do_home(), do_up(),
  7623. do_down(), page_up(), etc...).
  7624. - files.c:
  7625. - Contains functions for files (read_file, insert_file,
  7626. do_writeout(), etc).
  7627. - search.c:
  7628. - Contains all our searching and related functions, (do_search(),
  7629. findnextstr(), do_replace(), do_gotoline()).
  7630. nano-0.9.10 - 06/04/2000
  7631. - es.po:
  7632. - Translation updates (Jordi).
  7633. - AUTHORS, nano.1.html, TODO, README:
  7634. - Documentation and email address updates (Jordi).
  7635. - nano.c:
  7636. main():
  7637. - Moved Adam's termio code down to after getopt() and before initscr()
  7638. to stop people losing their SIGINT character when using args that
  7639. exit nano before it runs (--version, --help, etc).
  7640. nano-0.9.9 - 05/31/2000
  7641. - Makefile.am:
  7642. - Added proper lines for defining LOCALEDIR.
  7643. - configure.in:
  7644. - Spelling fixes (Jordi Mallach)
  7645. - Removed CFLAGS changes for gcc, reduces portability according to
  7646. some, and it certainly doesn't seem to decrease exe size.
  7647. - es.po:
  7648. - Spanish translation updates (Jordi Mallach)
  7649. - POTFILES.in:
  7650. - Added global.c file, was screwing up translations (i.e. they
  7651. weren't getting done).
  7652. - cut.c:
  7653. add_to_cutbuffer():
  7654. - Added totsize increment.
  7655. - Cut fixes and optimizations (Rob Siemborski).
  7656. do_uncut_text():
  7657. - Added totsize increment in several places.
  7658. - nano.c:
  7659. headers:
  7660. - Removed LOCALEDIR define.
  7661. do_justify():
  7662. - Added edit_refresh() call (bug discovered by Adam).
  7663. page_down_center():
  7664. - Added call to edit_update(current) for last case. Removed
  7665. increment of current_y since it's now just wasteful.
  7666. do_enter():
  7667. - Added totsize increment.
  7668. renumber(), renumber_all():
  7669. - Removed totsize-- and totsize init in renumber_all.
  7670. do_mouse():
  7671. - Added edit_refresh() call to show highlight updates. Removed
  7672. unnecessary wrefresh(edit).
  7673. main():
  7674. - Moved up locale calls so that translated --help messages would
  7675. actually get translated.
  7676. do_backspace(), do_delete():
  7677. - Added decrement of totsize.
  7678. init_help_msg():
  7679. - New function, initializes help text if NANO_SMALL isn't set (fixes
  7680. broken i18n).
  7681. read_file():
  7682. - malloc call changed to nmalloc (Rob Siemborski).
  7683. - winio.c:
  7684. total_refresh():
  7685. - Completely rewrote function, not quite so brain-damaged now.
  7686. nano-0.9.8 - 05/18/2000
  7687. - nano.c:
  7688. main():
  7689. - Added awesome code that disables the CINTR and CQUIT
  7690. character (Adam Rogoyski). Removed raw()/noraw() calls so that
  7691. nano gets input in 'normal' mode, which is the Right Way(tm) to
  7692. do it. ^S, ^Z and ^Q now work properly as a result, as well as
  7693. ^C. New variable term, global variable oldterm to save previous
  7694. term settings, and changes to finish() and die().
  7695. - Added extra #ifdefs in getopt code, so that above code and
  7696. flag init is run even if GETOPT_LONG is not #defined.
  7697. - Added memset line before sigactions. (Adam Rogoyski)
  7698. do_suspend():
  7699. Removed function, see above for why.
  7700. - winio.c:
  7701. update_line(), center_cursor():
  7702. - Removed wrefresh(edit) from bottom of functions. wrefresh
  7703. should now only be called once, at the bottom of the main()
  7704. loop.
  7705. - global.c:
  7706. shortcut_init():
  7707. - Removed suspend sc_init call and suspend message because suspend
  7708. is no longer needed in the shortcut list to work properly.
  7709. nano-0.9.7 - 05/14/2000
  7710. - nano.c:
  7711. do_home(), do_end():
  7712. - Added calls to update_line for the current line, fixes
  7713. lack of update (bug discovered by Alberto García).
  7714. main():
  7715. - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
  7716. following symlinks even when -l isn't set, and "no changes"
  7717. error when nano is called from crontab -e (Adam Rogoyski).
  7718. - cut.c:
  7719. do_cut_text():
  7720. - Added edit_update_top to cut when mark is set, fixes lack of
  7721. display update (bug discovered by Ken Tyler).
  7722. nano-0.9.6 - 05/08/2000
  7723. - New Italian translation (it.po), by Daniele Medri.
  7724. - nano.c:
  7725. page_up(), page_down():
  7726. - Added reset of placewewant to 0, as it should be.
  7727. do_up(), do_down():
  7728. - Added call to update_line() for line we move from and line we
  7729. move to, in order to keep the highlighting correct.
  7730. do_wrap():
  7731. - Added var chop, new code to wrap lines more like Pico, mostly.
  7732. THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
  7733. - winio.c:
  7734. do_help():
  7735. - Added edit_refresh() before exit.
  7736. update_cursor():
  7737. - Removed cursor updating which really wasn't needed anyway.
  7738. edit_update():
  7739. - Removed yucky code that didn't work, this function now just
  7740. computes edittop and editbot and calls edit_refresh() to do the
  7741. rest, which removes a lot of duplicate code...
  7742. nano-0.9.5 - 05/01/2000
  7743. - Removed bytes from file struct because it was computationally wasteful.
  7744. - cut.c:
  7745. do_uncut_text():
  7746. - Added call to edit_refresh().
  7747. - nano.c:
  7748. do_backspace():
  7749. - Added reset of editbot when deleting the last line of the file
  7750. (bug discovered by Adam).
  7751. do_char():
  7752. - Removed call to reset_cursor().
  7753. do_delete():
  7754. - Added similar check as to do_backspace().
  7755. do_enter():
  7756. - Added call to edit_refresh().
  7757. do_left(), right():
  7758. - Added call to update_line(), still redundant but better...
  7759. do_up(), do_down():
  7760. - Added refresh calls both for current line and line to which
  7761. we are moving.
  7762. main():
  7763. - Removed inefficient call to edit_refresh() after every keystroke.
  7764. It is now up each function to leave the screen in a good state.
  7765. - winio.c:
  7766. do_cursorpos()
  7767. - Rewritten to not use bytes from filestruct by an incremental sum.
  7768. update_line(), reset_cursor():
  7769. - Optimized calls to xplustabs() through a single variable.
  7770. - update_line() now takes a new arg, an index into the string
  7771. for where to update the line from. Needed for new update
  7772. code.
  7773. - configure.in:
  7774. - Better checks for slang, allows argument to --with-slang.
  7775. (Albert Chin-A-Young)
  7776. - Removed -Iintl from CFLAGS in gcc check.
  7777. - Makefile.am:
  7778. - Addition of -Iintl for gettext (Albert Chin-A-Young)
  7779. nano-0.9.4 - 04/25/2000
  7780. - Fixed calls to no_help and changed them to the more consistent
  7781. ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
  7782. not 1. Code to temporarily disable NO_HELP when in the
  7783. help system. (Adam Rogoyski)
  7784. - cut.c:
  7785. do_marked_cut(), do_cut(), do_uncut():
  7786. - Commented out unnecessary bits when NANO_SMALL is being used.
  7787. - winio.c:
  7788. xpt(), strlenpt(), actual_x():
  7789. - Added check for value of data[i] & 0x80, if so do not make
  7790. character 2 chars wide (orig. by Chris, 0x80 check by Adam).
  7791. edit_refresh():
  7792. - New check for temp == NULL (bad thing), if so go back to the
  7793. previous line. New filestruct var hold points to prev line.
  7794. Fixes segfault when paging down to the end of a file.
  7795. - nano.c:
  7796. write_file():
  7797. - Added check for if file exists and is not equal to the current
  7798. filename, prompt for overwrite (Adam Rogoyski).
  7799. do_down():
  7800. - Removed check for current->next == NULL, now checks return value
  7801. of do_down before setting current_x = 0 (discovered by Adam).
  7802. do_justify():
  7803. - Fixed segfault when reaching the last line (tried to assign
  7804. current->next->data when current->next == NULL) (discovered
  7805. by Adam).
  7806. - utils.c:
  7807. - Removed extra macro defs that are now in nano.h.
  7808. - nano.h:
  7809. - Changed macro SET() to use |= instead of ^=. Fixes bug in
  7810. cut code when cutting more than one line, and cutbuffer gets
  7811. blown away when it shouldn't.
  7812. nano-0.9.3 - 04/29/2000
  7813. - cut.c:
  7814. do_marked_cut():
  7815. - Fixed off by one error in cut code for marked text.
  7816. do_cut_text():
  7817. - Removed check for being on the last line, part of
  7818. magic line code.
  7819. add_to_cutbuffer():
  7820. - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
  7821. - Added inptr->prev = NULL for case where cutbuffer == NULL.
  7822. - nano.c:
  7823. do_backspace(), do_char():
  7824. - Removed "magic line" code. It was basically causing more bugs
  7825. than it was helping for the sake of compatibility. This fixes
  7826. at least one known segfault condition.
  7827. do_enter():
  7828. - Added setting editbot to new node if the new node is the last
  7829. node in the file.
  7830. write_file():
  7831. - Changed writing file behavior. Now, if last line of the file
  7832. has any data on it, we write a newline on it, else we don't.
  7833. - winio.c:
  7834. add_marked_sameline():
  7835. - New code that checks for whether the begin and end of the marker
  7836. are on different lines. Missing previously.
  7837. edit_add():
  7838. - added some more checks for text length. Cleaned up some
  7839. mvwaddnstrs that could be written more simply as waddnstrs.
  7840. edit_refresh():
  7841. - Removed check for temp == filebot, it is now treated like any other
  7842. line. Fixes a bug where selected text on the last line shows
  7843. normally.
  7844. xpt():
  7845. - Removed an extra computation for tabs variable that was incorrect.
  7846. xplustabs():
  7847. - Since xpt now actually works, this func is now just a wrapper for
  7848. xpt(current, current_x)
  7849. - nano.1, nano.1.html:
  7850. - Added -l option to man pages.
  7851. - configure.in:
  7852. - New option --enable-tiny, #defines NANO_SMALL in config.h.
  7853. Disables call to gettext in functions and other i18n stuff in
  7854. nano.c, the detailed help mode, the resize functions, and the
  7855. justify code which no one ever uses.
  7856. - New option --with-slang. Enables slang libraries instead of
  7857. ncurses, requires slcurses.h for wrapper functions. (Based
  7858. on patches for 0.8.7 by Glenn McGrath).
  7859. nano-0.9.2 - 04/15/2000
  7860. - This release just fixes the serious segfault problem if nano is
  7861. invoked any way other than using the absolute path. The bug was
  7862. in the new code for checking whether nano is invoked as 'pico'.
  7863. nano-0.9.1 - 04/14/2000
  7864. - Added Pico compatibility for ^T when in search or switch to switch
  7865. to the opposite function. Added one to REPLACE_LIST_LEN and
  7866. WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
  7867. new strings that will have to be gettext()ed. New argument 'replacing'
  7868. to search_init(). Handlers in do_replace and do_search().
  7869. - New write code, now follows symbolic links instead of replacing them
  7870. with the new file. New option (-l, --nofollow) to enable the old
  7871. (incorrect, but secure) behavior (Adam Rogoyski).
  7872. - nano.c:
  7873. do_wrap():
  7874. - Fixed another bug relating to wrapping, and which would cause
  7875. a segfault *sigh*.
  7876. do_replace():
  7877. - Incremented current_x by the length of the replacement
  7878. text inside the main replace loop. Fixes bug #15.
  7879. add_marked_sameline():
  7880. - New function, handles marked text when start & end of marker is
  7881. on one line, also supports most marked text when cursor > COLS.
  7882. main():
  7883. - Code to check if nano is invoked as 'pico', and if so
  7884. automatically set pico_msgs (Robert Jones).
  7885. nano-0.9.0 - 04/07/2000
  7886. - nano.1, nano.1.html: Updated man page with my email address and homepage.
  7887. - winio.c:
  7888. reset_cursor(), update_line():
  7889. - Changed update algorithm for x value to (COLS - 7) multiple when x
  7890. value > (COLS - 2).
  7891. - edit_refresh():
  7892. - Removed inner loop code, now calls update_line() for each line
  7893. in question, MUCH nicer.
  7894. - xplustabs(), xpt():
  7895. - Removed redundant increment of tabs when column no % 8 == 0.
  7896. - Added check for data[i] < 32, most of such bits are 2 chars wide.
  7897. - update_line():
  7898. - Fixed a stupid call to strlenpt with col when we should have
  7899. been using actual_col. Ugh.
  7900. nano-0.8.9 - 03/22/2000
  7901. - nano.c:
  7902. empty_line(), no_spaces(), justify_format(), do_justify():
  7903. Actually added these (screwup applying patch).
  7904. do_justify(): Added call to set_modified().
  7905. nano-0.8.8 - 03/12/2000
  7906. - Preliminary internationalization support. Many many functions modified
  7907. to use gettext (via _() macro). es.po file included. (Jordi Mallach)
  7908. New dirs po/ and intl/, changes to configure.in and Automake.am to
  7909. support i18n.
  7910. - nano.c:
  7911. includes: Added sys/param.h and limits.h. (Adam Rogoyski).
  7912. statics: Changed some things that were not necessarily static
  7913. (Adam Rogoyski).
  7914. nrealloc(): New function, similar to nmalloc(). Changed calls from
  7915. realloc() to nrealloc (Adam Rogoyski).
  7916. empty_line(), no_spaces(), justify_format(), do_justify():
  7917. New functions for justify function (Adam Rogoyski).
  7918. - winio.c:
  7919. blank_edit(): Added wrefresh call to edit so that screen updates (like
  7920. on ^L) actually work.
  7921. xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
  7922. nano-0.8.7 - 03/01/2000
  7923. - main.c:
  7924. do_wrap(): Better fix for segfaults, and fix for lines being wrapped
  7925. to a single character on one line when no good place to
  7926. break the line exists, and for wrapping lines longer than
  7927. COLS.
  7928. - nano.1.html:
  7929. Html version of man page, now included in dist. For
  7930. the benefit of nano packages in Linux distributions.
  7931. nano-0.8.6 - 02/24/2000
  7932. - global.c:
  7933. shortcut_init():
  7934. Added shortcuts for goto_line and do_replace when using
  7935. pico_msgs. Oops.
  7936. - nano.c:
  7937. statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
  7938. do_wrap(): Added check for backing up past tabs, which we shouldn't do.
  7939. Removed check for backing up past spaces first.
  7940. main(): Added for loop to check for alt keys instead of hard list.
  7941. do_enter(): Fix for bug #14, added call to reset_cursor and messed
  7942. up do_char quite a bit.
  7943. version(): Added time and date stamp for compile on version message.
  7944. Added mail and web page info.
  7945. - README: Updated mailing list info.
  7946. nano-0.8.5 - 02/18/2000
  7947. - nano.c:
  7948. main(): Finally fixed tilde being input on page up/down keys in
  7949. certain terminal types. Fix was input 26->91->5[34] check
  7950. for 126, if so make the kbinput PAGE UP/DOWN, else unget
  7951. the keystroke and continue. Added #include <ioctl.h> for
  7952. ioctl call.
  7953. handle_hup():
  7954. Handler for hangup signal. Belated include of patch from
  7955. Tim Sherwood.
  7956. - winio.c:
  7957. edit_refresh():
  7958. Temporary fix for selecting text when temp == current.
  7959. edit_refresh() is now unmanageably complex, and must be
  7960. revamped.
  7961. check_statblank():
  7962. Added check for constupdate, makes things less choppy
  7963. (Adam Rogoyski)
  7964. nano-0.8.4 - 02/11/2000
  7965. - Moved global variables that were only (or mostly) used in one file into
  7966. its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
  7967. - global.c:
  7968. shortcut_init():
  7969. Removed redundant NANO_CONTROL_H from backspace shortcut,
  7970. added char 127 which should have been there.
  7971. - nano.c:
  7972. main(): Fix for loops looping until MAIN_LEN, added -1 to stop
  7973. segfaults (Adam Rogoyski).
  7974. - Makefile.am: Added all source filenames (Adam Rogoyski).
  7975. - nano.1: Fixed mail addressed and added mailing list address.
  7976. - README: Updated my email address and the nano web page.
  7977. nano-0.8.3 - 02/08/2000
  7978. - New Pico mode (-p, --pico), toggles (more) compatibility with the
  7979. Pico messages displayed in the shortcut list. Note that there are still
  7980. small differences in this mode.
  7981. - nano.h: New shortcut struct format, for the benefit of i18n and
  7982. our help menu. Removed shortcut message macros, they are
  7983. now all in shortcut_init in global.c.
  7984. - nano.c:
  7985. do_wrap(): Removed resetting of current_x when we are in fact
  7986. wrapping to the next line, fixes a bug in -i mode.
  7987. do_enter():
  7988. Rewrote the autoindent mode code to be a lot less pretty,
  7989. but a lot more magical.
  7990. main():
  7991. Removed case for ignoring char 126 (~). That's kind of
  7992. important, we'll have to fix handling that sequence when
  7993. paging up/down on a terminal some other way... Revamped
  7994. main switch loop in much snazzier fashion based on the
  7995. shortcut list.
  7996. - winio.c:
  7997. New function display_main_list. Affects all functions
  7998. that used to call bottombars() with main_list. Added
  7999. because we now only call bottombars with the macro
  8000. MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
  8001. changes to the main_list shortcut list (see global.c below).
  8002. New function do_help, our preliminary dynamic help system.
  8003. - Many many funcs:
  8004. Changed from int to void to allow one uniform type to call
  8005. from the shortcut struct. Also a few functions that do
  8006. not simple have void argument have new functions called
  8007. funcname_void(void) to be called from the shortcut list.
  8008. do_cut_text and do_uncut_text were changed to void
  8009. arguments because they were never called with a filestruct
  8010. other than *current anyway.
  8011. - global.c:
  8012. Shortcut list main_list was expanded to cover all
  8013. shortcuts that could be caught in the main loop.
  8014. Consequently there is a new macro MAIN_VISIBLE which tells
  8015. how many items in the main list to actually show.
  8016. nano-0.8.2 - 02/02/2000
  8017. - Added initial mouse (-m, --mouse) support. New global variable
  8018. use_mouse. (Adam Rogoyski)
  8019. - nano.c: Set initial value of fill to COLS - 8 rather than just 72
  8020. regardless. (Adam Rogoyski).
  8021. do_delete():
  8022. Deleted call to do_backspace() when on the end of a line,
  8023. because it won't update the line properly.
  8024. do_backspace():
  8025. Removed unnecessary pointer manipulation that was being
  8026. handled by unlink_node().
  8027. open_file():
  8028. Added check for trying to open a directory (currently we
  8029. segfault on this). Bug pointed out by Chad Ziccardi.
  8030. nano-0.8.1 - 01/28/2000
  8031. - Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
  8032. global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
  8033. global.c and proto.h.
  8034. - nano.c:
  8035. write_file(): Added (incredibly) necessary check for EPERM when
  8036. link() fails. This allows us to actually save
  8037. files via rename() on filesystems that dont
  8038. support hard links (AIEEEEEE).
  8039. do_goto():
  8040. Fixed a stupid mistake where we were calling
  8041. bottombars() with replace_list instead of goto_list.
  8042. - nano.h:
  8043. New char *help in shortcut structure for help
  8044. feature. Added NANO_*_MSG and NANO_*_HELP #defines
  8045. for help function and i18n.
  8046. - global.c:
  8047. New functions shortcut_init (called in nano.c) and
  8048. sc_init_one() to initialize the shortcuts without
  8049. using {}s (for i18n).
  8050. nano-0.8.0 - 01/25/2000
  8051. - View flag (-v, --view) implemented. Global variable view_mode, affects
  8052. main loop of nano.c and new_file(). (me)
  8053. - nano.c:
  8054. split checks for TERMIOS_H and TERMIO_H up so we
  8055. can (theoretically) include them both, which is good.
  8056. handle_sigwinch():
  8057. Added check for ncurses.h. (Andy Kahn)
  8058. do_spell():
  8059. We now only try ispell because we don't as of yet
  8060. handle the 'spell' program the right way, now that
  8061. I finally know what the right way is =-). Added
  8062. call to edit_update(fileage) to stop segfaults.
  8063. global_init():
  8064. Added initialization of edit* filestruct pointers
  8065. to stop segfaults on spell check.
  8066. usage():
  8067. Check for getopt_long, and if no leave out the
  8068. GNU options everyone seems to love so much (Andy Kahn)
  8069. main():
  8070. Added checks for getopt_long (Andy Kahn)
  8071. We ignore character 126 because it gets put into
  8072. the buffer when we page up/down on a vt terminal.
  8073. write_file():
  8074. Fixes for umask (Adam Rogoyski). Renamed tmpfile
  8075. variable to tmp. Documented the tmp option
  8076. better in the function comments. Fixed my
  8077. stupidly commented out check for tmp on setting
  8078. umask which I really like =>
  8079. - nano.h:
  8080. Made desc variable in shortcut struct a pointer
  8081. instead of a fixed-length string.
  8082. - utils.c:
  8083. Fixed check for config.h before nano.h.
  8084. - configure.in:
  8085. New checks for getopt_long, getopt.h, removed
  8086. CFLAGS and LDFLAGS changes. Gonna have to run
  8087. strip manually now =-) (Andy Kahn)
  8088. Added check for HAVE_WRESIZE, new file acconfig.h
  8089. (me).
  8090. nano-0.7.9 - 01/24/2000
  8091. - New autoindent feature. Command flag 'i' or '--autoindent'. New
  8092. function do_char() to clean up character output, global
  8093. variable autoindent in global.c. (Graham Mainwaring)
  8094. - New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
  8095. files on exit without prompting. Affects do_writeout(). Also
  8096. do_writeout() now takes a parameter for if exiting.
  8097. Global variable temp_opt in global.c (Graham Mainwaring)
  8098. - Preliminary spell program support. Added command flag '-s' or
  8099. '--speller' for alternative speller command. Added function do_spell()
  8100. and exit_spell() to nano.c. New global variable alt_speller.
  8101. - nano.c:
  8102. main(): We now ignore input of decimal 410 because these get entered
  8103. when we resize the screen. Sorted options in getopt()
  8104. switch statement.
  8105. usage(): Sorted options and changed tabs to make room for -s option.
  8106. write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
  8107. doesn't print the number of lines written on the statusbar.
  8108. global_init():
  8109. Added more initializations to globals to support do_spell().
  8110. nano-0.7.8 - 01/23/2000
  8111. - Stubbed justify function. Affects main() in nano.c and nano.h defines.
  8112. - Added Fkey equivalents for Pico compatibility. Affects nano.h defines
  8113. and main() in nano.c
  8114. - Removed redundant reset_cursor() calls from the blank() routines.
  8115. - nano.c:
  8116. main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
  8117. Removed check for isprint() characters in main while loop
  8118. for people with odd character sets *shrug*. Added some X
  8119. window F-key combos.
  8120. read_line(): New function, consolidates of most of the special
  8121. sections of the file reading code. (Rob Siemborski)
  8122. do_replace(): Many scattered fixes. (Rob Siemborski)
  8123. write_file(): Added check for empty filename.
  8124. - winio.c:
  8125. nanogetstr(): Fixes for deleting at places other than the end of the
  8126. buffer, cut support. (Adam Rogoyski)
  8127. blank_edit(): New function, blanks edit buffer. Added call to it in
  8128. total_refresh().
  8129. - configure: Checks for glib if snprintf or vsnprintf aren't available
  8130. (Andy Kahn). Changed warning message when no termcap lib
  8131. is found.
  8132. nano-0.7.7 - 01/19/2000
  8133. - Option '-v' for version moved to '-V', because -v is Pico's "read only"
  8134. mode (affects getopt() in main() and usage() function in nano.c
  8135. - New flag -c, always show cursor position. Affects main() in nano.c and
  8136. statusbar() in winio.c
  8137. - Option '-x' doesn't show help window at the bottom of the editor.
  8138. New variable no_help in nano.h and proto.h, affects main(), usage(),
  8139. and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
  8140. bottombars(), and do_yesno() in winio.c (I had to apply this patch by
  8141. hand =P) (Adam Rogoyski)
  8142. - nano.c:
  8143. handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
  8144. page_up(), page_down():
  8145. - New functions. We now set the cursor at the top right corner,
  8146. not at the center line, and page up and down a full screen
  8147. rather than a half screen. Original functions renamed to
  8148. page_up_center() and page_down_center().
  8149. main():
  8150. - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
  8151. in main while loop because suspend mode was broken. This should
  8152. fix it, at least for now.
  8153. - Added long option support (By popular harassment ;-) - Added
  8154. #include for getopt.h, changed getopt() to getopt_long().
  8155. Options added so far: --version (-V), --nowrap (-w), --suspend
  8156. (-z), --help (-h), --nohelp (-x).
  8157. - Rewrote signal statements (Adam Rogoyski)
  8158. nano 0.7.6 - 01/15/2000
  8159. - New ChangeLog format
  8160. - nano.c:
  8161. main(): Bound CONTROL_H to backspace (oops)
  8162. Added more Alt-[-key combinations, for page up & down.
  8163. read_bytes(): New function (Adam Rogoyski)
  8164. read_file(): Optimizations - malloc()s *buf a little at a time rather
  8165. than one huge buffer, and replaced the strcat at the end
  8166. with an index variable. Added call to read_bytes().
  8167. do_next_word(): New function, binding is control-space (0) (me)
  8168. - winio.c:
  8169. bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
  8170. (formula is extra space needed = COLS / 6 - 13).
  8171. actual_x() & strlenpt():
  8172. Added bug#9 fix - when tabs % 8 == 0, we should only
  8173. increment tabs by 1.
  8174. titlebar(): Fixed overrun in titlebar on very long filenames.
  8175. 0.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
  8176. writing a newline at EOF. do_cursorpos and do_replace are now not
  8177. directly bound to signals but picked up as their control sequences
  8178. in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
  8179. 0.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
  8180. available memory, align bug fixed (Big Gaute).
  8181. --- As of version 0.7.4 TIP is renamed to nano.
  8182. 0.7.3 Fixed a double blank_statusbar() when jumping to first and last
  8183. lines. Took out unnecessary updates in load_file. Bug fix in
  8184. do_left. Missing updates to totlines, fixed bug #7 (last line not
  8185. having a newline at the end doesn't get read, bugfix in do_replace
  8186. with replace all, more/better comments (Robert Siemborski)
  8187. 0.7.2 Our first patch accepted into the source! configure fixes
  8188. and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
  8189. Bug fix in update_line for editing long lines. Fixed arguments
  8190. being put into the filename when none is specified. Preliminary
  8191. +line command argument function.
  8192. 0.7.1 configure tweak for better FreeBSD support. Removed refresh() from
  8193. edit_refresh to stop cursor "jumping" during screen updates. This
  8194. will probably cause a bug or two. Replace is now Alt-R (@R) and
  8195. Goto line is Alt-G (@G), but they have control key aliases of ^\ and
  8196. ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
  8197. Control-G will become the Help key, but for now is stubbed out.
  8198. 0.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
  8199. findnextstr. Bound Control-D to Delete. Refixed segfault on zero
  8200. length file. Added Esc-[-A,B,C,D cursor key sequences.
  8201. 0.6.9 Preliminary cursor position function. Split up tip.c more, made
  8202. new files cut.c and winio.c. Fixed a bug in cut_marked_segment
  8203. that was leaving out a character.
  8204. 0.6.8 By request, optchr in main() is now an int. Removed unneeded
  8205. globals. Bound functions for next/prev page, and wrote functions
  8206. do_home and do_end.
  8207. 0.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
  8208. created read_file. Implemented Insert File. Fixes in tipgetstr
  8209. for erroneous keystrokes. Added leave_cursor arg to do_yesno().
  8210. 0.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
  8211. aborted searches and more Pico-compatible messages. statusq() now
  8212. returns -2 on a blank entry instead of -1. Bug fix in actual_x().
  8213. 0.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
  8214. regarding buffers with filebot in them. Fixins in do_backspace
  8215. and do_enter. Removed unused variables. Removed strip_newline.
  8216. 0.6.4 Took out the awful newlines from each string buffers. This will
  8217. certainly cause more bugs. Fixes in do_exit(). Better empty file
  8218. handling (I hope).
  8219. 0.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
  8220. do_enter() rewritten.
  8221. 0.6.2 Better default file permissions. Complete rewrite of do_wrap().
  8222. Better handling of editing with cursor near COLS - 1.
  8223. 0.6.1 Starting to implement wrapping toggle. Fix for unhandled control
  8224. codes being entered into the buffer. Bug fix in actual_x; more
  8225. > COLS - 1 functionality, especially on lines with TABs. Fixed being
  8226. locked into cutbuffer when cutting more than one marked screen of
  8227. text.
  8228. 0.6.0 We have TABs!!! To do this, placewewant is now set to the actual
  8229. width on the screen we want to be, not an index of current->data.
  8230. New functions xplustabs and actual_x convert the actual place
  8231. the cursor should be on the screen to and from the place in the
  8232. string.
  8233. 0.5.5 Changed do_right to test do_down before setting current_x to 0,
  8234. eliminating the "looping" on the last line when holding the right
  8235. arrow. Preliminary support for longer than COLS - 1 lines.
  8236. Wrote do_delete.
  8237. 0.5.4 Fixed a bug in total_update that wasn't repainting the screen
  8238. properly. tipgetstr is much more messy but text is now more
  8239. editable ;) Fixed crash on entering a new file, hopefully. Awful
  8240. stub for tab handling, only in do_right() to save me some sanity.
  8241. 0.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
  8242. Fixed a few bugs in do_uncut when not uncutting from marked text.
  8243. I would not trust your data with the mark code right now, but then
  8244. we're not at version 1.0 yet so dont trust anything ;)
  8245. 0.5.2 Added reset_cursor() before end of update_line so cursor doesn't
  8246. jump after each keystroke entered. Select text stubbed. Fixed
  8247. a bug in total_refresh(). Setting a mark will highlight properly,
  8248. but does not actually affect what gets put in the cutbuffer (yet).
  8249. 0.5.1 Writing a file out causes modified to be set back to 0. Good.
  8250. Set_modified function written. Cut and uncut text now set
  8251. modified when called.
  8252. 0.5.0 Half way there! Implemented write out, save function seems
  8253. stable. Changed statusbar blank routing to not refresh, a separate
  8254. program calls it and then refreshes. Made the program not clear
  8255. the screen on exit, just the bottom two lines (like Pico).
  8256. 0.4.2 Implemented replace all in replace function. Crude exit function
  8257. (asks yes or no if modified but does not write to file).
  8258. 0.4.1 Implementing search & replace. Fixed crash on deleting at top of
  8259. edit buffer. Implemented "timeout" of statusbar messages.
  8260. Implemented ^A and ^E (beginning and end of line).
  8261. 0.4.0 Split code into global.c and proto.h to allow for better multiple
  8262. file handling. Added #defines for the majority of the shortcut
  8263. keys in tip.h for easy modification.
  8264. 0.3.1 Write edit_refresh which doesn't move the screen around, just
  8265. updates what's there already. do_wrap() and do_enter() added.
  8266. 0.3.0 Preliminary cutbuffer (cut and uncut) support.
  8267. 0.2.7 Check for Modification added. do_search() works.
  8268. 0.2.5 Rewrite of file data struct.
  8269. 0.2 Read in data to buffer, bound keystrokes to stub functions,
  8270. initial cursor movement on screen. Initial autoconf support.
  8271. 0.1 Initial program setup w/ncurses
  8272. $Id: ChangeLog.pre-2.1 4199 2007-12-17 23:05:11Z dolorous $