ChangeLog 227 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771
  1. 2002-12-15 Pavel Roskin <proski@gnu.org>
  2. * global.h: Add replacement for O_NONBLOCK.
  3. 2002-12-11 Pavel Roskin <proski@gnu.org>
  4. * find.c (find_file): Skip entries without data when panelizing.
  5. Found by Valgrind.
  6. * eregex.h: Undefine __restrict_arr before redefining to avoid a
  7. warning if it's defined.
  8. 2002-12-09 Pavel Roskin <proski@gnu.org>
  9. * util.c (load_file_position): Don't free filename.
  10. 2002-12-08 Pavel Roskin <proski@gnu.org>
  11. * util.c: Add functions for saving and loading file positions.
  12. 2002-12-07 Pavel Roskin <proski@gnu.org>
  13. * file.c (is_wildcarded): Move ...
  14. * filegui.c: ... here. Make static.
  15. 2002-12-01 Pavel Roskin <proski@gnu.org>
  16. * cmd.c (do_edit_at_line): Set line to 0 to allow the editor to
  17. decide if the user cares about the initial line or not.
  18. * main.c: Set edit_one_file_start_line to 0 initially.
  19. 2002-11-29 Pavel Roskin <proski@gnu.org>
  20. * setup.c: Add option_save_position to the options table.
  21. 2002-11-28 Pavel Roskin <proski@gnu.org>
  22. * tree.c: Make struct WTree opaque. Remove "done" flag - it's
  23. broken by design.
  24. (tree_selected_name): New function, return name of the currently
  25. selected entry. Use it where WTree is opaque.
  26. * boxes.c (tree_callback): Don't check for the "done" flag - it
  27. causes closing the dialog on any key after mouse selection.
  28. * user.h: Don't include edit/edit-widget.h.
  29. * user.c: Include edit/edit-widget.h and edit/edit.h.
  30. * slint.c (getch): Return -1, not SLANG_GETKEY_ERROR, otherwise
  31. get_key_code() crashes when calling isalpha().
  32. * color.c (mc_init_pair) [HAVE_SLANG]: Pass "default", not NULL
  33. to SLtt_set_color() - it fixes transparency with the latest
  34. versions of S-Lang. Treat foreground like background.
  35. 2002-11-20 Pavel Roskin <proski@gnu.org>
  36. * main.c: Eliminate finish_program variable - mc can now exit
  37. immediately.
  38. 2002-11-17 Pavel Roskin <proski@gnu.org>
  39. * screen.c (do_select): Mark panel as dirty.
  40. * boxes.c (init_disp_bits_box): Make static.
  41. 2002-11-15 Pavel Roskin <proski@gnu.org>
  42. * main.c (main): Don't call subshell_get_console_attributes() if
  43. the subshell is disabled from the command line.
  44. 2002-11-14 Pavel Roskin <proski@gnu.org>
  45. * myslang.h: Define getyx() macro.
  46. * layout.c (print_vfs_message): Preserve cursor position.
  47. * view.h: Make struct WView opaque, move non-interface parts ...
  48. * view.c: ... here.
  49. * layout.c: Use struct WView, not typedef WView.
  50. * cmd.c: Clean up includes, don't rely on edit.h.
  51. * dialog.c (struct Refresh): Make opaque.
  52. * dialog.h: Move all stuff unrelated to dialog.c ...
  53. * wtools.h: ... here. Adjust all users.
  54. * dialog.c (refresh_list): Make static.
  55. * dialog.h: Add typedef refresh_fn.
  56. * cmd.c (menu_edit_cmd): Make static, provide separate functions
  57. without arguments to access it.
  58. * menu.h: Make callfn function without arguments - we are not
  59. using any arguments now.
  60. 2002-11-13 Pavel Roskin <proski@gnu.org>
  61. * man2hlp.c (persistent_fread): Return error for len <= 0.
  62. (persistent_fwrite): Likewise.
  63. (main): Check the result of the second ftell().
  64. * cmd.h: Fully exclude WPanel from public interfaces of cmd.c.
  65. * cmd.c: All commands operate on current panels.
  66. (get_a_panel): Remove.
  67. * screen.c: Change to use new functions.
  68. * main.h: Don't check if panel.h was included. Use forward
  69. declaration of WPanel, change prototypes to use struct WPanel.
  70. (midnight_callback): Make static.
  71. * cmd.c (do_view_cmd): Don't take WPanel argument - always use
  72. the current panel.
  73. (view_cmd): Likewise.
  74. (view_file_cmd): Likewise.
  75. (view_simple_cmd): Likewise.
  76. (filtered_view_cmd): Likewise.
  77. (filtered_view_cmd_cpanel): Remove.
  78. (view_panel_cmd): Likewise.
  79. 2002-11-12 Pavel Roskin <proski@gnu.org>
  80. * chmod.c (init_chmod): Make static.
  81. * help.c (quit_cmd): Rename to help_quit_cmd().
  82. (show): Rename to help_show().
  83. * main.c (quit_cmd): Make static. Return void, not int.
  84. (sort_cmd): Make static.
  85. * dlg.c (send_message_to): Remove, use send_message() instead.
  86. (send_message): Make inline, remove Dlg_head argument. Change
  87. all callers.
  88. * dlg.h: Remove Dlg_head argument from callback_fn - it's
  89. excessive and can be trivially derived from the widget.
  90. (default_proc): Remove Dlg_head argument. Change all callers.
  91. * widget.c (listbox_draw): Remove Dlg_head argument.
  92. * dlg.h: Define dlg_cb_fn - dialog callback function. Improve
  93. typedefs for callbacks and use them everywhere. Clean up some
  94. unused defines.
  95. * dlg.c: Adjust declarations for match.
  96. * wtools.h: Eliminate the_widget filed in QuickWidget.
  97. * wtools.c (quick_callback): Allocate widget table dynamically.
  98. * dlg.c (widget_redraw): Remove.
  99. * widget.c (find_buttonbar): Use find_widget_type(). Make
  100. global.
  101. (define_label): Remove paneletc argument. Change all callers.
  102. (define_label_data): Likewise.
  103. (redraw_labels): Likewise. Use find_buttonbar().
  104. * view.c (view_adjust_size): Use find_buttonbar().
  105. * menu.h: Remove "*" from the definition of the type "Menu"
  106. for consistency with other types. Change all dependencies.
  107. (menubar_event): Make static.
  108. 2002-11-12 Andrew V. Samoilov <kai@cmail.ru>
  109. * view.c (get_line_at): Use g_strreverse() instead of
  110. reverse_string().
  111. * util.c (reverse_string): Remove.
  112. (decompress_extension): Return const char *.
  113. (strip_home_and_password): Make dir const.
  114. * util.h: Fix declarations.
  115. 2002-11-11 Pavel Roskin <proski@gnu.org>
  116. * charsets.c (convert_to_display): Don't crash on empty read
  117. only strings.
  118. (convert_from_input): Likewise.
  119. Reported by David Martin <dmartina@excite.com>
  120. * screen.c (select_item): Don't show the file selection if the
  121. panel is inactive.
  122. (chdir_other_panel): Select the same file on the other panel.
  123. * file.c (panel_operate): Warning fix.
  124. * cmd.c (compare_dirs_cmd): Likewise.
  125. * man2hlp.c: Warning fixes. size_t can be unsigned.
  126. * file.c (panel_get_file): Make static.
  127. * filegui.h: Eliminate use of WANT_WIDGETS.
  128. * setup.h: Likewise.
  129. * menu.h: Declare struct WMenu.
  130. * main.h: Don't include menu.h, use forward declaration.
  131. * dlg.h: Move movefn definition ...
  132. * win.h: ... where it's used. Remove unused definitions.
  133. * win.c: Remove unused code.
  134. * key.h: Include mouse.h, don't rely on others doing it.
  135. * widget.h: Include dlg.h. Remove Tk-only fields.
  136. * widget.c: Remove Tk-only fields.
  137. * panel.h: Simplify interdependencies between headers. Use
  138. forward declarations for structures.
  139. * widget.h: Declare struct WListbox.
  140. * wtools.h: Use forward declaration for struct WListbox to avoid
  141. dependency on widget.h.
  142. 2002-11-10 Pavel Roskin <proski@gnu.org>
  143. * panel.h: Remove all unused definitions. Make format_e an
  144. opaque structure by moving it ...
  145. * screen.c: ... here.
  146. * screen.c (display_mini_info): Make static.
  147. (the_info_panel): Remove.
  148. * screen.c (Xtry_to_select): Make static, rename to
  149. do_try_to_select().
  150. * screen.c (chdir_other_panel): Change behavior of Alt-O -
  151. change the other panel to the current directory, put it to the
  152. listing mode if needed. Based on a patch from PLD Linux
  153. Distribution.
  154. 2002-11-06 Pavel Roskin <proski@gnu.org>
  155. * myslang.h: Don't define ERR - it conflicts with sys/ucontext.h
  156. in glibc 2.1.3.
  157. * key.c: Use -1, not ERR.
  158. 2002-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
  159. * boxes.c (configure_vfs): Ask whether passive connections
  160. should be used. Asked by Andrew W. Nosenko <awn@bcs.zp.ua>.
  161. 2002-11-01 Pavel Roskin <proski@gnu.org>
  162. * main.c (main): Use O_TRUNC when opening the file to write the
  163. last working directory. Fix segmentation fault when exiting
  164. while on VFS.
  165. * util.c (mc_mkstemps): Use O_TRUNC to open temporary files.
  166. 2002-10-31 Andrew V. Samoilov <sav@bcs.zp.ua>
  167. * view.c (normal_search) [HAVE_CHARSET]: Fix segmentation fault
  168. on first search. Writting to readonly "" is not good idea.
  169. 2002-10-31 Pavel Roskin <proski@gnu.org>
  170. * main.c (probably_finish_program): Eliminate.
  171. (handle_args): Use exit code 1 only for errors, 0 for legitimate
  172. options such as "--help".
  173. 2002-10-30 Pavel Roskin <proski@gnu.org>
  174. * main.c: Option -P takes an argument (output filename) now.
  175. (main): Output the last directory to the specified file. Don't
  176. output "." if this information is unavailable.
  177. * subshell.c (subshell_name_quote): Don't quote numbers and
  178. letters if possible and safe.
  179. * charset.h: Provide new inline functions convert_to_display_c()
  180. and convert_from_input_c().
  181. * view.c: Include charset.h unconditionally, use new conversion
  182. functions that don't require ifdefs.
  183. * charset.h [!HAVE_CHARSET]: Provide dummy macros for
  184. convert_to_display and convert_from_input. Eliminate uchar
  185. definition, use unsigned char, adjust dependencies.
  186. * charsets.c (convert_to_display): Tolerate NULL argument.
  187. (convert_from_input): Likewise.
  188. * ext.c (exec_extension): Don't create self-destructing scripts
  189. for the viewer - remove those scripts manually after calling
  190. view(). This fixes the problem with double F8 in the viewer on
  191. parsed files.
  192. Reported by David Martin <dmartina@excite.com>
  193. * ext.c (exec_extension): Don't rely on working #! - explicitly
  194. run /bin/sh on the temporary script.
  195. * mouse.h: Use definitions for GPM_B_DOWN and GPM_B_UP
  196. compatible with gpm-1.20.
  197. Reported by David Martin <dmartina@excite.com>
  198. 2002-10-29 Pavel Roskin <proski@gnu.org>
  199. * panel.h: Use spaces, not commas, in the format - they are more
  200. readable and easier to document.
  201. * screen.c (panel_format): Likewise.
  202. (mini_status_format): Likewise.
  203. 2002-10-29 Andrew V. Samoilov <sav@bcs.zp.ua>
  204. * view.c (init_growing_view): Mark message for translation.
  205. (normal_search) [HAVE_CHARSET]: Convert saved search string to
  206. original codeset if input_dialog() returns empty string.
  207. 2002-10-24 Pavel Roskin <proski@gnu.org>
  208. * screen.c (mini_info_separator): Revert last patch. The bug is
  209. in Red Hat 8.0 S-Lang.
  210. * screen.c (mini_info_separator): The separator was one
  211. character too long.
  212. (show_dir): Remove obsolete linux_unicode hack.
  213. * dlg.c (init_dlg): Redraw screen after selecting the focused
  214. widget, not before. The bug affected file progress dialog with
  215. verbose operation off.
  216. Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  217. * filegui.c (check_progress_buttons): Reinitialize ret_value to
  218. avoid old values after events other than selecting a button.
  219. Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
  220. 2002-10-24 Andrew V. Samoilov <sav@bcs.zp.ua>
  221. * man2hlp.c (handle_link): Treat link name after \& as regular
  222. text.
  223. Suggested by David Martin <dmartina@excite.com>
  224. 2002-10-23 Andrew V. Samoilov <sav@bcs.zp.ua>
  225. * poptconfig.c (configLine): Cast the argument to functions for
  226. character classification to unsigned or use unsigned char *.
  227. (poptReadConfigFile): Likewise.
  228. * popthelp.c (singleOptionHelp): Likewise.
  229. * poptparse.c (poptParseArgvString): Likewise.
  230. * main.c (show_change_notice): Make local variable in main().
  231. (compatibility_move_mc_files): Merge with
  232. do_compatibility_move() and return 1 if moving was done, 0
  233. otherwise. Move ~/.mc.tree to ~/.mc/Tree.
  234. * file.c (copy_file_file): Reuse message from move_file_file().
  235. (copy_dir_dir): Eliminate one more goto.
  236. 2002-10-22 Pavel Roskin <proski@gnu.org>
  237. * man2hlp.c (main): Remove unnecessary spaces in the table of
  238. contents.
  239. * setup.c: Remove dead code surrounded by
  240. SAVE_CHANGES_OUTSIDE_OPTIONS_MENU.
  241. * tree.c: Make tree_navigation_flag static.
  242. * help.h: Remove unused characters.
  243. * help.c (show): Remove handling of unused characters.
  244. 2002-10-22 Andrew V. Samoilov <sav@bcs.zp.ua>
  245. * popthelp.c (poptPrintHelp): Use POPT_ for "[OPTION...]",
  246. this message is eliminated by poptSetOtherOptionHelp().
  247. * popt.c (poptStrerror): Use _ instead of POPT_ for useful
  248. messages.
  249. * utilunix.c (mc_tmpdir): Make directory only if not exists.
  250. Use strncpy() instead of g_snprintf() - there can be printf()
  251. pattern(s) in the $TMPDIR.
  252. * man2hlp.c (handle_link): Don't strip leading space(s) from
  253. linkname.
  254. 2002-10-22 Pavel Roskin <proski@gnu.org>
  255. * myslang.h: Add a replacement for addch(), which expects a
  256. wchar_t argument in patched S-Lang on Red Hat 8.0.
  257. 2002-10-21 Pavel Roskin <proski@gnu.org>
  258. * main.c (print_mc_usage): Remove unnecessary newline.
  259. * main.c (print_mc_usage): Partly revert previous patch -
  260. poptPrintHelp() has side effects and should not be called
  261. inside fprintf(), which can be a macro.
  262. * main.c (print_mc_usage): Use poptSetOtherOptionHelp()
  263. From Andrew V. Samoilov <sav@bcs.zp.ua>
  264. * learn.c (learn_check_key): Simplify logic. Add a comment for
  265. translators.
  266. * file.h: Rename know_not_what_am_i_doing to safe_delete.
  267. * file.c (real_query_recursive): Don't ask to enter "yes" - it's
  268. ugly and requires changing input method in some locales.
  269. * file.c (real_query_recursive): Default to empty string, not to
  270. "no" when asking to enter "yes". Add note for translators.
  271. * cmd.c (do_view_cmd): When asking confirmation, correctly
  272. interpret closing the dialog by escape.
  273. 2002-10-20 Pavel Roskin <proski@gnu.org>
  274. * utilunix.c (mc_tmpdir): Don't exit if the temporary directory
  275. cannot be created - it should be possible to run mc on read-only
  276. filesystems. Try to chmod() the temporary directory.
  277. 2002-10-17 Andrew V. Samoilov <sav@bcs.zp.ua>
  278. * man2hlp.c (handle_tp_ip): Implement .IP and .TP macroses
  279. (without arguments).
  280. (handle_command): Call handle_tp_ip().
  281. (main): Handle label and body of .TP paragraph.
  282. 2002-10-17 Pavel Roskin <proski@gnu.org>
  283. * view.c (view_ok_to_quit): Use the same dialog as the editor.
  284. 2002-10-15 Andrew V. Samoilov <sav@bcs.zp.ua>
  285. * Makefile.am (man2hlp_LDADD): Set to $(GLIB_LIBS).
  286. * man2hlp.c: Include <glib.h> and use g_snprintf()/g_vsnprintf()
  287. instead of sprintf()/vsprintf().
  288. * man2hlp.c: Report about stale links.
  289. 2002-10-13 Pavel Roskin <proski@gnu.org>
  290. * color.h: Remove Q_SELECTED_COLOR and Q_UNSELECTED_COLOR.
  291. Rename BEST_COLOR to IF_COLOR. Make error messages bold on b/w
  292. terminals. Don't highlight stale links on b/w terminals, since
  293. they cannot be distinguished from marked files.
  294. * main.c (print_color_usage): Update list of keywords for file
  295. types. Add a notice for translators.
  296. * color.c: Rename stalledlink to stalelink. Make the same
  297. change elsewhere.
  298. 2002-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
  299. * popt.h: Adjust poptHelpOptions[] and poptPrintHelp()
  300. declarations.
  301. * popthelp.c: Replace POPT_ with _ for visible strings.
  302. (singleOptionHelp): Eliminate format array.
  303. (poptHelpOptions): Make const.
  304. (poptPrintHelp): Return width of left column.
  305. * main.c (print_mc_usage): Use width from poptPrintHelp()
  306. for "+number".
  307. 2002-10-07 Andrew V. Samoilov <sav@bcs.zp.ua>
  308. * boxes.c (sel_charset_button): Use g_snprintf() instead of
  309. sprintf().
  310. * charsets.c (init_translation_table): Likewise.
  311. 2002-10-07 Pavel Roskin <proski@gnu.org>
  312. * view.c: Move call to view_update_bytes_per_line() from
  313. view_init(), where the number of columns is unknown yet, to
  314. view_callback() where it's already known.
  315. (view_adjust_size): Make static.
  316. 2002-10-07 Miven Dooligan <dooligan@intergate.ca>
  317. * view.c (view_update_bytes_per_line): Don't use vertical bars
  318. in the hex viewer is short of space. Fix missing space between
  319. addresses and hexdump when framed.
  320. (display): Likewise.
  321. 2002-10-07 Pavel Roskin <proski@gnu.org>
  322. * selcodepage.c (select_charset): Use g_snprintf() instead
  323. of non-portable snprintf().
  324. * myslang.h [!HAVE_SYSTEM_SLANG]: Update location of slang.h.
  325. 2002-09-29 Pavel Roskin <proski@gnu.org>
  326. * ext.c (get_file_type_local): Return -1 for fatal errors.
  327. (get_file_type_pipe): Likewise.
  328. (regex_command): Likewise. Adjust all callers.
  329. From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
  330. * dlg.c (frontend_run_dlg): Allow terminating the dialog from
  331. the idle handler.
  332. From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
  333. Call change_screen_size() regardless of ncurses version, and let
  334. that function decide what to do.
  335. 2002-09-28 Pavel Roskin <proski@gnu.org>
  336. * background.c (background_attention): Fix calling functions
  337. with wrong arguments, which resulted in segmentation faults.
  338. 2002-09-27 Pavel Roskin <proski@gnu.org>
  339. * file.c (panel_operate): Replace fancy internationalized
  340. message boxes for unknown file operations with abort().
  341. * util.c (name_trunc): Remove unused code, unhelpful error
  342. message and workaround for bugs in the callers.
  343. * file.c (copy_file_file): Rename DST_* names to DEST_*, since
  344. DST_NONE is used in FreeBSD libc.
  345. Reported by Pavel Shirshov <pavelsh@mail.ru>
  346. 2002-09-26 Pavel Roskin <proski@gnu.org>
  347. * textconf.c: Don't translate filesystem names.
  348. * main.h: Remove all references to icons.
  349. * panel.h: Likewise. Adjust all dependencies.
  350. * hotlist.c (load_hotlist): Remove compatibility code with
  351. hotlist files created by ancient versions of mc.
  352. * command.c (do_cd_command): Reuse translated message.
  353. * user.c (check_patterns): Ignore invalid shell_patterns and
  354. let user see them in the menu. The error message was too vague.
  355. 2002-09-26 Andrew V. Samoilov <sav@bcs.zp.ua>
  356. * util.c (mc_mkstemps): Really return NULL in the filename in the
  357. case of failure. Reported by Andrew W. Nosenko <awn@bcs.zp.ua>.
  358. 2002-09-26 Pavel Roskin <proski@gnu.org>
  359. * ext.c (get_file_type_local): Make static.
  360. (get_file_type_pipe): Likewise.
  361. * util.c (check_patterns): Likewise.
  362. * file.c (copy_file_file): Eliminate the complex scheme with
  363. "resources". Set src_desc, dest_desc to -1 initially and use
  364. their values to see if they need to be closed. Track status of
  365. the destination file using a 3-state variable.
  366. * file.c (copy_file_file): Fix event handling - check the result
  367. of file_progress_show_bytes().
  368. From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
  369. 2002-09-25 Pavel Roskin <proski@gnu.org>
  370. * subshell.c (pty_open_master) [IS_AIX]: Open /dev/ptc, not
  371. /dev/ptmx. From Sergey Pavlukhin <psi@dmng.ru>
  372. 2002-09-24 Pavel Roskin <proski@gnu.org>
  373. * screen.c (string_file_nuid): Fix a warning with uClibc.
  374. (string_file_ngid): Likewise.
  375. * mountlist.c: Restore sys/param.h before sys/mount.h - it's
  376. required on FreeBSD.
  377. Reported by Pavel Shirshov <pavelsh@mail.ru>
  378. * screen.c (panel_event): Implement support for mouse wheel.
  379. * view.c (display): Fix wrapping of tabs.
  380. Reported by Arpad Biro <biro_arpad@yahoo.com>
  381. 2002-09-23 Pavel Roskin <proski@gnu.org>
  382. * dlg.h: New message DLG_RESIZE.
  383. * layout.c: Call DLG_RESIZE instead of resizing viewer and
  384. editor individually.
  385. * view.c (view): Install handler for DLG_RESIZE. Make view_dlg
  386. a local variable.
  387. * view.c (view): Set view_dlg to NULL after it's destroyed.
  388. * color.h: Remove EDITOR_UNDERLINED_COLOR, it's unused.
  389. * global.h: Move fcntl.h inclusion here. Define O_BINARY.
  390. * mountlist.c: Remove more includes already handled in global.h.
  391. 2002-09-22 Pavel Roskin <proski@gnu.org>
  392. * man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI
  393. and .IB macros.
  394. (handle_command): Call handle_alt_font().
  395. * man2hlp.c: Take text width from help.h, not from the command
  396. line.
  397. * help.h: Declare HELP_TEXT_WIDTH.
  398. * help.c: Use HELP_TEXT_WIDTH.
  399. * help.h: Replace CHAR_BOLD_ON, CHAR_BOLD_OFF and CHAR_ITALIC_ON
  400. with CHAR_FONT_BOLD, CHAR_FONT_NORMAL and CHAR_FONT_ITALIC
  401. respectively for better consistency.
  402. * util.c (is_printable): Disable "Full 8 bits output" on xterm,
  403. fall back to "ISO 8859-1" due to problems with gnome-terminal,
  404. which identifies itself as xterm.
  405. Reported by Miven Dooligan <dooligan@intergate.ca>
  406. * mouse.h: Put return codes from the mouse callback to an enum.
  407. Remove MOU_ENDLOOP and MOU_LOCK - they are interpreted like
  408. MOU_NORMAL. Adjust all dependencies.
  409. * dlg.c: Use MOU_NORMAL instead of 0 for mouse_status.
  410. 2002-09-21 Pavel Roskin <proski@gnu.org>
  411. * main.c (process_args): Print only data directory and nothing
  412. else for the "-f" argument.
  413. (argument_table): Rename --libdir to --datadir, adjust its
  414. description.
  415. * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
  416. pkgdatadir now. Install cons.saver to pkglibdir, pass it to the
  417. compiler as LIBDIR.
  418. * cons.handler.c (handle_console): Use LIBDIR.
  419. * main.c (OS_Setup): Use DATADIR instead of LIBDIR. Rename
  420. MC_LIBDIR to MC_DATADIR.
  421. * panelize,c: Remove unused variable panelize_title.
  422. * view.c (view_event): Add mouse wheel support.
  423. 2002-09-20 Pavel Roskin <proski@gnu.org>
  424. * mouse.h: Define events for the mouse wheel.
  425. * key.c (xmouse_get_event): Recognize mouse wheel events.
  426. * command.c: (command_insert): New function - insert quoted
  427. text into the command line.
  428. * main.c: Use command_insert() instead of stuff(). This ensures
  429. that the names in the command line are quoted.
  430. Reported by Arpad Biro <biro_arpad@yahoo.com>
  431. * command.c: Make `command' a standard WInput widget, just
  432. change its callback. Eliminate input_w(). Adjust all
  433. dependencies.
  434. * widget.c (input_callback): Remove static attribute.
  435. 2002-09-19 Pavel Roskin <proski@gnu.org>
  436. * main.c (argument_table): Improve help for "+number" - it has
  437. to be re-translated anyway.
  438. * main.c (argument_table): Add missing descriptions.
  439. * main.c [NATIVE_WIN32]: Remove -S option, it's useless.
  440. * main.c (print_mc_usage): Use poptPrintHelp() instead of
  441. manually formatted help text. Adjust callers to pass popt
  442. context.
  443. * poptint.h: Use i18n.h instead of most own replacement macros.
  444. 2002-09-18 Pavel Roskin <proski@gnu.org>
  445. * cmd.c (other_symlink_cmd): Remove, this function is
  446. undocumented and poorly implemented.
  447. * main.c: Remove call to other_symlink_cmd() on C-x C-l.
  448. 2002-09-16 Pavel Roskin <proski@gnu.org>
  449. * wtools.c (real_input_dialog_help): Trim spaces from the label
  450. text. Align label with the input field.
  451. * cmd.c (do_link): Avoid using g_strconcat() on translatable
  452. strings.
  453. (other_symlink_cmd): Likewise.
  454. 2002-09-13 Pavel Roskin <proski@gnu.org>
  455. * main.c: Remove advanced_chfns variable. Adjust all
  456. dependencies.
  457. * option.c: Make "Configure options" dialog more flexible,
  458. readjust layout. Remove "advanced chown" option - it's unused.
  459. 2002-09-13 Andrew V. Samoilov <sav@bcs.zp.ua>
  460. * main.c (process_args) [WITH_SMBFS]: Call smbfs_set_debugf()
  461. for "-l" option.
  462. 2002-09-13 Pavel Roskin <proski@gnu.org>
  463. * main.c: Fully remove obsolete "-m" option.
  464. 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
  465. * main.c [WITH_SMBFS]: Include ../vfs/smbfs.h.
  466. (argument_table) [WITH_SMBFS]: Add -D, --debuglevel option for
  467. smbfs debug level.
  468. (process_args) [WITH_SMBFS]: Handle new -D option.
  469. (print_mc_usage) [WITH_SMBFS]: Describe -D, --debuglevel option.
  470. 2002-09-11 Pavel Roskin <proski@gnu.org>
  471. * subshell.c: Move tcsh_fifo to the file scope. Use mc_tmpdir()
  472. to calculate tcsh_fifo.
  473. * utilunix.c (mc_tmpdir): New function that returns temporary
  474. directory for mc.
  475. * util.c (mc_mkstemps): Use mc_tmpdir().
  476. * main.c (main): Call mc_tmpdir().
  477. 2002-09-10 Pavel Roskin <proski@gnu.org>
  478. * util.c (trim): Handle short strings even better - don't use
  479. dots unless necessary.
  480. * main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
  481. less.
  482. * screen.c (show_dir): Don't call trim() with negative length.
  483. * util.c (trim): Better handle short length. Make sure that the
  484. destination is always 0-terminated.
  485. 2002-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
  486. * screen.c (string_file_name): Fix possible off-by-one
  487. buffer overflow.
  488. (string_file_size): Avoid unsafe strcpy().
  489. (string_file_size_brief): Likewise. Eliminate buffer array.
  490. 2002-09-08 Pavel Roskin <proski@gnu.org>
  491. * color.c: Move hascolors variable into init_colors(). Adjust
  492. all dependencies.
  493. * myslang.h: Remove definition of initscr(), it's unused.
  494. * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
  495. * main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
  496. * myslang.h: Remove slang_done_screen(), it's unused.
  497. 2002-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
  498. * key.c (get_event): Check gpm_fd only if gpm is actually used.
  499. * layout.c (done_screen): Move disable_mouse() call ...
  500. * main.c (done_mc): ... here.
  501. 2002-09-08 Pavel Roskin <proski@gnu.org>
  502. * view.c (init_growing_view): Avoid reporting the same error
  503. twice. Reported by Moritz Barsnick <moritz@barsnick.net>
  504. 2002-09-07 Pavel Roskin <proski@gnu.org>
  505. * textconf.c: Don't use SLANG_TERMINFO, which is unused anywhere
  506. else. Assume that terminfo is used if USE_TERMCAP is undefined.
  507. 2002-09-06 Pavel Roskin <proski@gnu.org>
  508. * subshell.c (subshell_name_quote): Return NULL if we are out of
  509. memory. Use "echo -e" with zsh (Debian bug #150996).
  510. (do_subshell_chdir): Be prepared to get NULL from
  511. subshell_name_quote().
  512. * profile.c: Remove unused code. Eliminate global variables.
  513. (is_loaded): Rename to find_loaded(). return matching profile.
  514. Adjust all dependencies.
  515. * fs.h: Only redefine S_IS* macros if they are undefined, and
  516. then define them to 0. S_IF* constants should be avoided.
  517. * util.c: Whenever possible, use standard POSIX macros to test
  518. for the file type.
  519. Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
  520. 2002-09-05 Pavel Roskin <proski@gnu.org>
  521. * cmd.c (nice_cd): Fix conditions when this function is
  522. compiled.
  523. * fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
  524. * fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
  525. definitions for S_IFDOOR and S_ISDOOR.
  526. * screen.c (string_file_type): Remove unnesessary ifdefs, fs.h
  527. takes care of it.
  528. (file_compute_color): Add support for Solaris doors.
  529. * util.c (string_perm): Remove unnesessary ifdef.
  530. * man2hlp.c (handle_command): Make clear that unsupported
  531. command is a warning, not an error. Avoid unsafe strcat().
  532. * view.c (view_mode_callback): Eliminate, use the default
  533. callback.
  534. * main.c (load_hint): Don't hardcode copyright years. Use a
  535. translated message.
  536. * main.c (midnight_callback): Avoid calling the default DLG_DRAW
  537. handler. From David Martin <dmartina@excite.com>
  538. * help.c (help_handle_key): Sanity check for broken help files.
  539. From David Martin <dmartina@excite.com>
  540. 2002-09-03 Pavel Roskin <proski@gnu.org>
  541. * global.h: Eliminate xgetch, update all dependencies.
  542. * boxes.c: Fix remaining old-style calls to create_dlg().
  543. * complete.c: Likewise.
  544. * main.c: Likewise.
  545. * view.c: Likewise.
  546. * wtools.c: Remove Chooser, its unused.
  547. * dlg.c: Fix the case when the dialog has no title.
  548. * wtools.c (real_input_dialog_help): Use a more reliable way
  549. to indicate password input.
  550. * boxes.c (display_widgets) [!HAVE_CHARSET]: Fix initialization.
  551. (vfs_smb_get_authinfo): Reuse another translated string.
  552. * wtools.h (QuickDialog): Eliminate the "class" field - it's not
  553. used and it can clash with C++ code. Adjust all dependencies.
  554. * dlg.c (x_set_dialog_title): Completely eliminate. Adjust all
  555. dependencies.
  556. * help.c (interactive_display): Fallback to node "[main]" if the
  557. requested node cannot be found.
  558. * help.c (help_index_cmd): Eliminate unneeded search for
  559. "[Help]", which always fails. Fix crash if "[Contents]" cannot
  560. be found. Reuse more generic error message.
  561. * filegui.c: Eliminate x_set_dialog_title().
  562. * hotlist.c: Likewise.
  563. * help.c: Likewise.
  564. (interactive_display): Default to node "[main]" if the given
  565. node is empty.
  566. 2002-09-02 Pavel Roskin <proski@gnu.org>
  567. * dlg.c (create_dlg): Take title instead of unused name as the
  568. 8-th argument.
  569. (x_set_dialog_title): Free old title. Mark this function
  570. obsolete.
  571. * achown.c: Use new create_dlg().
  572. (do_enter_key): Provide titles for popups.
  573. * dlg.c: Remove unused code, make functions static if possible.
  574. * chmod.c: Use common_dialog_repaint().
  575. * chown.c: Likewise.
  576. * layout.c: Likewise.
  577. * option.c: Likewise.
  578. * wtools.c (common_dialog_callback): Fold into ...
  579. * dlg.c (default_dlg_callback): ... this. Don't redraw dialogs
  580. that don't have colors. Adjust all dependencies.
  581. (std_callback): Elimitate.
  582. * panelize.c (panelize_refresh): Eliminate in favor of
  583. common_dialog_callback().
  584. * widget.c (history_callback): Eliminate in favor of
  585. common_dialog_callback().
  586. (show_hist): Set dialog title and flag DLG_COMPACT.
  587. * help.c (help_callback): Use common_dialog_callback().
  588. (interactive_display): Set dialog title.
  589. * wtools.c (listbox_callback): Eliminate in favor of
  590. common_dialog_callback().
  591. * wtools.c (dialog_repaint): Eliminate, nobody should be using
  592. non-standard colors. Adjust all dependencies.
  593. (common_dialog_repaint): Fix return code.
  594. (query_callback): Eliminate, use common_dialog_callback()
  595. instead.
  596. * listmode.c (listmode_refresh): Use common_dialog_repaint().
  597. Eliminate all global variables. Reformat the whole file.
  598. * boxes.c (init_disp_bits_box): Use common_dialog_callback().
  599. Return the new dialog.
  600. * boxes.c (display_callback): Use common_dialog_repaint().
  601. (display_init): Avoid using two different translations.
  602. 2002-09-01 Pavel Roskin <proski@gnu.org>
  603. * help.c (interactive_display): Don't reuse the old value of
  604. help_lines - LINES could have changed. Scale height better for
  605. terminals with many lines - use 2/3 of the full screen.
  606. * man2hlp.c: Move handling of .SH and NODE to a separate
  607. function handle_node(). Don't output empty nodes except in the
  608. table of contents.
  609. 2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
  610. * man2hlp.c (print_error): Print input filename.
  611. (handle_command): Handle .P, .LP, .IP and .br.
  612. Ignore comments and .TH (Title header).
  613. Report about unsupported commands.
  614. Handle .SM and .SB.
  615. * ext.c (regex_command): Use "%s" as text argument.
  616. * user.c (debug_out): Likewise.
  617. * win.c (key_name_conv_tab): Fix initialization.
  618. 2002-08-31 Pavel Roskin <proski@gnu.org>
  619. * help.c (show): Fix segfault on unterminated help files.
  620. From David Martin <dmartina@excite.com>
  621. * key.c (get_event): Reduce scope of select_set. Don't check
  622. mouse_enabled all the time, instead break out of the loop if it
  623. becomes 0.
  624. * main.c (do_nc): Make midnight_colors[] local to do_nc().
  625. Initialize normal color - it's used by the tree.
  626. * boxes.c (tree_box): Use standard dialog_colors.
  627. * tree.c: Use NORMALC for normal entries.
  628. * view.c (view): Avoid passing an uninitialized color array to
  629. create_dlg() - pass NULL instead.
  630. 2002-08-30 Pavel Roskin <proski@gnu.org>
  631. * color.c: Define global array alarm_colors for the colors used
  632. in the dialogs that should be most visible (error messages,
  633. request to delete or overwrite).
  634. (load_dialog_colors): Initialize alarm_colors.
  635. * filegui.c: Use alarm_colors.
  636. * wtools.c: Likewise.
  637. * dlg.c (create_dlg): Make the color_set array constant.
  638. * wtools.c (common_dialog_repaint): Use colors specific to the
  639. current dialog, not fixed colors for "normal" dialogs.
  640. * filegui.c (replace_callback): Eliminate, use
  641. common_dialog_callback() instead.
  642. * filegui.c (file_op_context_create_ui): Use
  643. common_dialog_callback(). Set title to the operation name.
  644. (op_win_callback): Remove, it's unused.
  645. 2002-08-27 Pavel Roskin <proski@gnu.org>
  646. * view.c: Make static whatever possible.
  647. * view.h: Remove internal view routines.
  648. 2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
  649. * selcodepage.c (select_charset): Use snprintf instead of sprintf.
  650. (do_select_codepage) [!HAVE_ICONV]: Remove.
  651. 2002-08-27 Pavel Roskin <proski@gnu.org>
  652. * charsets.c: Add disclaimer of warranty.
  653. * filenot.c: Likewise.
  654. * fileopctx.c: Likewise.
  655. * mfmt.c: Likewise.
  656. * selcodepage.c: Likewise.
  657. * text.c: Likewise.
  658. * textconf.c: Likewise.
  659. * man2hlp.c (main): Factor error checks in fopen() and fclose(),
  660. eliminate reuse of variables for different purposes, add more
  661. comments. Correctly process "\&" escape.
  662. The last part is from David Martin <dmartina@excite.com>
  663. 2002-08-26 Pavel Roskin <proski@gnu.org>
  664. * main.c (init_xterm_support): Force xterm-style screen saving
  665. and no mouse on "cygwin" terminal.
  666. 2002-08-25 Pavel Roskin <proski@gnu.org>
  667. * man2hlp.c: Change default from the English string for TOPICS,
  668. to no heading.
  669. * man2hlp.c (handle_command): Remove quotes from TOPIC.
  670. * key.c (get_event): Check gpm_fd before using it in FD_SET. If
  671. gpm_fd is -1 (gpm has died), disable mouse support.
  672. * key.c: Use the maximal file descriptor, not FD_SETSIZE in all
  673. calls to select().
  674. * subshell.c: Likewise.
  675. From Pavel Tsekov <ptsekov@gmx.net>
  676. 2002-08-24 Pavel Roskin <proski@gnu.org>
  677. * user.c (expand_format): Remove support for error file in the
  678. editor.
  679. * utilunix.c (close_error_pipe): Fix the condition when nothing
  680. needs to be dislayed.
  681. * dlg.c (x_set_dialog_title): Force uniform spacing.
  682. From Andrew Borodin <borodin@zarya-k.ru>
  683. * utilunix.c (check_error_pipe): Check error_pipe[0], not
  684. stdout. From Pavel Tsekov <ptsekov@gmx.net>
  685. * achown.c (chown_refresh): Use common_dialog_repaint().
  686. * dlg.h (struct Dlg_head): Separate user flags and internal
  687. flags. Make "direction" a user flag. Adjust all dependencies.
  688. * dlg.c (run_dlg): Return ret_value.
  689. 2002-08-23 Pavel Roskin <proski@gnu.org>
  690. * text.c (default_edition_colors): Use more rxvt-friendly color
  691. for dhotnormal.
  692. * Makefile.am: Remove definition of CONFDIR, it's not used.
  693. 2002-08-22 Pavel Roskin <proski@gnu.org>
  694. * layout.c (print_vfs_message): Set normal color, don't use
  695. random current attributes.
  696. * dlg.h (struct Dlg_head): Eliminate "data" field, it duplicated
  697. functionality of "title".
  698. * wtools.c (query_callback): Use dialog_repaint().
  699. (quick_callback): Use common_dialog_repaint().
  700. * learn.c (learn_callback): Use common_dialog_repaint().
  701. * achown.c (chl_callback): Likewise.
  702. * dialog.h: Cleanup unused functions.
  703. * dialog.c: Cleanup unused headers.
  704. * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
  705. into one field "flags". Adjust all dependencies. Add new flag
  706. DLG_COMPACT.
  707. * wtools.c (dialog_repaint): Draw frame without spaces if
  708. DLG_COMPACT flag is set.
  709. * complete.c (complete_engine): Set DLG_COMPACT.
  710. (query_callback): Use common_dialog_repaint().
  711. * keys.h: Remove, include ...
  712. * myslang.h: ... here.
  713. * Makefile.am: Remove keys.h.
  714. * dlg.h: Remove unused fields in struct Dlg_head.
  715. * dlg.c: Adjust for the above.
  716. 2002-08-21 Pavel Roskin <proski@gnu.org>
  717. * dlg.h: Remove unused fields in struct Widget.
  718. * dlg.c: Adjust for the above.
  719. * layout.c: Likewise.
  720. * cmd.c (info_cmd_no_menu): Toggle info screen.
  721. (quick_cmd_no_menu): Toggle quick view.
  722. * help.c (interactive_display): Always show button bar.
  723. * widget.c (buttonbar_callback): Fix a bug that prevented the
  724. last byte from being redrawn.
  725. Reported by David Martin <dmartina@excite.com>
  726. * layout.c (setup_panels): Make the button bar 0 lines high if
  727. it's invisible, so that mouse click on the history button works
  728. with invisible button bar.
  729. * widget.c: Make more functions static.
  730. * ext.c: (regex_check_type): Further split. Restore caching
  731. broken in the previous commit.
  732. * ext.c (regex_command): Separate checking for "type/" into ...
  733. (regex_check_type): ... this.
  734. * global.h: Move include for rx.h and eregex.h here.
  735. * learn.c (learn_button): Don't allow Tab to be learned.
  736. 2002-08-20 David Martin <dmartina@excite.com>
  737. * menu.c (create_menu): Get help node as an argument.
  738. * main.c: Use new create_menu() interface.
  739. 2002-08-20 Pavel Roskin <proski@gnu.org>
  740. * man2hlp.c: Don't redirect stdout. Check result of ftell.
  741. Drop support for invocation with 2 arguments.
  742. 2002-08-19 Pavel Roskin <proski@gnu.org>
  743. * cons.handler.c (handle_console): Use _exit(), not exit() in
  744. the child.
  745. * main.c (handle_args): Set POPT_CONTEXT_NO_EXEC flag for
  746. poptGetContext().
  747. * popt.c: Call abort() in execCommand() - we should not execute
  748. anything here.
  749. * util.h: Remove unused and dangerous flags for my_system():
  750. EXECUTE_TEMPFILE, EXECUTE_SETUID and EXECUTE_WAIT.
  751. * utilunix.c: Corresponding adjustments.
  752. * ext.c: Don't use EXECUTE_TEMPFILE, it has no effect.
  753. * subshell.c (synchronize): Workaround for Cygwin (should not be
  754. needed for the next version) - remove SIGCHLD blocking from
  755. old_mask.
  756. * dlg.h: Remove all unused flags for create_dlg(). Adjust all
  757. dependencies.
  758. * cmd.c (fishlink_cmd): Implement user interface for FiSH.
  759. * main.c: Add it to the menu.
  760. * help.c (help_follow_link): Made static.
  761. 2002-08-18 Pavel Roskin <proski@gnu.org>
  762. * subshell.c (synchronize): Discard all remaining data from
  763. stdin to the subshell.
  764. * subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
  765. Remove. Nobody has fixed this code for years.
  766. * main.h [USE_INTERNAL_EDIT]: Don't include declarations from
  767. edit.h.
  768. * setup.c [USE_INTERNAL_EDIT]: Include edit.h.
  769. * boxes.h: Remove user_format.
  770. * boxes.c: Make more variables static, remove all extern
  771. declarations.
  772. * setup.c: Remove some extern declarations.
  773. * mountlist.h: Move some internals ...
  774. * mountlist.c: ... here.
  775. * main.c: Remove extremely unsafe and poorly designed support
  776. for /tmp/mc.$PID.control file.
  777. * util.c (my_putenv): Remove, it's unused now.
  778. * panel.h (struct format_e): Make string_fn return const char *.
  779. Adjust all dependencies.
  780. * screen.c (string_file_mtime): Return empty string for "..".
  781. (string_file_atime): Likewise.
  782. (string_file_ctime): Likewise.
  783. * view.c (display): Use enum for boldflag values. Fix cursor
  784. highlighting for the ASCII part of the hex editor.
  785. * layout.c (init_curses) [!HAVE_SLANG]: Add support for
  786. stickchars - fill acs_map[] with ASCII approximations.
  787. * main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
  788. 2002-08-16 Pavel Roskin <proski@gnu.org>
  789. * setup.c: New variable global_profile_name to hold full name of
  790. mc.lib.
  791. (load_setup): Calculate global_profile_name.
  792. (done_setup): Free global_profile_name.
  793. (load_key_defs): Use global_profile_name.
  794. * treestore.c (should_skip_directory): Likewise.
  795. * man2hlp.c: Implement persistent fread and fwrite to make sure
  796. that all output is read and written.
  797. 2002-08-16 Andrew V. Samoilov <sav@bcs.zp.ua>
  798. * help.c (show): Cast *paint_start to unsigned char to display
  799. Cyrillic with ncurses.
  800. [HAS_ACS_AS_PCCHARS] (acs2pc_table): Make const.
  801. * user.c (expand_format): Cast the argument to functions
  802. for character classification to unsigned int.
  803. (execute_menu_command): Likewise.
  804. 2002-08-15 Pavel Roskin <proski@gnu.org>
  805. * treestore.c (tree_store_remove_entry): Don't use ts.check_name
  806. and don't check it.
  807. * treestore.c: Remove unused code, reformat.
  808. * treestore.h: Remove unused declarations.
  809. * fs.h (compute_namelen): New inline function to take care of
  810. the d_namlen field if and only if it's needed.
  811. * screen.c (string_file_name): Replace non-printable characters
  812. with question marks.
  813. * subshell.c (read_subshell_prompt): Remove argument "how", it's
  814. never set to VISIBLY. Adjust all dependencies. Eliminate hack
  815. with "clear_now" - it causes invalid memory access and hides the
  816. real problem.
  817. * util.c (strip_ctrl_codes): Fix possible invalid memory access
  818. if the escape sequence ends unexpectedly.
  819. 2002-08-14 Pavel Roskin <proski@gnu.org>
  820. * dir.c (do_load_dir): Fix leaking of file descriptors - always
  821. call mc_closedir() before return.
  822. * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix.
  823. * view.c (display): Use only declared color pairs to fix hex
  824. editor appearance with ncurses. Eliminate some useless defines.
  825. 2002-08-10 Pavel Roskin <proski@gnu.org>
  826. * key.c (delete_select_channel): Avoid using freed memory.
  827. 2002-08-09 Pavel Roskin <proski@gnu.org>
  828. * ext.c (exec_extension): Eliminate unused argument.
  829. (regex_command): Remove support for user actions. Return int.
  830. Adjust all dependencies.
  831. * ext.c (exec_extension): Make static. Remove support for Drop,
  832. Title and Icon actions. Adjust all dependencies.
  833. * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
  834. always defined on Linux.
  835. * subshell.c (sigchld_handler): No need to use SIGTSTP
  836. explicitly when we really care about SIGCONT.
  837. * ncurses.patch: Remove, it's obsolete.
  838. * Makefile.am: Remove ncurses.patch.
  839. 2002-08-04 Pavel Roskin <proski@gnu.org>
  840. * subshell.c: Assume that SIGTSTP and SIGCONT are always
  841. defined. This is now checked in configure. Otherwise
  842. synchronize() would hang until subshell exits.
  843. 2002-08-01 Pavel Roskin <proski@gnu.org>
  844. * charsets.c: Unconditionally enable finalization code that was
  845. only used with HAVE_MAD.
  846. * color.c: Likewise.
  847. * color.h: Likewise.
  848. * key.c: Likewise.
  849. * main.c: Likewise.
  850. * slint.c: Likewise.
  851. * subshell.c (exit_subshell): Free subshell_prompt.
  852. * mad.c: Remove.
  853. * mad.h: Likewise.
  854. * Makefile.am (SRCS): Remove mad.c and mad.h.
  855. * cmd.c: Remove references to MAD.
  856. * main.c: Likewise.
  857. * dlg.c: Use inline, not INLINE.
  858. * hotlist.c: Likewise.
  859. * menu.c: Likewise.
  860. * global.h: Don't include mad.h.
  861. 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
  862. * man2hlp.c (main): Don't use freed structure member.
  863. * ext.c (regex_command): Don't check same condition twice.
  864. (exec_extension): Comment out useless loop.
  865. * key.h (key_code_name_t): Typedef const.
  866. 2002-07-30 Pavel Roskin <proski@gnu.org>
  867. * man2hlp.c (main): Use only stream I/O. Fix checks for error
  868. conditions. Reformat the whole file.
  869. * man2hlp.c: Avoid the need to use gindex.pl.
  870. From Andrew V. Samoilov <sav@bcs.zp.ua>
  871. * Makefile.am: Use man2hlp directly.
  872. (EXTRA_DIST): Remove gindex.pl.
  873. * gindex.pl: Remove.
  874. * ext.c (regex_command): Additional check to prevent reading
  875. unallocated memory when matching "shell/". Found by Valgrind.
  876. 2002-07-29 Pavel Roskin <proski@gnu.org>
  877. * setup.c: Eliminate all PORT* macros.
  878. * screen.c: Likewise.
  879. * subshell.c (feed_subshell): Reading 0 bytes in a channel with
  880. FD_ISSET being set is a sign of something being wrong - exit
  881. immediately. Observed when mc is run under su in xterm and
  882. xterm is closed while the subshell is running.
  883. Reported by Vlad Harchev <hvv@hippo.ru>
  884. * color.h: Replace PORT_COLOR macro with BEST_COLOR, which uses
  885. MY_COLOR_PAIR.
  886. * util.c: Remove unused functions.
  887. * utilunix.c: Likewise.
  888. * util.h: Update to match.
  889. * cons.saver.c: Use SEEK_SET instead of 0 in lseek().
  890. * view.c: Likewise.
  891. * main.c (do_execute): Add newline after "Press any key to
  892. continue".
  893. * cons.saver.c: Eliminate some global variables. Further
  894. cleanup. Make sure that console_fd is always closed.
  895. 2002-07-28 Pavel Roskin <proski@gnu.org>
  896. * cons.saver.c: Remove support for Linux kernels before 2.0.
  897. Massive cleanup.
  898. (send_contents): Remove incorrect optimization - restore even
  899. empty lines because they may be touched by the viewer.
  900. From Denis Vlasenko <vda_unique@iname.com>
  901. 2002-07-26 Pavel Roskin <proski@gnu.org>
  902. * utilunix.c (canonicalize_pathname): Don't extend empty path
  903. to "." - it can corrupt memory.
  904. * cmd.c (copymove_cmd_with_default): Remove, it's unused.
  905. (copy_cmd_local): New function, copy within panel.
  906. (ren_cmd_local): New function, rename within panel.
  907. * cmd.h: Adjust to match.
  908. * screen.c (panel_keymap): Associate F15 with copy_cmd_local and
  909. F16 with ren_cmd_local.
  910. * view.c (display): Don't highlight characters as bold if the
  911. character before the backspace was different.
  912. From Roland Illig <roland.illig@gmx.de>
  913. 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
  914. * wtools.c (message): Fix possible buffer overflow.
  915. * slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
  916. * color.c [HAVE_MAD]: ... here and make accessible from
  917. other files to fix compilation.
  918. * color.h [HAVE_MAD]: Declare dealloc_color_pairs.
  919. 2002-07-20 Pavel Roskin <proski@gnu.org>
  920. * screen.c (panel_callback): Revert last change, it has bad side
  921. effects on the subshell.
  922. 2002-07-19 Pavel Roskin <proski@gnu.org>
  923. * dlg.c: Eliminate all useless x_* functions.
  924. * dlg.h: Likewise.
  925. * panel.h: Likewise.
  926. * textconf.h: Likewise.
  927. * view.c: Likewise.
  928. * view.h: Likewise.
  929. * widget.c: Likewise.
  930. * main.c: Remove panel_update_marks(). Move try_to_select() ...
  931. * screen.c: ... here. Eliminate x_* functions.
  932. * main.h: Remove panel_update_marks().
  933. * screen.c (panel_callback): Only change directory on
  934. WIDGET_FOCUS if current_panel changes.
  935. * main.c (handle_args): Don't call mc_get_current_wd().
  936. * main.c (directory_history_list): Report error if cannot change
  937. directory.
  938. 2002-07-16 Pavel Roskin <proski@gnu.org>
  939. * main.c (do_execute): Don't ask to press any key when the shell
  940. is running a command - the user has already pressed Ctrl-O.
  941. 2002-07-15 Pavel Roskin <proski@gnu.org>
  942. * slint.c: Eliminate hardcoded color terminals. Most users no
  943. longer need this hack, and those who do have color_terminals
  944. option in the config file.
  945. 2002-07-14 Pavel Roskin <proski@gnu.org>
  946. * color.c [USE_NCURSES]: Eliminate division by COLOR, it's 0 in
  947. black and white mode.
  948. * slint.c: Move functions for allocating color pairs ...
  949. * color.c: ... here. Implement ncurses equivalents. Rename
  950. init_pair() to mc_init_pair() and keep tack of max_index with
  951. ncurses. Adjust all dependencies.
  952. * mem.h: Clean up obsolete definitions, incorporate into ...
  953. * global.h: ... this.
  954. * Makefile.am: Remove mem.h.
  955. 2002-07-13 Pavel Roskin <proski@gnu.org>
  956. * Makefile.am (AM_CPPFLAGS): Remove REGEX_MALLOC, it's now in
  957. configure.in.
  958. * tty.h: Use standard autoconf defines to determine which
  959. ncurses header to include. Eliminate RENAMED_NCURSES.
  960. 2002-07-10 Pavel Roskin <proski@gnu.org>
  961. * utilunix.c: Cast argument for GUINT_TO_POINTER to int to fix
  962. warnings on Cygwin.
  963. * subshell.c: ioctl() doesn't set errno - don't use perror() to
  964. report failures. Use fprintf() instead, ignore errors from
  965. TIOCSWINSZ.
  966. (resize_tty): New function - code common for resize_subshell()
  967. and init_subshell_child().
  968. * global.h: Include vfs.h.
  969. * boxes.c (configure_vfs): Ask whether .netrc should be used.
  970. From Thomas Zajic <zlatko@gmx.at>
  971. 2002-07-03 Pavel Roskin <proski@gnu.org>
  972. * file.c (do_transform_source): Cast the argument to functions
  973. for character classification to unsigned int.
  974. * main.c (handle_args): Likewise.
  975. * util.c (size_trunc_sep): Likewise.
  976. (skip_numbers): Likewise.
  977. * subshell.c (sigchld_handler): Remove subshell_pty from the
  978. channel list if the subshell has died.
  979. 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
  980. * mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
  981. (mad_strdup_printf): Likewise.
  982. (mad_strdup_vprintf): Likewise.
  983. * main.c [HAVE_MAD] (main): Release this_dir and other_dir.
  984. 2002-07-03 Pavel Roskin <proski@gnu.org>
  985. * main.c (stop_dialogs): New function to stop all dialogs.
  986. (quit_cmd_internal): Use stop_dialogs() instead of stopping
  987. midnight_dlg only. This fixes exit from the shell invoked from
  988. the internal viewer or editor.
  989. * cmd.c (view_other_cmd): Shut down extra select channels before
  990. switching to the shell. Restore them afterwards, but not if
  991. quit was requested. Skip more code on quit.
  992. 2002-07-02 Pavel Roskin <proski@gnu.org>
  993. * util.c: Eliminate get_small_endian_long() and CHECK macro.
  994. * util.h: Rename compression types, add a type for uncompressed
  995. files.
  996. * util.c (is_gunzipable): Rename to ...
  997. (get_compression_type): this. Don't check archive length, since
  998. it's unreliable if there is padding at the end of the file.
  999. Eliminate prehistoric Linux workaround. All callers adjusted.
  1000. 2002-07-01 Andrew V. Samoilov <kai@cmail.ru>
  1001. * utilunix.c (close_error_pipe): Use "%s" in message () to
  1002. prevent possible crash.
  1003. (check_error_pipe): Likewise.
  1004. 2002-06-27 Pavel Roskin <proski@gnu.org>
  1005. * screen.c (do_enter_on_file_entry): Process associations before
  1006. trying to execute the file.
  1007. 2002-06-20 Pavel Roskin <proski@gnu.org>
  1008. * dir.c (handle_dirent): Don't process ".." entries.
  1009. (handle_path): Likewise.
  1010. From Andrew V. Samoilov <kai@cmail.ru>
  1011. 2002-06-13 Oskar Liljeblad <oskar@osk.mine.nu>
  1012. * slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
  1013. force_colors is not set. This fixes color on unknown terminals.
  1014. 2002-06-13 Andrew V. Samoilov <kai@cmail.ru>
  1015. * user.c (expand_format): Fix '%b' proccessing.
  1016. Handle '%k' as documented.
  1017. 2002-05-30 Andrew V. Samoilov <kai@cmail.ru>
  1018. * view.c (regexp_search): Don't call save_edit_changes
  1019. if there are no changes.
  1020. (save_edit_changes): Use messages from ../po/mc.pot.
  1021. * mad.c (mad_tempnam): Commented out to make linker happy.
  1022. * main.c [HAVE_MAD && !_OS_NT] (main): G_free mc_home.
  1023. 2002-05-27 Andrew V. Samoilov <kai@cmail.ru>
  1024. * view.c (save_edit_changes): Handle errors.
  1025. (do_view_init): Don't open and check file type
  1026. if _command is not null or _file is empty string.
  1027. 2002-05-22 Pavel Roskin <proski@gnu.org>
  1028. * Makefile.am: doc/mc.1 is in top_builddir, not in top_srcdir.
  1029. 2002-05-15 Andrew V. Samoilov <kai@cmail.ru>
  1030. * view.c (do_view_init): Close fd if it is unused.
  1031. 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
  1032. * Makefile.am (VFSLIB): Add ../vfs/samba/libsamba.a
  1033. if USE_SAMBA_FS is true.
  1034. 2002-05-07 Pavel Roskin <proski@gnu.org>
  1035. * hotlist.c (hotlist_button_callback): Don't process B_REMOVE
  1036. for VFS list - it would crash.
  1037. From Andrey Panov <pav@metib.ru>
  1038. 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
  1039. * main.c [!WITH_MCFS] (PanelMenu): Eliminate mcfs related entry.
  1040. (RightMenu): Likewise.
  1041. * textconf.c (features): Likewise.
  1042. * cmd.c (netlink_cmd) [!WITH_MCFS]: Eliminate.
  1043. 2002-04-03 Pavel Roskin <proski@gnu.org>
  1044. * Makefile: mc.hlp should be in MAINTAINERCLEANFILES, not in
  1045. CLEANFILES, because "make clean" should not make the source
  1046. directory useless on systems without Perl.
  1047. 2002-03-26 Andrew V. Samoilov <kai@cmail.ru>
  1048. * eregex.h [!USE_INCLUDED_REGEX]: Include <regex.h>.
  1049. * regex.c: Compile only if USE_INCLUDED_REGEX is defined.
  1050. 2002-03-25 Andrew V. Samoilov <kai@cmail.ru>
  1051. * complete.c (insert_text): Fix buffer overflow.
  1052. * cmd.[ch] [USE_INTERNAL_EDIT] (edit_syntax_cmd:) New dialog
  1053. to edit Syntax Highlighting definitions file.
  1054. * main.c (CmdMenu) [USE_INTERNAL_EDIT]: Add 'Syntax file edit'
  1055. entry.
  1056. (process_args): Print mc's library directory to stdout.
  1057. 2002-03-21 Andrew V. Samoilov <kai@cmail.ru>
  1058. * man2hlp.c (handle_command): Handle backslash quoting
  1059. for .I and .B
  1060. (handle_link): Strip .B and .I
  1061. * gindex.pl: Use fifth argument as man2hlp location.
  1062. 2002-03-20 Andrew V. Samoilov <kai@cmail.ru>
  1063. * man2hlp.c (handle_command): Handle '.\"TOPICS' comment.
  1064. Use it for translated 'Topics:' message.
  1065. * gindex.pl: Use first line of man2hlp output as
  1066. translated 'Topics:' message if fourth argument
  1067. is empty string.
  1068. * Makefile.am (mc.hlp.ru): Use empty string as gindex.pl's
  1069. fourth argument.
  1070. * textconf.c (version): Write to stdout.
  1071. * main.c (print_mc_usage): Add "stream" parameter to specify
  1072. file stream.
  1073. (process_args): Use print_mc_usage() with stdout as stream.
  1074. (handle_args): Use print_mc_usage() with stderr as stream.
  1075. (print_color_usage): Write to stdout.
  1076. 2002-03-18 Pavel Roskin <proski@gnu.org>
  1077. * eregex.h: Update from glibc-2.2.5.
  1078. * regex.c: Likewise.
  1079. * find.c: Use eregex.h, not regex.h.
  1080. * util.c: Likewise.
  1081. * view.c: Likewise.
  1082. From Alexander Varakin <avarakin00@hotmail.com>
  1083. * find.c (find_parameters): Invert condition when find is case
  1084. sensitive.
  1085. 2002-03-04 Andrew V. Samoilov <kai@cmail.ru>
  1086. * Makefile.am (mc.hlp.ru): Use mc.1 instead of mc.1.in.
  1087. (mc.hlp): Likewise.
  1088. * file.c (copy_file_file): Chmod destination only if
  1089. ctx->preserve is on. Eliminate gotos.
  1090. 2002-03-01 Andrew V. Samoilov <kai@cmail.ru>
  1091. * Makefile.am (mc.hlp.ru): New rule to compile translated
  1092. help file.
  1093. (mclib_DATA): Add mc.hlp.ru.
  1094. (EXTRA_DIST): Likewise.
  1095. * gindex.pl: Add optional 4th argument for translated
  1096. Content section name.
  1097. 2002-02-28 Andrew V. Samoilov <kai@cmail.ru>
  1098. * mad.c: Make mem_areas dynamically growing.
  1099. (mad_init): Allocate memory for mem_areas.
  1100. (mad_alloc): Grow mem_areas if it is exhausted.
  1101. * filegui.c (file_mask_dialog): Enable 'follow Links'
  1102. and 'preserve Attributes' features in Move dialog.
  1103. (file_bps_show): Translate messages.
  1104. (file_eta_show): Likewise.
  1105. * man2hlp.c (main): Don't crash if called without argument(s).
  1106. Make buffer char pointer.
  1107. (handle_command): Handle '.\"NODE' comment. Use it for
  1108. nodename in translated manual pages.
  1109. * gindex.pl: Use [nodename] as user visible section name
  1110. only if next line is empty. Elsewhere use this nonempty line.
  1111. * find.c (find_parameters): Compile content_pattern here.
  1112. Inform user about malformed regular expression.
  1113. (search_content): Use compiled regular expression.
  1114. (do_find): Eliminate `done'. Call regfree for compiled
  1115. content_pattern.
  1116. 2002-02-24 Pavel Roskin <proski@gnu.org>
  1117. * chown.c (chown_cmd): Use size_trunc_len() to show the file
  1118. size. Eliminate c_fsize, which wasn't properly initialized.
  1119. 2002-02-22 Pavel Roskin <proski@gnu.org>
  1120. * man2hlp.c (string_len): Don't exclude characters with codes
  1121. above 128 from the string length.
  1122. 2002-02-21 Andrew V. Samoilov <kai@cmail.ru>
  1123. * ext.c (exec_extension): Use "#! /bin/sh".
  1124. 2002-02-20 Pavel Roskin <proski@gnu.org>
  1125. * background.c (background_attention): Cast pointer to long
  1126. instead of int because it's unsafe of 64-bit systems.
  1127. * main.c (init_xterm_support): Likewise.
  1128. 2002-02-18 Pavel Roskin <proski@gnu.org>
  1129. * utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection
  1130. of Qnet names. Disable support of Qnet names under QNX Netrino.
  1131. Reported by Maurizio Rossi <MRossi@system-group.it>
  1132. * global.h: Include unix.h under "classical" QNX.
  1133. * subshell.c: Don't include unix.h.
  1134. * utilunix.c: Likewise.
  1135. 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
  1136. * main.c (update_one_panel_widget): Call ftpfs_flushdir().
  1137. 2002-02-05 Pavel Roskin <proski@gnu.org>
  1138. * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
  1139. * layout.c [USE_NCURSES] (flag_winch): Don't call
  1140. low_level_change_screen_size() from signal handler.
  1141. From Thomas Dickey <dickey@herndon4.his.com>
  1142. * screen.c (format_file): Add a new parameter (size of the
  1143. output buffer) to prevent buffer overflow on very wide
  1144. terminals.
  1145. From Thomas Dickey <dickey@herndon4.his.com>
  1146. 2002-02-04 Andrew V. Samoilov <kai@cmail.ru>
  1147. * util.c [!HAVE_TRUNCATE] (truncate): Close fd if my_ftruncate
  1148. fails.
  1149. * util.c [HAVE_CHARSET] (is_printable): Eliminate printable.
  1150. * setup.c [HAVE_CHARSET] (load_setup): Don't use
  1151. init_printable_table.
  1152. * charsets.h: Don't declare init_printable_table ().
  1153. * charset.c (printable): Removed.
  1154. (init_printable_table): Removed.
  1155. 2002-01-30 Andrew V. Samoilov <kai@cmail.ru>
  1156. * file.c (recursive_erase): Use mc_closedir() if mc_lstat()
  1157. fails. Eliminate goto.
  1158. (erase_dir): Eliminate goto.
  1159. (erase_dir_iff_empty): Likewise.
  1160. 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
  1161. * dir.c (handle_dirent): Use MSG_ERROR.
  1162. * charsets.c (translate_character): Use ICONV_CONST.
  1163. 2002-01-22 Pavel Roskin <proski@gnu.org>
  1164. * screen.c: Don't try to paint anything if width is 0 or less.
  1165. Reported by Pawel Sakowski <pawel@sakowski.eu.org>
  1166. * screen.c: Make functions static whenever possible. Remove
  1167. unused functions.
  1168. * panel.h: Remove corresponding declarations.
  1169. 2002-01-21 Pavel Roskin <proski@gnu.org>
  1170. * util.c: Move replacements for permission bits ...
  1171. * fs.h: ... here. Add more replacements.
  1172. * global.h: Include direct.h only with MSVC.
  1173. * main.c: Include "drive.h", not <drive.h>, do it after panel.h.
  1174. Use _OS_NT as the condition for including drive.h.
  1175. * screen.c: Use _OS_NT as the condition for including drive.h.
  1176. * global.h [_OS_NT]: Include io.h, direct.h and windows.h.
  1177. Don't redefine struct timeval.
  1178. * fs.h [_MSC_VER]: Use dirent provided by glib.
  1179. * global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
  1180. timeval.
  1181. * findme.c: Respect HAVE_UNISTD_H.
  1182. * popt.c: Likewise.
  1183. * global.h: Fallback to sys/utime.h if utime.h is missing.
  1184. * global.h: Provide fallbacks for getuid(), getgid(), geteuid()
  1185. and getegid().
  1186. * fs.h: Fully trust HAVE_DIRENT_H.
  1187. * complete.c: Don't include dirent.h directly, fs.h takes care
  1188. of it.
  1189. * file.c: Likewise.
  1190. * filegui.c: Likewise.
  1191. * main.c: Likewise.
  1192. * treestore.c: Likewise.
  1193. * global.h [!__GNUC__]: Define __attribute__ with one argument.
  1194. 2002-01-20 Pavel Roskin <proski@gnu.org>
  1195. * screen.c (string_file_size): Translate "UP--DIR".
  1196. (string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
  1197. * dir.c (add_dotdot_to_list): Don't use costly stat() - just put
  1198. realistic (i.e. bogus) data to the list.
  1199. * screen.c (string_file_size): Don't display size of ".." - it
  1200. may take too much time to calculate it on VFS. Show "UP--DIR"
  1201. instead.
  1202. (string_file_size_brief): Remove ".." handling - it's now done
  1203. in string_file_size(). Show "SUB-DIR" for links to directories,
  1204. "SYMLINK" for other links.
  1205. 2002-01-17 Pavel Roskin <proski@gnu.org>
  1206. * cmd.c: Remove OS/2 specific code.
  1207. * file.c: Likewise.
  1208. * main.c: Likewise.
  1209. * main.h: Remove dead declarations.
  1210. * setup.c: Remove defunct extension alignment support.
  1211. * util.c: Likewise.
  1212. * util.h: Likewise.
  1213. * main.c: Remove unused toggle_* functions.
  1214. * dir.c: Show backups by default.
  1215. 2002-01-15 Andrew V. Samoilov <kai@cmail.ru>
  1216. * file.c (copy_dir_dir): Check the destination is a directory
  1217. if it exists. Reported by Thomas <metaf4@pseudonym.org>.
  1218. 2002-01-09 Andrew V. Samoilov <kai@cmail.ru>
  1219. * util.c (string_perm) [S_IFDOOR]: Support Solaris doors.
  1220. * screen.c (string_file_type) [S_IFDOOR]: Likewise.
  1221. 2001-12-21 Pavel Roskin <proski@gnu.org>
  1222. * hotlist.c (hotlist_callback): Recognize "delete" key.
  1223. * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang/slang-mc.h to
  1224. simplify includes.
  1225. [HAVE_SYSTEM_SLANG]: Use angle brackets for slang.h.
  1226. * myslang.h [!HAVE_SYSTEM_SLANG]: Include slang-mc.h directly
  1227. to avoid relying on symlinks.
  1228. 2001-12-18 Pavel Roskin <proski@gnu.org>
  1229. * utilunix.c (init_groups): Don't return prematurely if the
  1230. primary group cannot be found (it can happen on Cygwin).
  1231. 2001-12-10 Pavel Roskin <proski@gnu.org>
  1232. * dir.c (do_reload_dir): Hash-table added.
  1233. From Björn Eriksson <mdeans@algonet.se>
  1234. 2001-12-03 Pavel Roskin <proski@gnu.org>
  1235. * dir.c (do_reload_dir): Optimize the logic - count the marks
  1236. and only match new entries against old entries if at least one
  1237. mark has not been transferred.
  1238. From Björn Eriksson <mdeans@algonet.se>
  1239. 2001-11-29 Pavel Roskin <proski@gnu.org>
  1240. * main.c (midnight_callback): Implement "auto menus".
  1241. * layout.c: Make more variables static.
  1242. * cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
  1243. of cons.saver.h can be omitted.
  1244. * cons.saver.h: Declare nothing but constants if
  1245. LINUX_CONS_SAVER_C is defined.
  1246. 2001-11-14 Pavel Roskin <proski@gnu.org>
  1247. Fully eliminate all references to HAVE_X and HAVE_GNOME.
  1248. * dir.c (do_sort): Correctly handle the case when there is no
  1249. ".." entry (i.e. panelized mode).
  1250. 2001-11-14 Andrew V. Samoilov <kai@cmail.ru>
  1251. * view.c (do_view_init): Make sure _file is not
  1252. an empty string before mc_stat and mc_open.
  1253. Memory leak fixed.
  1254. 2001-11-14 Pavel Roskin <proski@gnu.org>
  1255. * panelize.c (do_external_panelize): Re-sort the panel according
  1256. to the current settings.
  1257. * find.c (do_find): Re-sort the panel according to the current
  1258. settings when doing panelizing.
  1259. * dir.c (sort_type_to_name): Remove, it's unused in the text
  1260. edition.
  1261. (sort_name_to_type): Likewise.
  1262. * dir.h: Adjust to match.
  1263. * mouse.c: Add default cases to fix warnings with gcc-2.96.
  1264. 2001-11-12 Pavel Roskin <proski@gnu.org>
  1265. * main.c: Remove support for subshell debugging. Firstly, it
  1266. was broken. Secondly, every developer should be able to add
  1267. this code when needed. Finally, there is no need to expose the
  1268. option to the user and translate it into 30 languages.
  1269. * subshell.h: Remove debug_subshell.
  1270. * subshell.c: Likewise.
  1271. 2001-11-12 Andrew V. Samoilov <kai@cmail.ru>
  1272. * mad.h: Enable glib support.
  1273. * mad.[ch] (mad_get_current_dir): New function to use instead
  1274. of g_get_current_dir.
  1275. (mad_tempnam): Add file and line parameters.
  1276. (mad_alloc0): Make file parameter const.
  1277. (mad_realloc): Likewise.
  1278. (mad_strdup): Likewise.
  1279. (mad_strndup): Likewise.
  1280. (mad_free): Likewise.
  1281. (mad_finalize): Likewise.
  1282. 2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
  1283. * cmd.c (guess_message_value): Make val static const array.
  1284. (smblink_cmd) [!WITH_SMBFS]: Eliminated.
  1285. * dlg.c (add_widget): Check for what is not NULL
  1286. before everything else.
  1287. * slint.c (slang_reset_softkeys): Make display static const
  1288. array. Use sizeof (display) - 1 instead of strlen display.
  1289. (color_terminals): Make static const array.
  1290. (key_table): Make const.
  1291. (dealloc_color_pairs) [HAVE_MAD]: New function. Release
  1292. memory allocated in try_alloc_color_pair.
  1293. (slang_shutdown) [HAVE_MAD]: Call dealloc_color_pairs.
  1294. (try_alloc_color_pair): Move struct c outside function.
  1295. 2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
  1296. * charsets.c (load_codepages_list): Use glib memory allocation
  1297. functions.
  1298. (free_codepages_list) [HAVE_MAD]: New function to release
  1299. memory allocated in load_codepages_list.
  1300. * charsets.h: Declare free_codepages_list.
  1301. * main.c [HAVE_CHARSET]: Include charsets.h.
  1302. (main) [HAVE_MAD && HAVE_CHARSET]: Call free_codepages_list.
  1303. (program_name): Commented out.
  1304. 2001-10-26 Andrew V. Samoilov <kai@cmail.ru>
  1305. * key.c (push_char): Fix buffer length calculation.
  1306. By David Kaelbling <drk@sgi.com>.
  1307. http://bugzilla.gnome.org/show_bug.cgi?id=60932
  1308. (define_sequence): Likewise.
  1309. (key_define_t): Add const declaration.
  1310. 2001-10-22 Pavel Roskin <proski@gnu.org>
  1311. * main.h: Declare view_one_file and edit_one_file.
  1312. 2001-10-22 Andrew V. Samoilov <kai@cmail.ru>
  1313. * dialog.h: Include global.h.
  1314. (message): Specify __attribute__.
  1315. 2001-10-20 Pavel Roskin <proski@gnu.org>
  1316. * main.h (print_vfs_message): Specify __attribute__.
  1317. 2001-10-19 Pavel Roskin <proski@gnu.org>
  1318. * global.h: Define __attribute__ to an empty string for non-gcc
  1319. compilers so that it's safe to use.
  1320. 2001-10-18 Pavel Roskin <proski@gnu.org>
  1321. * view.c (init_growing_view): Revert last change, it was wrong.
  1322. (view_hook): Don't check that the file is regular - it's now
  1323. done in do_view_init(). This fixes update problem in quick view
  1324. when moving cursor from a regular file to a directory.
  1325. * view.c (do_view_init): Only accept regular files. Use stat(),
  1326. not fstat() because open() would hang on pipes. Avoid opening
  1327. the file twice.
  1328. (init_growing_view): Take file descriptor, not the filename.
  1329. (load_view_file): Likewise.
  1330. 2001-10-01 Pavel Roskin <proski@gnu.org>
  1331. * boxes.c (tree): Rename to tree_box() to avoid confusion.
  1332. Adjust all callers and headers.
  1333. * main.c (tree_box): Rename to tree_box_cmd().
  1334. * tree.c (set_navig_label): Get argument "tree".
  1335. (set_navig_label): Likewise. Adjust all callers. Don't cast
  1336. function tree() to (Widget *) - it's wrong and dangerous.
  1337. * widget.h: Use type "buttonbarfn" more consistently.
  1338. * widget.c: Likewise.
  1339. * setup.c [!USE_VFS]: Warning fix.
  1340. * hotlist.c [!USE_VFS]: Likewise.
  1341. * tree.c (tree_navigation_flag): Should not be static.
  1342. * screen.c (panel_format_modified): Use more portable cast.
  1343. * fileopctx.h: Define new type mc_stat_fn.
  1344. * filegui.c (file_mask_dialog): Cast mc_stat and mc_lstat to
  1345. mc_stat_fn to prevent warnings without VFS support.
  1346. * fileopctx.c (file_op_context_new): Likewise.
  1347. 2001-09-23 Andrew V. Samoilov <kai@cmail.ru>
  1348. * find.c: Include rx.h or regex.h
  1349. (get_line_at): New function. Returns malloc()ed null-terminated
  1350. line from file file_fd. Input is buffered in buf_size long
  1351. buffer.
  1352. (search_content): Don't use external egrep.
  1353. Use get_line_at and regexp.
  1354. 2001-09-21 Pavel Roskin <proski@gnu.org>
  1355. * cmd.c: Change all "long" variables to "off_t" whenever they
  1356. are used to store file sizes.
  1357. * file.c: Likewise.
  1358. * file.h: Likewise.
  1359. * fileopctx.h: Likewise.
  1360. * tree.c: Likewise.
  1361. * filegui.c: Likewise.
  1362. (show_bar): Take "double" arguments. Normalize arguments of
  1363. gauge_set_value() before converting them to "int".
  1364. 2001-09-17 Pavel Roskin <proski@gnu.org>
  1365. * mouse.h: Major cleanup and interface change. init_mouse()
  1366. should only be called once, disable_mouse() and enable_mouse()
  1367. should be used later. Distinguish between disabled and
  1368. undetected mouse. Remove debugging stuff. Adjust all users.
  1369. * mouse.c: Implementation of the above.
  1370. * key.c: Don't use gpm_flag - check mouse_enabled instead.
  1371. 2001-09-15 Pavel Roskin <proski@gnu.org>
  1372. * view.c: Cleanup of preprocessor directives.
  1373. * view.h: Likewise.
  1374. * widget.c: Likewise.
  1375. * widget.h: Likewise.
  1376. * textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
  1377. Continued eliminating GNOME code.
  1378. * cmd.c: Clean up unused GNOME code and some ifdef's.
  1379. * dlg.c: Likewise.
  1380. * dlg.h: Likewise.
  1381. * ext.c: Likewise.
  1382. * setup.c: Likewise.
  1383. * cmd.c (guess_message_value): Remove the argument. Adjust all
  1384. callers.
  1385. * textconf.c (features): Remove "edition", minor fixes.
  1386. (version): Don't report the current locale - it's meaningless,
  1387. especially if ENABLE_NLS is not defined.
  1388. * textconf.h: Remove status_using_ncurses - it's useless now.
  1389. Adjust all users. Call do_exit_ca_mode() and do_enter_ca_mode()
  1390. even with ncurses.
  1391. * main.c (init_xterm_support): Don't enable xterm_flag just
  1392. because of "kmous" in terminfo. Setiing this flag means much
  1393. more than just mouse support. Recognize terminals beginning
  1394. with "rxvt" and set xterm_flag for them.
  1395. * cmd.c (view_other_cmd): Don't check use_mouse_p before calling
  1396. init_mouse() and shut_mouse(), since those functions decide
  1397. themselves what to do.
  1398. * layout.c (done_screen): Likewise.
  1399. * main.c (setup_mc): Likewise.
  1400. * text.c (edition_post_exec): Likewise.
  1401. (edition_pre_exec): Likewise.
  1402. * user.h: Fix location of the home editor menu.
  1403. Reported by David Martin <dmartina@excite.es>
  1404. * mouse.h: Export xmouse_seq.
  1405. * mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
  1406. xterm mouse sequence.
  1407. * main.c (setup_post): Join with setup_mc().
  1408. (init_xterm_support): New function. Check mouse capability.
  1409. (OS_Setup): Remove parts that are now in init_xterm_support().
  1410. 2001-09-14 Pavel Roskin <proski@gnu.org>
  1411. * key.c (get_event): Recognize KEY_MOUSE, not just MCKEY_MOUSE.
  1412. * mouse.c: Don't use or emulate keyok(), since MC understands
  1413. KEY_MOUSE now.
  1414. 2001-09-11 Pavel Roskin <proski@gnu.org>
  1415. * cmd.c (check_for_default): Make accessible from other files.
  1416. * cmd.h: Declare check_for_default().
  1417. 2001-09-10 Pavel Roskin <proski@gnu.org>
  1418. * layout.c: Use HAVE_TERMIOS_H and HAVE_SYS_IOCTL_H more
  1419. consistently.
  1420. * mouse.c: Likewise.
  1421. * subshell.c: Likewise.
  1422. * win.c: Likewise.
  1423. * util.c: Remove unused includes.
  1424. * Makefile.am (mc_LDADD): Don't use LSLANG and LGPM, since they
  1425. are now included into MCLIBS.
  1426. * Makefile.am (mc_LDADD): Use INTLLIBS provided by gettext
  1427. instead of LINTL.
  1428. 2001-09-09 Pavel Roskin <proski@gnu.org>
  1429. * hotlist.c (load_hotlist): If cannot open hotlist, don't assume
  1430. that it needs to be migrated and don't warn the user.
  1431. 2001-09-08 Pavel Roskin <proski@gnu.org>
  1432. * Makefile.am: Fix definitions of CONFDIR and LOCALEDIR.
  1433. * subshell.c: Move definitions of WEXITSTATUS and WIFEXITED
  1434. below all includes so that they can be defined elsewhere.
  1435. 2001-09-07 Pavel Roskin <proski@gnu.org>
  1436. * myslang.h: Specify arguments to function-like macros or remove
  1437. them if they are unused.
  1438. * main.c: Remove old debugging code. Remove external function
  1439. declarations.
  1440. (menu_bar_event): Remove, it's unused.
  1441. * main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
  1442. * layout.c: Remove all external declarations.
  1443. * main.c (main): Call save_stop_handler() - it was ifdef'd out
  1444. by error.
  1445. * main.c: Remove all GNOME code.
  1446. * cmd.c: No need to define "MIDNIGHT" before including vfs.h.
  1447. * user.h: Remove all dirty tricks with "MIDNIGHT" - they are not
  1448. needed anymore.
  1449. * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
  1450. sources not to include them and to include global.h at the right
  1451. place.
  1452. * global.h: Include all time-related system includes, since
  1453. it's non-trivial (order, conflicts) and is better handled in one
  1454. place.
  1455. 2001-09-06 Pavel Roskin <proski@gnu.org>
  1456. * fsusage.c: Include sys/param.h before sys/mount.h - it's
  1457. required on some systems.
  1458. * mountlist.c: Likewise.
  1459. From Timur Bakeyev <mc@bat.ru>
  1460. 2001-09-04 Pavel Roskin <proski@gnu.org>
  1461. * Makefile.am: Don't use substituted values directly. Define
  1462. CHARSET_SRC unconditionally. Join SRCS and HDRS.
  1463. 2001-09-03 Pavel Roskin <proski@gnu.org>
  1464. * widget.c (label_new): Don't calculate dimensions of multiline
  1465. labels, since they cannot be changed and msglen() is already
  1466. used when the dialog is created.
  1467. * Makefile.in: Converted to ...
  1468. * Makefile.am: ... this.
  1469. * slint.c: Make more data and function static.
  1470. * key.h: Remove declarations that are now static.
  1471. * myslang.h: Likewise.
  1472. * x.h: Remove. Adjust all users. Make sure that global.h is
  1473. included instead. Don't include sys/param.h unconditionally -
  1474. rely on global.h taking care of it.
  1475. * Makefile.in: Remove x.h.
  1476. * color.c: Remove unused code.
  1477. * color.h: Likewise.
  1478. 2001-09-02 Pavel Roskin <proski@gnu.org>
  1479. * key.c: Remove support for BUGGY_CURSES.
  1480. * tty.h: Remove support for old curses and GNOME.
  1481. * global.h: Likewise.
  1482. * widget.c (label_new): Set initial width of the widget based on
  1483. the initial text.
  1484. * view.c (hex_search): Don't use sscanf() to search for quoted
  1485. strings - use strchr instead.
  1486. 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
  1487. * utilunix.c: init_groups(), destroy_groups(), get_user_permissions()
  1488. rewritten to use GTree structure and functions. Add new static helper
  1489. functions mc_gid_compare() and mc_gid_destroy().
  1490. * util.h: Removed deprecated structure user_in_groups.
  1491. * screen.c: Fixed typo in format report error string.
  1492. 2001-08-31 23:14:21 Timur Bakeyev <mc@bat.ru>
  1493. * utilunix.c: get_user_rights() renamed into get_user_permissions().
  1494. delete_groups() renamed into destroy_groups().
  1495. * util.h: Likewise.
  1496. * screen.c: Likewise.
  1497. * main.c: Likewise.
  1498. 2001-08-27 Pavel Roskin <proski@gnu.org>
  1499. * cmd.c (dirsizes_cmd): Don't cast st_size to long - use off_t
  1500. instead, since off_t can be longer.
  1501. Reported by Radovan Bukoci <rado@autoparts.sk>
  1502. 2001-08-30 David Martin <dmartina@excite.es>
  1503. * info.c (info_show_info): Use size_trunc_len() instead of
  1504. print_bytesize(). Don't assume English word ordering. Add
  1505. singular message when single block.
  1506. * win.c (print_bytesize): Remove.
  1507. (sprint_bytesize): Remove.
  1508. * win.h: Remove print_bytesize() and sprint_bytesize().
  1509. * util.c (size_trunc_len): Add units parameter. Change all
  1510. callers.
  1511. * util.c (size_trunc_len): Print size values with some (little)
  1512. sense for tiny and even wee lengths (i.e. squeezed X terminals).
  1513. * info.c (info_show_info): Move comment line just before
  1514. translatable message so it's shown in .po files to alert
  1515. translators. The message (translated) is used to set the start
  1516. column (so the available width) for some "truncatable" strings.
  1517. 2001-08-27 Pavel Roskin <proski@gnu.org>
  1518. * key.c (learn_key): Turn off keypad to disable intepreting keys
  1519. by ncurses.
  1520. Reported by Frederic L. W. Meunier <fredlwm@pervalidus.net>
  1521. 2001-08-26 Pavel Roskin <proski@gnu.org>
  1522. * xcurses.c: Remove.
  1523. * Makefile.in: Remove all references to xcurses.c.
  1524. 2001-08-24 Pavel Roskin <proski@gnu.org>
  1525. * user.h: Include "../edit/edit-widget.h", not
  1526. "../gtkedit/edit-widget.h".
  1527. * subshell.c: Use standard Autoconf symbols to determine whether
  1528. to include <stropts.h> and <grp.h>.
  1529. 2001-08-23 Pavel Roskin <proski@gnu.org>
  1530. * subshell.c (feed_subshell): Don't wait forever after the first
  1531. select() call if fail_on_error is true. This alleviates hang
  1532. with zsh on QNX Neutrino.
  1533. 2001-08-21 Pavel Roskin <proski@gnu.org>
  1534. * view.h: Declare view_dlg.
  1535. * main.h: Declare edit_dlg.
  1536. * layout.c (change_screen_size): Remove external declarations
  1537. inside the function.
  1538. 2001-08-20 Pavel Roskin <proski@gnu.org>
  1539. * view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
  1540. 2001-08-19 Pavel Roskin <proski@gnu.org>
  1541. * main.c (mc_maybe_editor_or_viewer) [!USE_INTERNAL_EDIT]:
  1542. Reenable to make "mc -v" possible.
  1543. (do_nc): Call mc_maybe_editor_or_viewer() even if the editor
  1544. is not compiled in.
  1545. (argument_table) [!USE_INTERNAL_EDIT]: Disable "-e".
  1546. 2001-08-19 Andrew V. Samoilov <sav@bcs.zp.ua>
  1547. * view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
  1548. statements.
  1549. 2001-08-19 Pavel Roskin <proski@gnu.org>
  1550. * screen.c [HAVE_X]: Disable unused code.
  1551. * fs.h: Correctly include <sys/param.h>.
  1552. * x.h: Include "global.h". Move all contents ...
  1553. * global.h: Here.
  1554. * regex.c (regex_compile): Warning fix for ambiguous else.
  1555. 2001-08-18 Pavel Roskin <proski@gnu.org>
  1556. * key.c (xmouse_get_event): Filter out GPM_UP events that don't
  1557. follow a GPM_DOWN event. Filter out events with unknown button
  1558. numbers, such as mouse wheel events.
  1559. (get_event): Return EV_NONE if xmouse_get_event() decided to
  1560. ignore the event.
  1561. * main.c (init_sigchld): Disable subshell if SIGCHLD handler
  1562. cannot be installed.
  1563. * x.h: Instead of undefining MIX and MAX after <gnome.h> make
  1564. sure that <sys/param.h> is included before <gnome.h>.
  1565. 2001-08-17 Pavel Roskin <proski@gnu.org>
  1566. * key.c (mc_bindings) [linux]: Remove old hack - recognizing
  1567. "\e[2~" on all terminals.
  1568. 2001-08-16 Pavel Roskin <proski@gnu.org>
  1569. * charsets.c (load_codepages_list): Print a warning if
  1570. mc.charset cannot be opened.
  1571. * setup.c (load_setup) [HAVE_CHARSET]: Remove all popup messages
  1572. because it's to early to use them - ncurses would crash.
  1573. 2001-08-15 Pavel Roskin <proski@gnu.org>
  1574. * util.c (strip_ctrl_codes): Rewrite using pointers. Fix
  1575. stripping sequences beginning with "\e[". Check is_printable().
  1576. * man2hlp.c: Remove HTML support. Remove old link support.
  1577. Warning fixes.
  1578. (print_string): Handle backslashes in verbatim mode too.
  1579. * main.c (setup_pre) [HAVE_CHARSET]: Fix compilation with
  1580. ncurses.
  1581. * textconf.c (features): Fix interpretation of
  1582. HAVE_SYSTEM_SLANG.
  1583. From David Martin <dmartina@excite.es>
  1584. 2001-08-14 Pavel Roskin <proski@gnu.org>
  1585. * key.h (define_sequence): Change declaration to return int.
  1586. * key.c (define_sequence): Return 1 on success, 0 on error.
  1587. * learn.c (learn_button): Don't accept sequence if
  1588. define_sequence() has failed.
  1589. 2001-08-12 Pavel Roskin <proski@gnu.org>
  1590. * learn.c (learn_save): Fix memory leak.
  1591. * dir.c (string_sortcomp) [HAVE_STRCOLL]: Make static.
  1592. * cmd.c (guess_message_value): Typo - replace "LC_MESSAGE" with
  1593. "LC_MESSAGES".
  1594. * dir.c (string_sortcomp) [HAVE_STRCOLL]: Always use strcmp()
  1595. for case sensitive sort. For case insensitive sort use
  1596. strcoll() if it's case insensitive for ASCII and g_strcasecmp()
  1597. otherwise.
  1598. 2001-08-11 Pavel Roskin <proski@gnu.org>
  1599. * achown.c (chown_advanced_cmd): Remove dead code.
  1600. * chown.c (chown_cmd): Likewise.
  1601. * chmod.c (chmod_cmd): Likewise.
  1602. * charsets.c (load_codepages_list): Use concat_dir_and_file().
  1603. * mad.h: Disable glib support - it doesn't work properly.
  1604. 2001-08-07 Pavel Roskin <proski@gnu.org>
  1605. * view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
  1606. to view_help_cmd().
  1607. (view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
  1608. * main.c (do_execute): Don't show prompt if the command is empty
  1609. and the subshell is not running.
  1610. * view.c (view_handle_key): Add support for Ctrl-O in the viewer.
  1611. Suggested by Walery Studennikov <despair@sama.ru>
  1612. 2001-08-06 Pavel Roskin <proski@gnu.org>
  1613. * boxes.c (display_init): Associate correct help topic.
  1614. (sort_box): Likewise.
  1615. (set_panel_filter): Likewise.
  1616. * option.c (init_configure): Likewise.
  1617. * menu.c (menubar_handle_key): Show help dependent on the active
  1618. menu.
  1619. 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
  1620. * mad.c (mad_strdup): Return NULL if NULL is passed.
  1621. * view.c (block_search): Return the position where the block was
  1622. found as declared in comment.
  1623. (hex_search): Don't increase pos, block_search returns now right
  1624. position.
  1625. 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
  1626. * mad.[ch] (mad_check): Declare file parameter const.
  1627. (mad_alloc): Likewise. Don't truncate it.
  1628. (mad_abort): Declare message and file parameters const.
  1629. 2001-08-03 Pavel Roskin <proski@gnu.org>
  1630. * file.c: Warning fix. Include global.h before other local
  1631. includes.
  1632. * filegui.c: Likewise.
  1633. (fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
  1634. * i18n.h [!ENABLE_NLS]: Warning fix.
  1635. * learn.c (init_learn): Move do_refresh() call immediately
  1636. before cleate_dlg(). Warning fix.
  1637. 2001-07-31 Pavel Roskin <proski@gnu.org>
  1638. * Makefile.in: "install" now depends on "all".
  1639. Reported by Walery Studennikov <despair@sama.ru>
  1640. 2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
  1641. * util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
  1642. main.h.
  1643. (load_file): Use fopen and fstat to prevent race conditions.
  1644. (size_trunc): Make suffix const array.
  1645. (strip_password): Make prefixes const array.
  1646. (file_date): Make fmt auto variable.
  1647. * color.c (color_table): Make constant array.
  1648. * widget.[ch] (label_new): Make text parameter const.
  1649. * menu.c (create_menu): Don't localize name, it is always done.
  1650. * find.c (find_parameters): Fix hotkeys duplication.
  1651. * complete.c (command_completion_function): Don't stop $PATH
  1652. processing on empty entry. Interpret it as current directory.
  1653. 2001-07-31 Pavel Roskin <proski@gnu.org>
  1654. * charsets.c: Warning fixes.
  1655. * charsets.h: Likewise.
  1656. * selcodepage.c: Likewise.
  1657. * selcodepage.h: Likewise.
  1658. * Makefile.in: Move most logic around gindex.pl into gindex.pl.
  1659. Don't use maintainer-only rules since mc.hlp won't be removed
  1660. now if perl is missing or gindex.pl fails.
  1661. * gindex.pl: Run man2hlp internally. Use files given as
  1662. arguments instead of stdin and stdout.
  1663. 2001-07-30 Pavel Roskin <proski@gnu.org>
  1664. * mad.c: Don't use g_calloc - it's missing in glib 1.2.x.
  1665. * mad.h: Likewise. Use mad_alloc0() to emulate calloc().
  1666. * view.h: Simplify, respect WANT_WIDGETS setting.
  1667. 2001-07-28 Pavel Roskin <proski@gnu.org>
  1668. * view.c (view_ok_to_quit): Make global - it's needed for GMC.
  1669. * view.h: Declare view_ok_to_quit().
  1670. 2001-07-27 Pavel Roskin <proski@gnu.org>
  1671. * util.c [!USE_VFS] (get_current_wd): Resurrect, this time using
  1672. g_get_current_dir().
  1673. * background.h: Remove WITH_BACKGROUND, it's now in extraconf.h.
  1674. * background.c: Use WITH_BACKGROUND instead of USE_NETCODE.
  1675. * util.c (mc_mkstemps): Don't prepend $TMPDIR if prefix contains
  1676. path separator.
  1677. 2001-07-26 Pavel Roskin <proski@gnu.org>
  1678. * cmd.c (do_link): Append filename to the default symlink
  1679. target. Don't add path separator if there is no listing on
  1680. the other panel. Avoid using fixed size buffers.
  1681. From Max Schedriviy <max@tavrida.net>
  1682. * main.c [HAVE_X]: Disable eight_bit_clean and full_eight_bits.
  1683. * util.c (is_printable) [HAVE_X]: Simplify.
  1684. 2001-07-25 Pavel Roskin <proski@gnu.org>
  1685. * cmd.c (do_link): Simplify. Don't silently exit if the source
  1686. file is not regular - let user see the error if any.
  1687. 2001-07-24 Pavel Roskin <proski@gnu.org>
  1688. * achown.c (ch_perm): Make constant array.
  1689. (chown_info_update): Use set_perm_by_flags(), not set_perm().
  1690. (set_perm): Remove.
  1691. * achown.c: Make all global variables static. Fix help.
  1692. * complete.c: Likewise.
  1693. * chmod.c: Make all global variables static.
  1694. * chown.c: Likewise.
  1695. * chmod.h: Remove all variables.
  1696. 2001-07-23 Pavel Roskin <proski@gnu.org>
  1697. * user.c: Eliminate static variable s_editwidget. Pass
  1698. edit_widget as argument. All callers changed.
  1699. (expand_format): Fix expansion of %n and %b for the editor.
  1700. * util.c: Remove dead code.
  1701. * setup.c (load_keys_from_section): Give terminal-specific
  1702. settings preference over settings from [terminal:general].
  1703. 2001-07-22 Pavel Roskin <proski@gnu.org>
  1704. * setup.c (load_keys_from_section): Give ~/.mc/ini preference
  1705. over mc.lib.
  1706. 2001-07-20 Pavel Roskin <proski@gnu.org>
  1707. * dlg.c: Remove dependency on definitions in gconf.h.
  1708. * widget.c (input_callback) [HAVE_X]: Disable Ctrl-q - it
  1709. doesn't work.
  1710. * file.c (panel_get_file): Use g_assert_not_reached().
  1711. * key.c (xgetch_second): Make static.
  1712. 2001-07-19 Pavel Roskin <proski@gnu.org>
  1713. * user.c (check_format_view): Match "unform" instead of
  1714. "unformated" because some users may spell this word correctly.
  1715. 2001-07-17 Pavel Roskin <proski@gnu.org>
  1716. * util.c (get_current_wd): Remove. It's obsoleted by
  1717. g_get_current_dir() from glib.
  1718. * ext.c (exec_extension): Add the `rm' command to the end of
  1719. temporary scripts so that they erase themselves.
  1720. * util.c (mc_mkstemps): Always use "unsigned long" for enthropy,
  1721. since gcc-2.7.2.1 on SunOS doesn't understand __extension__ and
  1722. checking for "long long" is not worth the trouble.
  1723. Reported by David Martin <dmartina@excite.es>
  1724. 2001-07-16 Pavel Roskin <proski@gnu.org>
  1725. * utilunix.c (mc_doublepopen): Use _exit() instead of exit()
  1726. and don't close any unrelated file descriptors. Explicitly
  1727. close inhandle.
  1728. 2001-07-15 Pavel Roskin <proski@gnu.org>
  1729. * mad.h: Include stdio.h to prevent redefining mad_tempnam().
  1730. * main.c [HAVE_X && HAVE_MAD]: Don't call done_key().
  1731. * dlg.h: Remove declarations of non-existent functions.
  1732. [HAVE_X]: Disable color constants - they shouldn't be used.
  1733. * boxes.c [WITH_SMBFS] (vfs_smb_get_authinfo): Copied from
  1734. vfs/smbfs.c, function authinfo_get_authinfo_from_user().
  1735. * cmd.c [HAVE_X]: Disable source routing dialog and panel
  1736. comparison.
  1737. * main.c (ctl_x_map): Simplify preprocessor directives.
  1738. 2001-07-14 Pavel Roskin <proski@gnu.org>
  1739. * screen.c (panel_keymap) [HAVE_X]: Disable Alt-H - it's not
  1740. implemented properly for GNOME.
  1741. * main.c (directory_history_list) [HAVE_X]: Disable.
  1742. * panelize.c [HAVE_X]: Disable unused code.
  1743. * main.c [HAVE_X]: Disable Ctrl-X sequences.
  1744. * find.c: Remove code unused in the text edition.
  1745. * main.c [HAVE_X]: Eliminate setup_post() and partly done_mc().
  1746. * utilunix.c (uid_cache): Make static.
  1747. (gid_cache): Likewise.
  1748. (init_uid_gid_cache): Remove.
  1749. * main.c (setup_post): Don't call init_uid_gid_cache().
  1750. * main.c (default_map) [HAVE_X]: Disable Alt-T.
  1751. * cmd.c [HAVE_X]: Eliminate set_basic_panel_listing_to() and
  1752. toggle_listing_cmd().
  1753. 2001-07-13 Pavel Roskin <proski@gnu.org>
  1754. * utilunix.c (canonicalize_pathname): Don't handle PATH_SEP
  1755. after backslash in a special way.
  1756. 2001-07-12 Pavel Roskin <proski@gnu.org>
  1757. * subshell.c (init_subshell): Run "set echo_style=both" at
  1758. startup to ensure that echo in tcsh understands octal numbers.
  1759. Reported by Francis Kwok <francis.kwok@alcatel.com>
  1760. * Makefile.in (OURLIBS): Merge with ...
  1761. (LIBS): ... this. Add @LIBICONV@.
  1762. Reported by Libor Motyèka <l_motycka@ortex.cz>
  1763. * subshell.c (subshell_name_quote): New function. Quote all
  1764. characters as octals, use command substitution.
  1765. (do_subshell_chdir): Use subshell_name_quote(). Don't change
  1766. terminal settings when the quoted path is sent to the shell -
  1767. it's now safe.
  1768. 2001-07-12 Andrew V. Samoilov <kai@cmail.ru>
  1769. * main.c: Eliminate iconify_on_exec.
  1770. [!HAVE_GNOME]: Eliminate nowindows, nodesktop, twopanel,
  1771. display_linksdir and cmdline_geometry.
  1772. (sigchld_handler_no_subshell): Comment fixes.
  1773. (midnight_callback): Likewise.
  1774. (print_mc_usage): Use fputs, not fprintf.
  1775. (print_color_usage): Likewise.
  1776. (argument_table): Assign 'r' with force_subshell_execution and 'U'
  1777. with use_subshell.
  1778. (process_args): Don't deal with 'r', 'U' and 'X' options.
  1779. (setup_mc) [HAVE_GNOME]: Eliminate more code.
  1780. setup.c (options): Eliminate iconify_on_exec.
  1781. 2001-07-10 Andrew V. Samoilov <kai@cmail.ru>
  1782. * view.c (hex_search): Release buffer after use.
  1783. 2001-07-09 Pavel Roskin <proski@gnu.org>
  1784. * view.c (hex_search): Reimplement parser using sscanf. Add
  1785. support for decimal and octal numbers. Add error reporting.
  1786. Allocate buffer dynamically.
  1787. * hotlist.c: Add comments to avoid confusion between
  1788. done_hotlist() and hotlist_done().
  1789. (hotlist_done): Set l_hotlist to NULL.
  1790. (add2hotlist): Load hotlist if it's neither loaded nor loading.
  1791. This fixes Ctrl-x h. Fix compiler warning.
  1792. * hotlist.c: Make more variables and functions static.
  1793. 2001-07-08 Pavel Roskin <proski@gnu.org>
  1794. * ext.c (exec_extension) [HAVE_X]: Free file_name. Add comment
  1795. explaining why it cannot be unlinked there.
  1796. 2001-07-06 Pavel Roskin <proski@gnu.org>
  1797. * ext.c (exec_extension): Unlink temporary file earlier if it's
  1798. not going to be used.
  1799. [OLD_CODE]: Remove.
  1800. * Makefile.in: Use additional quotes to preserve @prefix@ when
  1801. Makefile is generated.
  1802. * Makefile.in: Don't use SEDCMD2, use sed.
  1803. * cons.saver.c: New variable console_minor. Eliminate variables
  1804. len and vcs_name.
  1805. (check_file): Set console_minor to the minor device number of
  1806. the console. Disallow /dev/tty0.
  1807. (detect_console): Don't parse tty_name, instead make sure that
  1808. it corresponds to console_minor. Check console first. Fallback
  1809. to /dev/vcc/a* if /dev/vcsa* cannot be opened.
  1810. (save_console): Use console_minor.
  1811. (restore_console): Likewise.
  1812. * cons.saver.c (check_file): Eliminate using text messages to
  1813. indicate errors. Improve debug messages.
  1814. (detect_console): Likewise.
  1815. (main): Adjust call to detect_console.
  1816. * main.c (sigchld_handler_no_subshell): Don't restart cons.saver
  1817. if it died.
  1818. * subshell.c (sigchld_handler): Likewise.
  1819. 2001-07-05 Pavel Roskin <proski@gnu.org>
  1820. * main.c (midnight_callback): Don't handle any events except
  1821. Ctrl-x combinations on DLG_KEY event if the menu is active.
  1822. * main.c (load_prompt): Don't change prompt if midnight_dlg is
  1823. not the current dialog.
  1824. 2001-06-28 Pavel Roskin <proski@gnu.org>
  1825. * util.c (size_trunc_len): New function - print file size to
  1826. a buffer of limited length.
  1827. * util.h: Declare size_trunc_len().
  1828. * screen.c (string_file_size): Use size_trunc_len().
  1829. 2001-06-26 Pavel Roskin <proski@gnu.org>
  1830. * xslint.c: Remove.
  1831. * Makefile.in (SRCS): Remove xslint.c.
  1832. 2001-06-25 Pavel Roskin <proski@gnu.org>
  1833. * key.c (ctrl_pressed): Don't limit functionality to Linux.
  1834. * screen.c (prev_page_key): Don't require console_flag to be set
  1835. to use ctrl_pressed(), only require that HAVE_X is undefined.
  1836. (next_page_key): Likewise.
  1837. * widget.c (key_left): Don't limit functionality to Linux.
  1838. (key_right): Likewise.
  1839. * main.h: Use "ifdef HAVE_GNOME", not "if HAVE_GNOME". Fix the
  1840. order of conditionals and put comments on endifs.
  1841. 2001-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
  1842. * view.c [HAVE_CHARSET]: Include selcodepage.h.
  1843. (view_new): Use g_new0.
  1844. (ruler): Make static.
  1845. * complete.c (filename_completion_function): Clean it up.
  1846. (command_completion_function): Make words, bash_reserved and
  1847. bash_builtins const, use concat_dir_and_file.
  1848. (fetch_hosts): Fix typo, style fixes.
  1849. 2001-06-23 Pavel Roskin <proski@gnu.org>
  1850. * mem.h: Undefine bcopy(), bcmp() and bzero() before redefining
  1851. them.
  1852. 2001-06-22 Pavel Roskin <proski@gnu.org>
  1853. * ext.c (exec_extension) [HAVE_X]: Disable console handling.
  1854. * cons.handler.c: Reorganize includes. Fix warnings on BSD.
  1855. * rxvt.c (rxvt_extensions): Make static.
  1856. * main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
  1857. to restart cons.saver.
  1858. * subshell.c (sigchld_handler) [!__linux__]: Likewise.
  1859. * fsusage.c: Use HAVE_INFOMOUNT.
  1860. * mountlist.c: Likewise. Fix condition when mount_list is
  1861. declared.
  1862. (fstype_to_string): Rename mount_list to mlist to avoid
  1863. confusion with the file-scoped static variable.
  1864. * cmd.c [HAVE_X]: Disable more code. Reorder includes.
  1865. 2001-06-20 Pavel Roskin <proski@gnu.org>
  1866. * main.c: Remove MenuBarEmpty. From Andrew V. Samoilov.
  1867. * wtools.c [HAVE_X]: Disable quick dialog routines.
  1868. * setup.c (save_setup) [HAVE_X]: Don't save the [Dirs] section.
  1869. (load_setup) [HAVE_X]: Don't load the [Dirs] section.
  1870. * main.c [HAVE_X]: Disable other_dir and boot_current_is_left.
  1871. Adjust all users.
  1872. 2001-06-19 Pavel Roskin <proski@gnu.org>
  1873. * background.h: Correct condition when WITH_BACKGROUND is
  1874. defined.
  1875. * fsusage.c: Rearrange the includes. Define HAVE_QNX_MOUNT
  1876. for old QNX and use it instead of __QNX__.
  1877. * mountlist.c: Likewise.
  1878. * keyxdef.c: Define HAVE_QNX_KEYS for old QNX and use it instead
  1879. of __QNX__.
  1880. 2001-06-18 Pavel Roskin <proski@gnu.org>
  1881. * main.c [HAVE_X]: Disable change_panel(),
  1882. copy_current_readlink() and copy_other_readlink().
  1883. Don't do anything with cmdline and command_prompt.
  1884. * screen.c [HAVE_X]: Disable panel_event(), chdir_other_panel()
  1885. and chdir_to_readlink(). Adjust all callers.
  1886. (panel_key) [HAVE_X]: Don't use command_prompt - always
  1887. start search on alphanumeric keys.
  1888. * setup.c [HAVE_X]: Disable save_layout(), load_layout(), struct
  1889. layout. Adjust all dependencies.
  1890. * utilunix.c (init_my_statfs): Move this ...
  1891. * util.c (my_statfs): ... and this ...
  1892. * mountlist.c: ... here.
  1893. * util.h: Move mountlist-related declarations ...
  1894. * mountlist.h: ... here.
  1895. * info.c: Include mountlist.h.
  1896. 2001-06-17 David Martin <dmartina@excite.es>
  1897. * hotlist.c (init_movelist): Don't assume English word ordering
  1898. in the title.
  1899. 2001-06-16 Andrew V. Samoilov <sav@bcs.zp.ua>
  1900. * wtools.c (message): Possible buffer overflow fixed.
  1901. (query_callback) [HAVE_X]: Disable more code.
  1902. (listbox_refresh) [!HAVE_X]: Became a macro.
  1903. * hotlist.c (init_i18n_stuff): Mark cancel_but for translation.
  1904. * tree.c (tree_copy, tree_move): Possible memory leaking fixed.
  1905. (tree_keymap): Constified.
  1906. 2001-06-15 Pavel Roskin <proski@gnu.org>
  1907. * panelize.c: Define DIR_H_INCLUDE_HANDLE_DIRENT earlier, since
  1908. the GNOME edition includes dir.h from other headers.
  1909. * background.c: Include "x.h".
  1910. * panelize.c: Likewise.
  1911. * treestore.c: Likewise.
  1912. * user.c: Likewise.
  1913. * util.c: Likewise.
  1914. * command.c: Reorder includes. Include "x.h".
  1915. * complete.c: Likewise.
  1916. * find.c: Likewise.
  1917. * user.h: Declare user_menu_cmd() unconditionally.
  1918. * i18n.h [GAVE_GNOME]: Remove code that is now in x.h.
  1919. * tty.h [HAVE_X]: Define beep() to gdk_beep().
  1920. 2001-06-14 Pavel Roskin <proski@gnu.org>
  1921. * xtty.h: Remove, move contents ...
  1922. * tty.h: ... here.
  1923. [HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
  1924. and disable_interrupt_key(). Don't declare mc_refresh().
  1925. * view.c: Use braces around widget_move() since it's empty in
  1926. the GNOME edition.
  1927. * xslint.c: Eliminate attrset() and mc_refresh().
  1928. * Makefile.in: Remove xtty.h.
  1929. * cons.handler.c (handle_console): Remove useless default.
  1930. * ext.c (regex_command): Initialize include_target_len.
  1931. * find.c [HAVE_GNOME]: Eliminate untyped declarations.
  1932. * fsusage.c: Remove untyped declaration of statfs().
  1933. [_AIX && _I386]: Rename statfs to aix_statfs and move
  1934. it before get_fs_usage(). Define statfs to aix_statfs.
  1935. * achown.c: Eliminate untyped declarations.
  1936. * boxes.c: Likewise.
  1937. * cons.saver.c: Likewise.
  1938. * hotlist.c: Likewise.
  1939. * panelize.c: Likewise.
  1940. * rxvt.c: Likewise.
  1941. * main.c: Likewise. Make undeclared functions static.
  1942. * treestore.c: Make undeclared functions static.
  1943. * view.c: Likewise.
  1944. * widget.c: Likewise.
  1945. * main.h: Fix prototype of exec_shell.
  1946. * tree.c: Make all functions static when possible.
  1947. * tree.h: Changes for the above.
  1948. * text.c [HAVE_X]: Remove useless #error.
  1949. * cons.saver.c: Indent #error to hide it from old compilers.
  1950. 2001-06-13 Pavel Roskin <proski@gnu.org>
  1951. * screen.c (display_mini_info): Avoid nested i18n calls.
  1952. (parse_panel_size): Warning fix.
  1953. * user.c [HAVE_X]: Warning fix.
  1954. (check_format_var): Avoid nested i18n calls. Improve messages.
  1955. * screen.c (user_file_menu_cmd) [HAVE_X]: Disable.
  1956. (panel_callback) [HAVE_X]: Don't define labels, they are unused.
  1957. * user.c [HAVE_X]: Disable all user menu code.
  1958. * color.c (color_table): Make static. Only use in text edition.
  1959. * xtty.h: Remove unused definitions.
  1960. * slint.c (slang_init): Check screen dimensions and exit if they
  1961. are abnormal. This may happen due to a S-Lang bug when the TERM
  1962. is set to a value not listed in termcap or terminfo.
  1963. 2001-06-12 Pavel Roskin <proski@gnu.org>
  1964. * boxes.c [HAVE_CHARSET]: Localize more strings. Lay out the
  1965. encoding dialog using the translated title length. Remove
  1966. useless preprocessor directives.
  1967. From David Martin <dmartina@excite.es>
  1968. 2001-06-11 Andrew V. Samoilov <sav@bcs.zp.ua>
  1969. * dlg.[ch] (x_set_dialog_title): title constified.
  1970. (create_dlg): Use g_new0 instead of g_new.
  1971. * selcodepage.c (do_select_codepage): Fix compilation.
  1972. 2001-06-09 Pavel Roskin <proski@gnu.org>
  1973. * util.c (load_mc_home_file): New function. Load file from
  1974. mc_home, but try localized version of that file first.
  1975. * util.h: Declare load_mc_home_file().
  1976. * help.c (interactive_display): Use load_mc_home_file(). If the
  1977. first argument is NULL assume mc.hlp.
  1978. * dlg.c (dialog_handle_key): Use interactive_display() without
  1979. specifying the help file.
  1980. * tree.c (tree_copy): Likewise.
  1981. * cmd.c (help_cmd): Likewise.
  1982. (get_random_hint): Use load_mc_home_file().
  1983. From Andrew V. Samoilov.
  1984. 2001-06-07 Andrew V. Samoilov <sav@bcs.zp.ua>
  1985. * charsets.h: Define CHARSETS_INDEX without leading LIBDIR.
  1986. * charsets.c (translate_character): Warning fix.
  1987. (init_translation_table): Don't deal with printable.
  1988. This one is initialized by init_printable_table ().
  1989. (load_codepages_list): Use CHARSETS_INDEX.
  1990. * selcodepage.c (do_select_codepage): Messages marked for i18n.
  1991. * setup.c (load_setup): Eliminate errbuf. Fix error message.
  1992. 2001-06-07 Pavel Roskin <proski@gnu.org>
  1993. * setup.c (load_setup): Call init_printable_table() and
  1994. init_translation_table() regardless of other failures.
  1995. * charsets.c (get_codepage_index): Warning fix.
  1996. (init_printable_table): New function.
  1997. * charsets.h: Declare init_printable_table().
  1998. * setup.c (load_setup): Uncomment init_printable_table().
  1999. * cons.saver.c: Make all functions except main() static.
  2000. * mfmt.c (omain): Remove, it's unused.
  2001. 2001-06-06 Pavel Roskin <proski@gnu.org>
  2002. * main.c (done_mc) [HAVE_X]: Don't use xterm_flag.
  2003. (midnight_callback) [HAVE_X]: Don't handle any keys except
  2004. Ctrl-x sequences.
  2005. Remove useless preprocessor conditionals.
  2006. * win.c [HAVE_X]: Disable unused functions.
  2007. * file.c: Add comments after every endif.
  2008. [HAVE_GNOME] [!WITH_BACKGROUND]: Fix compilation.
  2009. 2001-06-06 Andrew V. Samoilov <sav@bcs.zp.ua>
  2010. * main.c [HAVE_CHARSET]: Remove source_codepage and display_codepage.
  2011. They are declared in selcodepage.c.
  2012. * setup.c [USE_VFS]: Remove declarations for variables which are
  2013. declared in vfs/ftpfs.c.
  2014. (load_setup) [HAVE_CHARSET]: init_printable_table commented
  2015. out to enable compilation. Error strings tagged for translation.
  2016. (init_setup): Optimized.
  2017. * boxes.c (sel_charset_button): Eliminate C++ comment.
  2018. (new_display_codepage): Made static.
  2019. (display_bits_box): Use "%s" for plain string in message.
  2020. 2001-06-05 Pavel Roskin <proski@gnu.org>
  2021. * boxes.c [HAVE_CHARSET]: New charset selection dialog.
  2022. * main.c [HAVE_CHARSET]: Don't use eight_bit_clean and
  2023. full_eight_bits. Use source_codepage and display_codepage to
  2024. deduce the terminal 8-bitness.
  2025. * main.h [HAVE_CHARSET]: Change to match main.c.
  2026. * setup.c [HAVE_CHARSET]: Implement saving and loading charset
  2027. settings.
  2028. * util.c (is_printable) [HAVE_CHARSET]: Use charset settings.
  2029. * view.c [HAVE_CHARSET]: Implement charset support.
  2030. From Walery Studennikov <hqsoftware@mail.ru>.
  2031. * selcodepage.c (do_select_codepage): New function.
  2032. * selcodepage.h: Declare it.
  2033. From Walery Studennikov <hqsoftware@mail.ru>.
  2034. * mfmt.c (omain): Warning fix.
  2035. * key.c [HAVE_TEXTMODE_X11_SUPPORT]: Rename `display' to
  2036. `x11_display' and `w' to `x11_window'. Make them static.
  2037. (init_textmode_x11_support): Include into init_key().
  2038. (done_textmode_x11_support): Include into done_key().
  2039. (k_dispose): Make static.
  2040. (s_dispose): Likewise.
  2041. * key.h: Remove init_textmode_x11_support() and
  2042. done_textmode_x11_support().
  2043. * main.c: Don't call init_textmode_x11_support() and
  2044. done_textmode_x11_support().
  2045. * achown.c: Make global variables static if possible. Remove now
  2046. useless preprocessor directives, since this file is now used in
  2047. the text edition only.
  2048. * boxes.c: Remove useless ifdefs.
  2049. [USE_VFS]: Don't undef USE_NETCODE - it's done in extraconf.h.
  2050. * cmd.c [USE_VFS]: Don't undef USE_NETCODE.
  2051. * chmod.c: Remove useless ifdefs.
  2052. * filegui.c: Likewise.
  2053. * hotlist.c: Likewise.
  2054. * info.c: Likewise.
  2055. * layout.c: Likewise.
  2056. * listmode.c: Likewise.
  2057. * option.c: Likewise.
  2058. * subshell.c: Likewise.
  2059. * help.c: Remove useless ifdefs. Make global variables static if
  2060. possible.
  2061. * key.c: Likewise.
  2062. * learn.c: Likewise.
  2063. 2001-06-04 Andrew V. Samoilov <sav@bcs.zp.ua>
  2064. * charsets.c (load_codepages_list): Lines in mc.charset beginning
  2065. with a # are comments. Use "default character_set_name" in mc.charset
  2066. to set default codepage for your system.
  2067. (xstrncpy): Eliminate.
  2068. 2001-06-04 Pavel Roskin <proski@gnu.org>
  2069. * cmd.c (edit_symlink_cmd) [!HAVE_GNOME]: Warn if the current
  2070. selection is not a symbolic link.
  2071. 2001-06-02 Pavel Roskin <proski@gnu.org>
  2072. * cmd.c (free_vfs_now) [HAVE_GNOME]: Eliminate.
  2073. (reselect_vfs) [HAVE_GNOME]: Likewise.
  2074. * main.c (ctl_x_map) [HAVE_GNOME]: Disable add2hotlist_cmd.
  2075. (done_mc) [HAVE_X]: Don't call save_hotlist().
  2076. * setup.c (save_setup) [HAVE_X]: Likewise.
  2077. (done_setup) [HAVE_X]: Don't call done_hotlist().
  2078. 2001-06-01 Pavel Roskin <proski@gnu.org>
  2079. * hotlist.c [HAVE_X]: Don't use ctrl_pressed().
  2080. * widget.c [HAVE_X]: Likewise.
  2081. * main.c [HAVE_X]: Likewise. Don't call init_key() and
  2082. init_key_input_fd().
  2083. * setup.c [HAVE_X]: Remove some variables that make no sence
  2084. for the GNOME edition. Eliminate save_panel_types().
  2085. * view.c [!PORT_WANTS_VIEW]: Eliminate view_mode_callback().
  2086. * view.c [HAVE_X]: Define is_idle() to 1. Warning fix.
  2087. * file.c (copy_file_file): Initialize src_uid, src_gid, src_mode
  2088. and file_size to avoid a warning.
  2089. 2001-05-31 Pavel Roskin <proski@gnu.org>
  2090. * charsets.c: Include config.h before everything else.
  2091. * selcodepage.c: Likewise.
  2092. * textconf.c (features): Use longer strings to avoid enforcing
  2093. english word ordering on the translations. Capitalize sentences.
  2094. From Walery Studennikov: Indicate charset support.
  2095. (version): Use fputs, not fprintf.
  2096. * Makefile.in: Add charsets.c, charsets.h, selcodepage.c and
  2097. selcodepage.h. Compile them if the charset support is enabled.
  2098. Distribute them always.
  2099. 2001-05-30 Pavel Roskin <proski@gnu.org>
  2100. * charsets.c: New file for charset conversion support.
  2101. From Walery Studennikov.
  2102. * charsets.h: Likewise.
  2103. * selcodepage.c: Likewise.
  2104. * selcodepage.h: Likewise.
  2105. * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 0 if
  2106. possible to prevent ncurses from waiting after escape.
  2107. 2001-05-29 Pavel Roskin <proski@gnu.org>
  2108. * cmd.c (quick_cd_cmd) [HAVE_GNOME]: Disable.
  2109. * main.c (sort_cmd) [HAVE_GNOME]: Likewise.
  2110. (ctl_x_map) [HAVE_GNOME]: Disable "Ctrl-x j" - background jobs.
  2111. * color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
  2112. NULL as color names - this works even if COLORFGBG is unset.
  2113. Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
  2114. * color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
  2115. same way regardless of HAVE_SLANG.
  2116. * color.c (init_colors) [USE_NCURSES]: Initialize the default
  2117. color pair.
  2118. * subshell.c (pty_open_master) [!HAVE_SCO && HAVE_GRANTPT]:
  2119. Don't try to close a file that wasn't opened.
  2120. * xslint.c: Remove slang_init() and FIXME in the comment.
  2121. * main.c (main) [!HAVE_SLANG]: Don't call slang_init().
  2122. 2001-05-28 Pavel Roskin <proski@gnu.org>
  2123. * myslang.h: Use HAVE_SLANG_SLANG_H instead of non-standard
  2124. SLANG_H_INSIDE_SLANG_DIR.
  2125. * xslint.c: Remove unused functions.
  2126. * color.c (init_colors) [HAVE_SLANG]: Use SLtt_set_color() to
  2127. associate the default colors with DEFAULT_COLOR_INDEX. The old
  2128. code would unset alternative charset without making S-Lang aware
  2129. of it.
  2130. Thanks to John E. Davis <davis@space.mit.edu>
  2131. * widget.c (update_input) [HAVE_SLANG]: Revert last change - it
  2132. is not needed now.
  2133. 2001-05-28 Andrew V. Samoilov <sav@bcs.zp.ua>
  2134. * main.c: Correct some comments after #endif
  2135. (shell): Remove comment and #ifdef around shell variable.
  2136. (process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
  2137. between one #ifdef ... #endif pair.
  2138. (process_args): smbfs_set_debug () takes a debug level as argument,
  2139. commented out.
  2140. 2001-05-27 Pavel Roskin <proski@gnu.org>
  2141. * main.c (OS_Setup) [!HAVE_X]: Exit immediately if TERM
  2142. environment variable is unset or empty.
  2143. 2001-05-25 Pavel Roskin <proski@gnu.org>
  2144. * cmd.c: Clean up useless preprocessor directives.
  2145. (symlink_cmd): Warning fix.
  2146. * dlg.c (dialog_handle_key) [HAVE_X]: Disable suspend on Ctrl-z.
  2147. * main.c (do_suspend_cmd) [HAVE_GNOME]: Remove.
  2148. (suspend_cmd) [HAVE_GNOME]: Likewise.
  2149. 2001-05-24 Pavel Roskin <proski@gnu.org>
  2150. * widget.c (update_input) [HAVE_SLANG]: Work around a bug in
  2151. SLang 1.x - set charset to alternative when printing spaces.
  2152. 2001-05-22 Pavel Roskin <proski@gnu.org>
  2153. * ext.c (exec_extension): Use g_free() on the result of
  2154. mc_mkstemps(). Don't free it if mc_mkstemps() fails - it's not
  2155. needed anymore.
  2156. * user.c (execute_menu_command): Likewise.
  2157. * util.c (mc_mkstemps): Return NULL in the filename in the case
  2158. of failure. Remove support for NULL as the first argument.
  2159. From Andrew V. Samoilov.
  2160. 2001-05-21 Pavel Roskin <proski@gnu.org>
  2161. * ext.c (exec_extension): Use mc_mkstemps().
  2162. * user.c (execute_menu_command): Use mc_mkstemps().
  2163. * util.c (mc_mkstemps): New function - safely create and
  2164. open temporary file. Return the handle and the name.
  2165. * util.h: Declarations for init_tmpdir() and mc_mkstemps().
  2166. Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
  2167. 2001-05-18 Pavel Roskin <proski@gnu.org>
  2168. * TODO: Remove Tk-related entries.
  2169. * boxes.c [HAVE_TK]: Remove. Don't need INPUT_INDEX anymore.
  2170. * screen.c [HAVE_TK]: Remove.
  2171. (panel_event): Made static.
  2172. * chmod.c [HAVE_TK]: Remove.
  2173. * cmd.c [HAVE_TK]: Likewise.
  2174. * help.c [HAVE_TK]: Likewise.
  2175. * hotlist.c [HAVE_TK]: Likewise.
  2176. * info.c [HAVE_TK]: Likewise.
  2177. * view.c [HAVE_TK]: Likewise.
  2178. * view.h [HAVE_TK]: Likewise.
  2179. * widget.c [HAVE_TK]: Likewise.
  2180. * wtools.c [HAVE_TK]: Likewise.
  2181. * TODO: Remove XView-related entries.
  2182. * menu.h [HAVE_XVIEW]: Remove all XView-related code.
  2183. 2001-05-17 Pavel Roskin <proski@gnu.org>
  2184. * subshell.c (pty_open_master) [HAVE_SCO]: Fix ambigous `else'.
  2185. [!HAVE_SCO && !HAVE_GRANTPT]: Likewise.
  2186. 2001-05-16 Pavel Roskin <proski@gnu.org>
  2187. * subshell.c: Define _GNU_SOURCE to enable prototypes for
  2188. allocating pseudo-terminals on GNU systems.
  2189. * subshell.c (init_subshell_child): New function to initialize
  2190. child process and run subshell. Code moved from ...
  2191. (init_subshell): ... here.
  2192. * subshell.c (init_subshell): Don't close pty_slave if is wasn't
  2193. open. Initialize it with -1.
  2194. 2001-05-14 Pavel Roskin <proski@gnu.org>
  2195. * main.c [HAVE_GNOME]: Disable more code.
  2196. * cmd.c [HAVE_GNOME]: Likewise.
  2197. * background.h: Omit definitions that require FileOpContext if
  2198. fileopctx.h has not been included yet.
  2199. * background.c (real_message_2s): Declare arguments "const" when
  2200. possible.
  2201. (real_message_3s): Likewise.
  2202. * wtools.c (message): Likewise.
  2203. * background.h: Change declarations to match.
  2204. * dialog.h: Likewise.
  2205. * boxes.c [HAVE_GNOME]: Disable unused code.
  2206. * find.c [HAVE_GNOME]: Likewise.
  2207. * complete.c [HAVE_GNOME]: Likewise.
  2208. * main.c [HAVE_GNOME]: Likewise.
  2209. * screen.c (adjust_top_file): Enable only if it's used, i.e.
  2210. when PORT_HAS_PAINT_FRAME in undefined.
  2211. * wtools.c (listbox_refresh): Disable for HAVE_X, define to
  2212. an empty macro instead.
  2213. (listbox_callback): Call listbox_refresh() regardless of HAVE_X.
  2214. (create_listbox_window): Likewise.
  2215. * fsusage.c: Include stdlib.h for abort().
  2216. * tree.c (tree_mkdir_cmd): Disable tree_mkdir_cmd() since it's
  2217. not used.
  2218. * widget.c: Declare x_radio_toggle() with arguments.
  2219. * util.h: Remove declarations of some functions defined in
  2220. background.c.
  2221. 2001-05-14 Andrew V. Samoilov <sav@bcs.zp.ua>
  2222. * background.c (real_message_1s, message_1s): third parameter is
  2223. used by message () as printf pattern, so "%s" has to be added
  2224. if plain string must be shown but printf conversion
  2225. specification(s) may be there.
  2226. * view.c (do_view_init): ditto
  2227. * user.c (debug_out): ditto
  2228. * utilunux.c (close_error_pipe, check_error_pipe): ditto
  2229. * background.[ch], vfs/util-alone.c (message_1s): third parameter
  2230. constified
  2231. 2001-04-27 Andrew V. Samoilov <sav@bcs.zp.ua>
  2232. * find.c (search_content): Redo recent change without infinite loop ;-),
  2233. egrep_path hardcoded to "egrep" as it is done in locate_egrep ()
  2234. (locate_egrep): commented out
  2235. (rotating_dash) [!HAVE_X]: moved into do_search to prevent warning
  2236. 2001-04-26 Pavel Roskin <proski@gnu.org>
  2237. * find.c (search_content): Undo a recent change that caused an
  2238. infinite loop.
  2239. 2001-04-24 Andrew V. Samoilov <sav@bcs.zp.ua>
  2240. * view.c (get_line_at): previous newline is right condition
  2241. for regexp '^' pattern also, fixed
  2242. (search) [HAVE_GNOME]: gnome_message_box_new doesn't expand printf
  2243. pattern, so g_strdup_printf used
  2244. * find.c (find_parameters): don't use stat structure if mc_stat failed
  2245. 2001-04-17 Pavel Roskin <proski@gnu.org>
  2246. * subshell.c (init_raw_mode): New function, separated from ...
  2247. (invoke_subshell): ... this.
  2248. (init_subshell): Initialize raw_mode here instead of delayng it
  2249. until invoke_subshell(). Otherwise the current mode may have
  2250. been changed by edition_pre_exec(), which caused Ctrl-O to be
  2251. ignored on FreeBSD if a command has been run before switching
  2252. to the subshell.
  2253. 2001-04-06 Pavel Roskin <proski@gnu.org>
  2254. * chmod.c (stat_file): Allow chmod and chown on special files.
  2255. * cons.handler.c: Include "global.h" for exit().
  2256. * Makefile.in: Add dependencies between mc and static libraries
  2257. in the source tree.
  2258. 2001-04-06 Andrew V. Samoilov <sav@bcs.zp.ua>
  2259. * find.c (find_parameters): Add a checkbox for case insensitive
  2260. content search.
  2261. (search_content): Pass `-i' to egrep for case insensitive
  2262. search.
  2263. 2001-03-30 Andrew V. Samoilov <sav@bcs.zp.ua>
  2264. * panel.h, screen.c (panel_new): panel_name constified to do gcc
  2265. some more happy when gmc is compiled
  2266. 2001-03-18 Miguel de Icaza <miguel@ximian.com>
  2267. * widget.c (forward_word, backward_word): Revert Timur's patch
  2268. from last year which made the behaviour for advancing words not
  2269. match the one in Emacs.
  2270. 2001-03-02 Pavel Roskin <proski@gnu.org>
  2271. * key.c (mi_getch): Discard non-events (EV_NONE), but not
  2272. keycode 0 (Ctrl-@).
  2273. 2001-02-26 Pavel Roskin <proski@gnu.org>
  2274. * cmd.c (edit_cmd) [HAVE_GNOME]: Use gmc_edit(). Don't use
  2275. regex_command().
  2276. (ext_cmd) [HAVE_GNOME]: Don't compile for GNOME.
  2277. * ext.c (regex_command) [HAVE_GNOME]: Likewise.
  2278. * ext.h [HAVE_GNOME]: Don't define MC_USER_EXT and MC_LIB_EXT.
  2279. * main.c (main): Don't call edit_init_file() - the editor should
  2280. care about its files itself.
  2281. 2001-02-09 Pavel Roskin <proski@gnu.org>
  2282. * main.c (main): Fix compilation error when configured without
  2283. subshell support.
  2284. 2001-02-07 Andrew V. Samoilov <sav@bcs.zp.ua>
  2285. * main.c (main): Do not fork subshell for mcedit/mcview.
  2286. 2001-01-27 Pavel Roskin <proski@gnu.org>
  2287. * cons.handler.c (handle_console): Check the result of ttyname().
  2288. * main.c (handle_args): Exit if no arguments are given to mcview.
  2289. [HAVE_GNOME]: Don't examine argv[0] - it's done separately.
  2290. * dir.c: Respect HAVE_STRCOLL. Added a comment about strcoll().
  2291. 2001-01-26 Pablo Saratxaga <pablo@mandrakesoft.com>
  2292. * file.c: moved a comment one line down so it becomes visible on the
  2293. translators' po files. Also added gettext:no-c-format comments for
  2294. a few strings with % in them that are not C format printf codes.
  2295. 2001-01-21 Andrew V. Samoilov <sav@bcs.zp.ua>
  2296. * subshell.c (do_subshell_chdir): temporary patch to prevent command
  2297. execution for directory names containing 0x03 (intr) 0x14.
  2298. See http://www.securityfocus.com/vdb/?id=2016 for details.
  2299. Subshell still can't chdir to such directories :(
  2300. * subshell.[ch] (do_subshell_chdir): directory constified
  2301. 2001-01-17 Pavel Roskin <proski@gnu.org>
  2302. * Makefile.in: Respect LDFLAGS when linking cons.saver.
  2303. 2000-11-20 Andrew V. Samoilov <sav@bcs.zp.ua>
  2304. * view.c: Fixed long existed bugs in internal viewer. When search is
  2305. doing in binary file it ignore skipped zero(es), so cursor is before
  2306. searched expression and next search find the same string. Also regexp
  2307. search could return wrong results for '^ ?' expressions.
  2308. (get_line_at): skipped: new parameter for number of skipped zero(es)
  2309. (search): new features of get_line_at used.
  2310. 2000-11-16 Andrew V. Samoilov <sav@bcs.zp.ua>
  2311. * cons.saver.c (check_file): close fd on error. There was a bug, which
  2312. allowed luser to write '\0' char to any symlinkable file in Linux
  2313. system which don't ensure that fd's 0, 1, and 2 are open on startup
  2314. of a SUID/SGID binary.
  2315. Based on patch from bugtrack by Maurycy Prodeus <z33d@ETH-SECURITY.NET>.
  2316. 2000-11-14 Andrew V. Samoilov <sav@bcs.zp.ua>
  2317. * layout.c (print_vfs_message): format string vulnerability fixed
  2318. 2000-11-03 Andrew V. Samoilov <sav@bcs.zp.ua>
  2319. * main.c (CmdMenu): don't include edit_user_menu_cmd ()
  2320. if USE_INTERNAL_EDIT is not defined
  2321. (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
  2322. (listmode_cmd): messages are localized
  2323. 2000-11-02 Pavel Roskin <proski@gnu.org>
  2324. * layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
  2325. low_level_change_screen_size().
  2326. (flag_winch) [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Call
  2327. low_level_change_screen_size(). From Andrew V. Samoilov.
  2328. 2000-10-04 Pavel Roskin <proski@gnu.org>
  2329. * user.c (expand_format): Fixed processing of "%s".
  2330. 2000-09-30 Pavel Roskin <proski@gnu.org>
  2331. * Makefile.in: Added an explicit rule for man2hlp.
  2332. 2000-09-26 Pavel Roskin <proski@gnu.org>
  2333. * listmode.c, listmode.h, main.c: Consistently using define
  2334. LISTMODE_EDITOR to enable the experimental listmode editor.
  2335. * main.c: Don't allow two adjacent separators in the Command
  2336. menu.
  2337. 2000-09-22 Pavel Roskin <proski@gnu.org>
  2338. * fixhlp.c: Removed.
  2339. * Makefile.in: Removed all references to fixhlp.c
  2340. 2000-09-14 Pavel Roskin <proski@gnu.org>
  2341. * features.h: Joined with textconf.h to avoid name clash with
  2342. GNU Libc.
  2343. * features.c: Renamed to ...
  2344. * textconf.c: ... this
  2345. * Makefile.in, cmd.c, main.c, text.c: necessary adjustments
  2346. * Makefile.in: Don't make softlinks to the libraries
  2347. 2000-09-13 Pavel Roskin <proski@gnu.org>
  2348. * Makefile.in: Only rebuild mc.hlp in the maintainer mode.
  2349. 2000-09-01 Pavel Roskin <proski@gnu.org>
  2350. * fixhlp.c: fixed compile errors and warnings
  2351. 2000-08-30 Pavel Roskin <proski@gnu.org>
  2352. * dirhist.c, dirhist.h: removed
  2353. * features.h, keys.h, textconf.h, x.h: added protection against
  2354. multiple inclusion
  2355. 2000-08-23 Pavel Roskin <proski@gnu.org>
  2356. * features.c: include <sys/param.h> to avoid a warning
  2357. * main.c [HAVE_X]: print_mc_usage() and print_color_usage()
  2358. removed.
  2359. version() moved to ...
  2360. * features.inc: ... here, renamed to features.c
  2361. * main.h: status_using_ncurses moved to ...
  2362. * features.h: ... here
  2363. * cmd.c, text.c: include "features.h"
  2364. * cmd.h: include "panel.h"
  2365. * Makefile.in: changed to use features.h and features.c
  2366. 2000-08-22 Pavel Roskin <proski@gnu.org>
  2367. * main.c [HAVE_GNOME]: disable chmod and chown - they were
  2368. broken and obsoleted by the "Properties" dialog
  2369. * cmd.c [HAVE_X]: Removed dependency on status_using_ncurses
  2370. * man2hlp.c: Removed undocumented feature - when converting
  2371. to HTML some output would go to index.html instead of stdout
  2372. 2000-08-16 Pavel Roskin <proski@gnu.org>
  2373. * gindex.pl: Enable warnings. Existing warnings fixed.
  2374. * Makefile.in: mc.hlp now depends on man2hlp.c instead of
  2375. man2hlp - this avoids some rebuilds of mc.hlp
  2376. 2000-08-15 Pavel Roskin <proski@gnu.org>
  2377. * mc.hlp: removed. It's a derived file
  2378. * Makefile.in: Fixed dependencies for $(srcdir)/mc.hlp
  2379. Build $(srcdir)/mc.hlp but allow a failure (e.g. no perl)
  2380. 2000-08-11 Frederic L. W. Meunier <fredlwm@pervalidus.net>
  2381. * Makefile.in: Don't compile mfmt, compile mcmfmt directly.
  2382. 2000-08-08 Andrew V. Samoilov <sav@bcs.zp.ua>
  2383. * hotlist.c (done_hotlist): static tkn_buf, tkn_buf_length and
  2384. tkn_length nullified after tkn_buf is freed to prevent crashes.
  2385. (new_hotlist): became a macro
  2386. * background.c (real_message_[123]s): title is really prepended
  2387. by "Background process:" string now if mode == Background
  2388. (background_attention): resstr NULLified to prevent warning
  2389. 2000-06-26 Andrew V. Samoilov <sav@bcs.zp.ua>
  2390. * screen.c (display_mini_info): two different patterns are
  2391. used now: for one file and for other cases
  2392. 2000-06-16 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2393. * cons_saver: support linux with devfs, patch by pavenis@lanet.lv
  2394. 2000-06-14 Andrew V. Samoilov <sav@bcs.zp.ua>
  2395. * panel.h, util.[ch] (struct WPanel, size_trunc, size_trunc_sep): size
  2396. parameters and WPanel.total field became double, thus, total size
  2397. of selected files/directories is shown in the mini status correctly
  2398. when it exceeds 2 GB.
  2399. 2000-05-25 Andrew V. Samoilov <sav@bcs.zp.ua>
  2400. * slint.c (init_pair): segfault fixed when mcedit -b called
  2401. * user.c (check_format_var): error messages are localized
  2402. (expand_format, user_menu_cmd): memory leaking for %e and %k macro
  2403. fixed; segfault fixed when %m macro is used outside user_menu_cmd ()
  2404. * ext.c (regex_command): memory leaking fixed when user extension
  2405. file is absent
  2406. (exec_extension): error message for changed mc.ext file format
  2407. are localized -- does we really must be worry about mc 3.0 ?
  2408. * widget.c (history_put): counter is initialized again
  2409. 2000-05-11 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2410. * src/user.c: fix segfault when Shift-F4, Shift-F1, so when menu
  2411. content condition y, macro %y
  2412. 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2413. * src/user.c: Add macro %k it is block file name
  2414. Add macro %e it is error file name
  2415. Add macro %i it is cursor column indent of spaces, only for edit
  2416. Add macro %y, it is syntax of current file in editor, only for edit
  2417. Add condition y, it is syntax pattern of current file in edit
  2418. Add macro %x it is extension of current file
  2419. Add macro %m it is current menu filename
  2420. 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2421. * gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
  2422. Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
  2423. edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
  2424. (the message of David H. Martin <dmartina@usa.net>)
  2425. 2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2426. * src/user.c: Add condition (x filename) into mc.menu .
  2427. for "Open next a free console" and like.
  2428. 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2429. * src/user.c: fix segfault in chunk_alloc of glibc, when into condition
  2430. of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
  2431. 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2432. * gtkedit/edit.c:
  2433. Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
  2434. * gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
  2435. Marked block is access now from an user edit menu
  2436. Access ~/.cedit/cooledit.block for insert to cursor place from
  2437. user edit menu.
  2438. Created system cedit.menu
  2439. 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
  2440. * gtkedit/editdraw.c:
  2441. Improved a status string of cool editor for best understand,
  2442. and to add char,hex view.
  2443. 2000-04-17 Andrew V. Samoilov <sav@bcs.zp.ua>
  2444. * widget.c: (history_put): profile is free()d if chmod failed,
  2445. (input_map): added const qualifier
  2446. * utilunix.c, util.h: (tilde_expand): added const qualifier
  2447. * cmd.c: (nice_cd): i18n update,
  2448. (source_routing): typo fixed, source is free()d after use
  2449. * screen.c: i18n changes, (panel_keymap): added const qualifier
  2450. * view.[ch]: (view, view_init, do_view_init): added const qualifier
  2451. 2000-04-15 Timur Bakeyev <mc@bat.ru>
  2452. * dir.c (string_sortcomp): strcmp() replaced with strcoll() to make
  2453. directory listing LOCALE sensitive. I assume, strcoll exists everywhere,
  2454. as it is in POSIX.
  2455. 2000-04-15 Timur Bakeyev <mc@bat.ru>
  2456. * dlg.c: Commited at last patch, that fixes screwed up right panel in
  2457. a long format. Occasionaly, all my colors problems also gone. All thanks
  2458. to Norbert Warmuth <nwarmuth@privat.circular.de>, who tracked down the
  2459. problem, blames to me and Federico :)
  2460. 2000-04-12 Timur Bakeyev <mc@bat.ru>
  2461. * widget.c ([forward|backward]_word): Changed one more time - now it
  2462. skips alpnums and THEN spaces+punct. That gives almost the same re-
  2463. sults, but twice quicker. Hope, this will be accepted.
  2464. 2000-04-06 Timur Bakeyev <mc@bat.ru>
  2465. * widget.c ([forward|backward]_word): Changed logic of moving - now,
  2466. it skips only spaces+punct OR alnum. Reason to do it so - deleting lines
  2467. like "lynx http://www.gnome.org", where "lynx http:" part was erased
  2468. in one operation. That's nasty, IMHO. Made this a separate commit, so,
  2469. if it seriously breaks compatability it's easy to revert it. Still hope,
  2470. nobody'll do that.
  2471. 2000-04-06 Timur Bakeyev <mc@bat.ru>
  2472. * file.c, widget.[ch]: Fixed long existing problems with filenames
  2473. and input widgets, then char is greater than 128. They were processed
  2474. incorrectly. As usual, char != unsigned char problem.
  2475. 2000-03-03 Björn Eriksson <mdeans@algonet.se>
  2476. * Similar patches came from Andrew V. Samoilov <sav@bcs.zp.ua>.
  2477. * mad.[ch]: Some functions wrongly by-passed mad_alloc*() (causing
  2478. problems when later g_free()ed.
  2479. * Added mad_strndup().
  2480. * Repeated code collected in mad_fatal_error().
  2481. * The gcc-extension/C99-standard variable argument macros (adding
  2482. __FILE__, __LINE__ before ', ...') would be nice.
  2483. * Alloc_idx_hint and code added, the mad code was way too slow for my
  2484. poor computer. A hash-table would be nice.
  2485. * (mad_strconcat, mad_strdup_vprintf): g_malloc and g_new are
  2486. undefined at the top of mad.c, so mad_alloc must be used.
  2487. 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
  2488. * main.c (parse_control_file): add missing right parentheses
  2489. * boxes.c: fix incorrect initialization of array of structure (gcc
  2490. version 2.96 20000131 chokes on it).
  2491. 2000-02-18 Paul Sheer <psheer@obsidian.co.za>
  2492. * gtkedit/*.[ch], edit.c et al: updates to reflect
  2493. cooledit-3.13.0. See CVS commits and cooledit ChangeLog
  2494. for details.
  2495. 2000-02-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2496. * setup.c (load_setup): remove duplicate loading of anonymous
  2497. passwd by do_load_string(), it is doing by
  2498. ftpfs_init_passwd. (Patch by sav@bcs.zp.ua)
  2499. 2000-02-04 "David H.Martin" <dmartina@usa.net>
  2500. * src/widget.c (input_new): Change NULL to empty strings and avoid
  2501. crashing when string functions are called.
  2502. * src/boxes.c (configure_vfs): Remove local change to empty string.
  2503. * src/setup.c (load setup): Load anonymous password
  2504. 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
  2505. * setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
  2506. 2000-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
  2507. * main.c (parse_control_file): add extra secutity checks for
  2508. control file. It cannot be group/world writable;
  2509. (ctl_x_map, default_map, argument_table): added const qualifier.
  2510. * fixed segfault in print_mc_usage
  2511. 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2512. * cmd.c (nice_cd): disabled ability to go to home.
  2513. 2000-01-02 viro@math.psu.edu
  2514. * src/subshell.c: Reason: in feed_subshell() we are trying to read
  2515. from shell pty,check for retval==-1 && errno != EIO. In that case
  2516. we flame and exit. Otherwise we are trying to write what we've
  2517. read. Good luck doing it if we got errno==EIO, which is _normal_
  2518. for situation when shell just died. Resulting write(1,foo,~0U) is
  2519. somewhat excessively, erm, verbose.
  2520. 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
  2521. * src/main.c, src/view.c: #warning's replaced with FIXME's.
  2522. They were not for users, but for developers
  2523. 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2524. * main.c, cmd.c: add possibility to free VFS now
  2525. 1999-11-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2526. * layout.c: always display status line. It contains vital
  2527. information for ftpfs
  2528. 1999-03-19 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2529. * profile.c (str_translate_newline_dup): someone likes to pass
  2530. NULL's around. Warn instead of segfault.
  2531. 1999-11-02 Miguel de Icaza <miguel@gnu.org>
  2532. * main.c (OS_Setup): Do not warn if TERM is not set for the GNOME edition.
  2533. 1999-09-21 Federico Mena Quintero <federico@redhat.com>
  2534. * dlg.c (dlg_broadcast_msg_to): Sigh. Put in a GrossHack(tm) to
  2535. unfocus what will be a WInput when a panel is initialized.
  2536. 1999-09-21 Federico Mena Quintero <federico@redhat.com>
  2537. * dlg.c (init_dlg): Walk the list of widgets only if it exists.
  2538. (dlg_broadcast_msg_to): Use safer list-walking code for if someone
  2539. inserts a widget inside the message broadcast.
  2540. 1999-09-20 Federico Mena Quintero <federico@redhat.com>
  2541. The following is a patch from Volker Braun
  2542. <volker.braun@physik.hu-berlin.de> to fix column resizing in the
  2543. file panels.
  2544. * setup.c (options): Declare the column width option values.
  2545. (save_configure): Save the default user format.
  2546. (load_setup): Load the default user format.
  2547. * panel.h (WPanel): Added a field for the column widths.
  2548. 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
  2549. * user.c (check_patterns): char* is used instead of char [] in sizeof
  2550. * util.c (string_perm): prefix named pipes by 'p' and not by `s'
  2551. 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
  2552. * mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
  2553. to mad.[ch]
  2554. * option.c: Include files reordered in order to make it compile with
  2555. --with-debug
  2556. * mad.c (mad_init): New function. Initialize debug FILE pointer to
  2557. stderr (moved to a function because not on every system stderr is
  2558. a constant).
  2559. (mad_set_debug): added const qualifier
  2560. * main.c (main): call mad_init
  2561. 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
  2562. * widget.[ch] (input_new): added const qualifier
  2563. * util.c (wipe_password): Check for NULL.
  2564. 1999-09-13 Federico Mena Quintero <federico@redhat.com>
  2565. * treestore.c: Removed tree_store_destroy(), renamed
  2566. tree_store_init() to tree_store_get().
  2567. * tree.c (tree_destroy): Do not destroy the tree store.
  2568. (tree_new): Get the tree store, do not initialize it.
  2569. * treestore.c (tree_store_init): Do not set the linked list
  2570. pointers to NULL.
  2571. * panel.h (WPanel): Added a new field that indicates whether the
  2572. user is dragging something over the tree.
  2573. 1999-08-31 Federico Mena Quintero <federico@redhat.com>
  2574. * main.c: In the GNOME version, we want cd_symlinks to be FALSE.
  2575. The VFS should never have to look at this variable, but alas, it
  2576. does. BUGFIX: Red Hat Bugzilla #2344.
  2577. * setup.c: Disable cd_symlinks in the GNOME version.
  2578. 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
  2579. * main.c (print_mc_usage): Print the bug reporting address.
  2580. (main): Put prompt in a new line at termination.
  2581. 1999-08-27 Federico Mena Quintero <federico@redhat.com>
  2582. * ext.c (quote_block): How did this ever work? People, if you
  2583. realloc() things, don't keep pointers to stuff inside the original
  2584. block.
  2585. * screen.c (do_enter_on_file_entry): Pass in the full name to
  2586. if_link_is_exe().
  2587. * dir.[ch] (if_link_is_exe): Take in the full name, not the directory
  2588. and the file entry.
  2589. 1999-08-15 Norbert Warmuth <nwarmuth@privat.circular.de>
  2590. * cmd.c (guess_message_value): New function. Determine locale used
  2591. for messages
  2592. (get_random_hint): use guess_message_value
  2593. 1999-08-15 David Martin <dmartina@usa.net>
  2594. * boxes.c: (symlink_dialog): Move dialog misaligned elements
  2595. * cmd.c (get_random_hint): Look for localized hint files
  2596. 1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2597. * ext.c: Added missing include file.
  2598. 1999-08-08 David Martin <dmartina@usa.net>
  2599. * menu.c: (create_menu): Adjust "#ifdef ENABLE_NLS" so that menus
  2600. get the right size even when NLS is disabled.
  2601. 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
  2602. * screen.c (string_file_[amc]time): These three functions use
  2603. file_date which returns a pointer to a static buffer. In the
  2604. Gnome edition this buffer has to be coppied to a static buffer
  2605. which isn't used in the other two functions (Fix Bug #1766).
  2606. * util.c, util.h: Moved some constants to util.h
  2607. 1999-08-04 Norbert Warmuth <nwarmuth@privat.circular.de>
  2608. * widget.c (push_history): Add SMB Link to the list of input dialogs
  2609. where urls are input without vfs prefix.
  2610. Translate the titles of these input dialogs only once.
  2611. Removed Gnome specific code because the Gnome edition doesn't use
  2612. the input history any more.
  2613. * util.c (strip_password): Add /#smb: to the list of urls which might
  2614. be input with password.
  2615. 1999-08-03 Norbert Warmuth <nwarmuth@privat.circular.de>
  2616. * poptalloca.h: New file with definitions for alloca. Note: alloca
  2617. is defined as malloc on systems which fail to support alloca. Don't
  2618. include this file if you frequently use alloca.
  2619. * findme.c, popt*.c: include poptalloca.h
  2620. * Makefile.in: added poptalloca.h
  2621. * menu.c (create_menu): set minimum menu width to 20 characters as
  2622. it used to be (this was part of davids patches but I haven't
  2623. applied it, yet).
  2624. 1999-08-01 David Martin <dmartina@usa.net>
  2625. * menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
  2626. Discount '&' for hotkeys when checking menu widths to avoid the
  2627. extra blank space.
  2628. Moved this accounting from the drawing to the creating function.
  2629. * widget.c: Translate History box tittle.
  2630. 1999-07-21 Norbert Warmuth <nwarmuth@privat.circular.de>
  2631. * popt.c, popt.h, poptconfig.c, popthelp.c, poptparse.c: updated
  2632. to the version found in the popt module
  2633. * features.inc: added report information for smbfs
  2634. 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
  2635. * file.c (move_dir_dir): Give an error when an attempt is made to
  2636. move an empty directory into itself.
  2637. 1999-06-24 smil@linuxfan.com
  2638. * view.c (view_update_bytes_per_line, display): show correctly the
  2639. offset of the file (full 8 digit), display offset in bold colour
  2640. (view_labels): use goto_addr instead of goto_line in hex mode
  2641. (goto_addr): New function. Goto offset address in hex mode.
  2642. * view.h: use unsigned long for hexedit cursor position in file
  2643. 1999-06-24 Norbert Warmuth <nwarmuth@privat.circular.de>
  2644. * menu.c (menubar_execute): Now needs an additional do_refresh in order
  2645. to make layout changes visible.
  2646. 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
  2647. * file.c (move_dir_dir): Give an error when an attempt is made to
  2648. move an empty directory into itself.
  2649. 1999-06-22 Norbert Warmuth <nwarmuth@privat.circular.de>
  2650. * cmd.c (quick_view_cmd): Change panel when the file we want to
  2651. view isn't in the current panel (prevents a "file not found"
  2652. error).
  2653. * menu.c (menubar_execute): De-activate the menubar previous to
  2654. invoking the callback. This is needed to make change_panel in
  2655. quick_view_cmd work (the activated menubar doesn't allow unfocus,
  2656. i.e. dlg_one_down|up don't change anything).
  2657. * view.c (do_view_init): improved error handling w.r.t quick view
  2658. (mc used to dump core when the file to view couldn't be opened).
  2659. 1999-06-22 David Martin <dmartina@usa.net>
  2660. * view.c (display): added view_gotoxy's in order to make the gnome
  2661. edition operational in hex mode.
  2662. Fri Jun 18 11:29:56 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2663. * user.c (user_menu_cmd): Allow national characters as hotkeys.
  2664. Don't dump core when the menu file contains only empty lines
  2665. * view.c (search, block_search): Use the correct column for the
  2666. percent display while searching.
  2667. 1999-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2668. * complete.c (complete_engine): Put an #ifndef HAVE_GNOME around
  2669. the completion/query engine. Make the Gnome version just beep
  2670. instead. We do not have the completion/query engine for Gtk.
  2671. 1999-06-09 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2672. * cmd.c (configure_panel_listing): no more code duplication
  2673. * screen.c (panel_new): no more code duplication
  2674. (set_panel_formats): warn user when he gives bogus format, move
  2675. checks into set_panel_formats
  2676. 1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
  2677. * util.c (is_printable): in GNOME all characters are printable.
  2678. 1999-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2679. * main.c (handle_args): Handle --desktop-linksdir without using X
  2680. 1999-05-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2681. * treestore.c (should_skip_directory): Add fix from Wayne Roberts
  2682. to actually acknowledge the settings of mc.global.
  2683. 1999-05-24 Brandon S. Allbery <allbery@ece.cmu.edu>
  2684. * subshell.c (pty_open_master): Added missing comma.p
  2685. Mon May 17 07:37:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2686. * subshell.c (pty_open_master): use getpt () if available to open
  2687. the master side of the pty. getpt () is a glibc extension and is
  2688. needed when glibc 2.1.x is used with a (linux) kernel without unix98
  2689. style ptys (if there is no /dev/ptmx getpt falls back to bsd style
  2690. ptys).
  2691. * filegui.c (check_progress_buttons): Don't update the Gpm mouse
  2692. cursor when we check for events. It causes a flickering cursor on a
  2693. different virtual console.
  2694. 1999-05-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  2695. * cons.saver.c (main): change cons.saver so it can be run without
  2696. root privileges. It is well possible to run cons.saver with
  2697. privileges only to /dev/vcsa: create new user and make vcsa's
  2698. owned by that user instead of root.
  2699. Distribution maintainers please take this text as idea of what you
  2700. should do to make your system more secure.
  2701. 1999-05-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2702. * cmd.c (view_file_at_line): gmc_view never fails, so we handle
  2703. that now.
  2704. 1999-04-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2705. * chmod.c (chmod_cmd): Missing _ in _().
  2706. (chmod_cmd): Added braces around nested if/else.
  2707. * widget.c (is_in_input_map): Added braces around nested if/else.
  2708. (listbox_remove_current): Likewise.
  2709. * subshell.c (read_subshell_prompt): Likewise.
  2710. * view.c (view_status): Likewise.
  2711. Tue Apr 27 20:31:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2712. * util.c (strip_home_and_password): Don't split the path in the
  2713. middle of a directory, e.g. "/home/bofh" will not be translated to
  2714. "~h" (fixes the bug reported by Alex Fortuna <alex@rdc.ru>)
  2715. 1999-04-25 Sergei Ivanov <svivanov@pdmi.ras.ru>
  2716. * find.c: The origin of the bug is in the function do_search (file
  2717. find.c). It limits the number of subdirectories to scan by the
  2718. number stat.st_nlink-2, or infinite if st_nlink<2. On tar vfs,
  2719. st_nlink is always 1, so it should be the second case.
  2720. But before doing stat, do_search does opendir. And opendir on tar
  2721. vfs (vfs_s_opendir in vfs/direntry.c) increases the st_nlink value
  2722. in the stat data! So mc_stat called after mc_opendir on tar vfs
  2723. returns st_nlink==2 instead of 1. This is interpreted as if the
  2724. directory had no subdirs, thus subdirs are not searched in.
  2725. Changing the order of calls to mc_stat and mc_opendir fixes the
  2726. problem.
  2727. 1999-03-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2728. * setup.c (save_setup): Only save this if there is a current panel
  2729. Wed Apr 21 21:47:15 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2730. * ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
  2731. like the latter when compiled with -mthreads).
  2732. * user.c (execute_menu_command): ditto.
  2733. Wed Apr 21 20:40:38 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2734. * Makefile.in: use MCCFLAGS and MCLIBS
  2735. Wed Apr 21 20:19:45 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2736. * key.c (get_modifier): Query the state of the modifier keys when
  2737. running inside a terminal emulation under X11.
  2738. * key.c (init_textmode_x11_support, done_textmode_x11_support): new
  2739. functions, only used in the text edition. Connect to and disconnect
  2740. from the X Server when DISPLAY is set.
  2741. * key.h: added prototypes for the new functions
  2742. * main.c (main): call (init|done)_textmode_x11_support
  2743. Sat Apr 17 13:04:19 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2744. * view.c (do_view_init): Enable viewing of files with negative
  2745. st_size (This reverts parts of a patch I commited recently. Miguel
  2746. provided a better fix for this issue).
  2747. 1999-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2748. * view.c (regexp_search): Use unsigned longs for all of the
  2749. offsets here. Fixes crash reported on bugtraq.
  2750. 1999-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2751. * treestore.c (tree_store_save_to): Moved the functionality from
  2752. tree_store_save() to here.
  2753. (tree_store_save): Save the tree in the default location in an
  2754. atomic fashion.
  2755. (tree_store_load_from): Moved the functionality from
  2756. tree_store_load() to here.
  2757. (tree_store_load): Load the tree from the default location.
  2758. * treestore.h (MC_TREE_TMP): Added a #define for the temporary
  2759. name we'll use when saving the tree. Moved the #defines from
  2760. tree.h over to here.
  2761. * main.c (main): Use tree_store_load() and tree_store_save().
  2762. Removed the mc_tree_store_load/save() versions.
  2763. * tree.c (load_tree): Use tree_store_load().
  2764. (save_tree): Use tree_store_save().
  2765. Fri Apr 16 07:51:42 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2766. * wtools.c (message): Use g_vsnprintf instead of vsprintf.
  2767. Fri Apr 16 07:50:59 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2768. * view.c (do_view_init): Don't view files with negative file size.
  2769. Added some error checking (I'm not sure whether this is needed).
  2770. 1999-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2771. * panel.h (WPanel): Added a drag_tree_row field to the WPanel
  2772. structure. This is used to keep track of the highlighted row in
  2773. the tree for drag and drop. Also, added drag_tree_timeout_id to
  2774. hold the node expand timeout. Also, added drag_tree_fe to hold
  2775. the file_entry for the currently highlighted row in the tree.
  2776. 1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2777. * utilunix.c (my_system): Set up default signal handlers for childs.
  2778. Tue Apr 13 07:14:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2779. * slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
  2780. at the code that's only the case when we read EOF from stdin.
  2781. This fixes the problem where MC consumes a lot of cpu time while
  2782. reading EOF from stdin in a tight loop. This situation arises when the
  2783. terminal line/connection drops without MC being sent SIGHUP.
  2784. Tue Apr 13 07:13:10 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2785. * slint.c (SLang_input_pending2): don't store SLANG_GETKEY_ERROR (int)
  2786. in the input buffer (char).
  2787. 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
  2788. * main.c (_do_panel_cd): If we are using GNOME, and the panel is a
  2789. desktop panel, open up a new panel for the contents.
  2790. 1999-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2791. * tree.c (tree_start_search): Renamed from start_search() to avoid
  2792. collisions with screen.c:start_search().
  2793. * panel.h: Added prototype for start_search().
  2794. 1999-04-09 Rosanna Yuen <rwsy@mit.edu>
  2795. * screen.c (do_enter_on_file_entry): split GNOME version and
  2796. non-gnome version.
  2797. (parse_display_format): listen to the warning.
  2798. 1999-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2799. * treestore.c (tree_store_load): Do not load non-local file
  2800. systems
  2801. (tree_store_save): Do not save non-local file systems
  2802. 1999-04-07 Jonathan Blandford <jrb@redhat.com>
  2803. * screen.c (do_enter_on_file_entry): added a consistent behaviour
  2804. for GNOME stuff.
  2805. 1999-04-06 David Martin <dmartina@usa.net>
  2806. * info.c (text out of box and locale layout).
  2807. * util.c: If gmc uses strftime() why mc doesn't?
  2808. * view.c: a) Tune status line so it does fit in a Quick View Panel
  2809. b) Let Hex View resize cleanly. I think it's fixed for panel
  2810. re-split and SIGWINCH signal in xterm. gmc still fails. There was
  2811. a tiny risk of division by zero when pressing F4 in a very small
  2812. box. True hard work... Must try and check it.
  2813. 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2814. * main.c (main): Call mc_tree_store_save() when the program
  2815. terminates.
  2816. 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2817. * find.c (setup_gui): Do not scroll horizontally. Why does the
  2818. CList behave like this?
  2819. * setup.c: Save desktop information.
  2820. 1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2821. * cons.saver.c (main): dup2() may be interrupted; take this into
  2822. account. Do we need to fcntl() stderr, or is it enough to close()
  2823. it before recreating it?
  2824. 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2825. * dlg.c (dlg_run_done): Do not call the callback of a NULL current
  2826. widget.
  2827. * setup.h: Added missing prototype for setup_init().
  2828. * filegui.c (check_progress_buttons): Added a missing return
  2829. value.
  2830. * dlg.c (remove_widget): Added a missing return value.
  2831. * main.c: Removed the global directory_list variable.
  2832. Removed the main_corba_register_server() function.
  2833. * main.h: Removed the global run_desktop variable.
  2834. * panel.h: Now the panel structure has a unique numerical ID used
  2835. for session management.
  2836. * screen.c (panel_new): Maintain a unique ID for each panel.
  2837. * main.c (maybe_display_linksdir): Handle display of the desktop
  2838. init dir here.
  2839. (main): Call gnome_check_super_user().
  2840. (init_corba_with_args): Call corba_init_server().
  2841. * main.c (init_corba_with_args): Do CORBA initialization here. Also
  2842. removed the global force_activation option.
  2843. 1999-03-29 Jonathan Blandford <jrb@redhat.com>
  2844. * main.c (main): updated message.
  2845. Sun Mar 28 23:52:08 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2846. * util.c (is_printable): Character 155 is non printable even when
  2847. full eight bit output is enabled (on the linux console 155 is
  2848. interpreted as "ESC [").
  2849. 1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2850. Patch courtesy of John Bley (jbb6@acpub.duke.edu):
  2851. * background.c (do_background): Use pid_t instead of int.
  2852. * subshell.c (sigchld_handler): Likewise.
  2853. 1999-03-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2854. * Makefile.in: Use mcsrclibdir where appropriate.
  2855. 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2856. * treestore.c (process_special_dirs): Free memory here.
  2857. Fix test: Skip only "." and "..", before it could skip "?.".
  2858. 1999-03-22 David Martin <dmartina@mailexcite.com>
  2859. * wtools.c (real_input_dialog_help): Do a strncmp with the lenght
  2860. of th same translated "Password:" string.
  2861. Mon Mar 22 02:05:28 1999 Timur Bakeyev <mc@bat.ru>
  2862. * screen.c (file_entry_color): Dropped. Code went to file_compute_color.
  2863. * screen (format_file): Add check, that avoids reported error, when
  2864. long file list -> quick view -> brief file list gives core dump.
  2865. 1999-03-19 Jonathan Blandford <jrb@redhat.com>
  2866. * main.c (main): We don't want to restart if we hit cancel.
  2867. * file.c (panel_operate): Ugly hack for GNOME. We only treat the
  2868. copy as if it were many files, and skip the only_one branch.
  2869. 1999-03-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2870. * utilunix.c (close_error_pipe): Inform parent of the return value
  2871. of any command here. This allows the desktop to launch a terminal
  2872. only if it succeeded in mounting the directory.
  2873. Thu Mar 18 16:09:09 1999 Timur Bakeyev <mc@bat.ru>
  2874. * panel.h, screen.c: Add an ability to center justify fields in the
  2875. panel, in addition to left and right justification. Just for fun.
  2876. Try =name in user format.
  2877. * util.c (name_quote): Quote "~@^|;:". Hope, that's all :)
  2878. 1999-03-17 Jonathan Blandford <jrb@redhat.com>
  2879. * main.c (main): Put in a warning when run as root.
  2880. 1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2881. * boxes.c (symlink_dialog): Put this inside an "#ifndef
  2882. HAVE_GNOME" since we now provide a nicer version of the dialog.
  2883. * wtools.c (real_input_dialog_help): Removed un-needed #ifdef.
  2884. * cmd.c (edit_symlink_cmd): Generate the title of the dialog after
  2885. we have computed the source filename.
  2886. (edit_symlink_cmd): Use g_strdup_printf() instead of g_strconcat()
  2887. for better internationalization.
  2888. * wtools.c: Removed unused function input_dialog_help_2().
  2889. (real_input_dialog_help): Put this inside an "#ifndef HAVE_GNOME",
  2890. because now the Gnome version implements its own pretty dialog.
  2891. 1999-03-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2892. * dlg.c (dlg_select_nth_widget): Handle the case where h->current
  2893. points to NULL.
  2894. 1999-03-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2895. * file.c (erase_file): Here we need to mc_lstat(), not mc_stat().
  2896. Since we use the resulting buf.st_size to update the progress, we
  2897. need the size of unresolved links. This also makes it consistent
  2898. with screen.c:do_file_mark().
  2899. * screen.c (select_item): Return immediately if this is a desktop
  2900. panel.
  2901. 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2902. * subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
  2903. grantpt() but they do lack SysV streams. Handle this. Noticed by
  2904. Jakub Jelinek
  2905. 1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2906. * util.h: Added prototype for g_readlink(). Miggie boy should add
  2907. prototypes when he adds public functions.
  2908. 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2909. * utilunix.c (g_readlink): Fixed two bugs spotted by Morten
  2910. Wellinder. Boy, Morten has such a good eye!
  2911. 1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2912. * file.c (erase_dir): Erase metadata for directories as well.
  2913. (erase_dir_iff_empty): Likewise.
  2914. (copy_file_file): Delete/copy the metadata even for
  2915. char/block/sock/fifo files. Same thing for when copying symlinks.
  2916. (copy_dir_dir): Delete/copy the metadata.
  2917. (move_dir_dir): Delete/move the metadata.
  2918. (recursive_erase): Delete the metadata.
  2919. 1999-03-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2920. * file.c (real_query_recursive): Removed an unused variable.
  2921. 1999-03-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2922. * utilunix.c (g_readlink): New function. Wraps all the nonsense
  2923. of readlink into a nice routine.
  2924. * filegui.c: Support ui->ctx to be NULL, as file.c will set this
  2925. to NULL for background operations.
  2926. * background.c (do_background): Handle EINTR in dup2.
  2927. Wed Mar 10 22:21:19 1999 David Martin <dmartina@usa.net>
  2928. * util.c (my_putenv): char* was used to store the length of a string
  2929. * info.c (info_show_info): cast st_dev and st_ino when passing
  2930. to printw.
  2931. 1999-03-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2932. * file.c (panel_operate): Always create the ctx->ui. Federico,
  2933. can you see if this change is correct from your point of view?
  2934. * cmd.c (edit_symlink_cmd): Small fix to improve the messages
  2935. printed.
  2936. Tue Mar 2 22:54:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2937. * util.c (name_quote): Quote '<' and '>'.
  2938. Tue Mar 2 22:28:39 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2939. * main.c (panel_clean_dir): New function: reset all counters of a
  2940. WPanel and clean directory list.
  2941. * various places: Use panel_clean_dir instead of clean_dir whenever
  2942. a WPanel is available. This solves the problem reported by Enrico
  2943. Scholz (screen refresh while panel reload with an old/now invalid
  2944. panel->count).
  2945. Mon Mar 1 00:18:48 1999 Timur Bakeyev <mc@bat.ru>
  2946. * mad.c: Tempnam() returns malloced buffer, so, free() it, not g_free().
  2947. 1999-02-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2948. * view.c (view_percent, view_update): Take an extra argument:
  2949. update_gui, which controls whether we want to update the displayed
  2950. region in the GUI version.
  2951. 1999-02-25 Jonathan Blandford <jrb@redhat.com>
  2952. * cmd.c (symlink_cmd): little change to handle the case when a
  2953. desktop panel is passed in.
  2954. 1999-02-25 Owen Taylor <otaylor@redhat.com>
  2955. * fileopctx.h file.c: Moved recursive delete query
  2956. dialog into gdialogs.c for GNOME.
  2957. 1999-02-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2958. * file.c: Moved FileCopyMode here (thanks to Wolfgang Scherer for
  2959. pointing this out) and made it a typedef.
  2960. * treestore.c (process_special_dirs): New function.
  2961. (should_skip_directory): Load the settings from the global
  2962. special.dirs file and from the
  2963. * util.c: Test for glibc/linux and if so, do not use getwd, but
  2964. getcwd as on this system it is better than popen ("pwd").
  2965. 1999-02-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2966. * setup.c: Declare extern int tree_panel_visible for the GNOME
  2967. version.
  2968. 1999-02-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2969. * dir.c (if_link_is_exe): Made this function take in a directory
  2970. argument as well -- the sought file may not be in the cwd, and
  2971. file entries do not carry the directory the file refers to.
  2972. * screen.c (do_enter_on_file_entry): Pass in the cpanel->cwd to
  2973. if_link_is_exe().
  2974. 1999-02-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2975. * treestore.c (tree_store_rescan): Add code to skip scanning
  2976. specially slow directories (/afs, /coda, /...). It is of course,
  2977. configurable.
  2978. * setup.c: Export the profile_name setup routine.
  2979. Tue Feb 16 21:21:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2980. * popt.c: Compilation fix: on systems without setreuid use setuid.
  2981. Tue Feb 16 21:18:08 1999 David Martin <dmartina@usa.net>
  2982. * achown.c: Make buttons fit in the (new) translated
  2983. Advanced Chown dialog.
  2984. 1999-02-16 Alexaander Savelyev <fano@ham.kiev.ua>
  2985. * subshell.c (exit_subshell): Use the size of the buffer, not
  2986. sizeof of the pointer to the buffer.
  2987. Sun Feb 14 02:59:09 1999 Timur Bakeyev <mc@bat.ru>
  2988. * utilunix.c (my_system): Fix the order of preferenses, as setuid
  2989. more desirable on BSD systems. Terminate execl[p]() with NULL, as
  2990. this is formally correct.
  2991. 1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
  2992. * dir.c (do_load_dir): Added missing calls to tree_store_end_check.
  2993. * find.c (add_to_list): Pass the data pointer as well.
  2994. Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  2995. * utilunix.c (my_system): Compilation fix: on systems without
  2996. setreuid use setuid.
  2997. 1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
  2998. * panel.h (WPanel): Removed unused field "corbadat".
  2999. 1999-02-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3000. * screen.c: Make delete key delete files.
  3001. * dir.c (do_reload_dir): Add a couple of missing calls to tree_store_end_check.
  3002. 1999-02-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3003. * main.h: Added prototype for main_corba_register_server().
  3004. 1999-02-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3005. * view.c (search): Provide GNOME specific code for the search progress
  3006. * treestore.c: Add a new hook system to hint a tree freeze/thaw.
  3007. * setup.c: In the GNOME version, we do not show the dot files by default.
  3008. 1999-02-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3009. * file.c (copy_file_file): Add support for the GNOME metadata here.
  3010. (move_file_file): Add support for the GNOME metadata here.
  3011. 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3012. * treestore.c (tree_store_add_entry): Use g_new0 to allocate the tree_entry.
  3013. (tree_store_notify_add): Close, but no cigar. The
  3014. bug was deeper: This list keeps names, not tree_entries.
  3015. 1999-02-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3016. * treestore.c (tree_store_notify_add): A tree_store_add_fn wants a
  3017. string, not a tree_entry, so pass a string to it.
  3018. 1999-02-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3019. * treestore.c: Revert all of the stack changes. Now the treestore
  3020. is again non-re-entrant. Being re-entrat was only covering up for
  3021. bugs in other places.
  3022. Now we postpone notifications for additions at
  3023. tree_store_end_check, not before.
  3024. 1999-02-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3025. * treestore.c (tree_store_remove_entry): Removed unused code for
  3026. base_sublevel computation.
  3027. Sun Feb 7 06:11:48 1999 Timur Bakeyev <mc@bat.ru>
  3028. * Makefile.in: Change calls to xmkdir to mkinstalldirs - this is more
  3029. GNU-like :)
  3030. * xmkdir removed - we have mkinstalldirs.
  3031. 1999-02-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3032. * cmd.c (view_other_cmd): Do not use \r in translatable strings.
  3033. 1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3034. * widget.c (push_history): Only do check the history headings if
  3035. the widget has a history entry bound to it.
  3036. 1999-02-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3037. * treestore.c (tree_store_start_check, tree_store_mark_checked,
  3038. tree_store_end_check): Use a stack for check_name. There are far
  3039. too many instances that might call the end_check.
  3040. Wed Feb 3 23:55:54 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  3041. * widget.c (history_put): set the access rights correctly when
  3042. the history file is created initially. Don't save the history
  3043. if we can't set the access rights.
  3044. 1999-02-01 Jonathan Blandford <jrb@redhat.com>
  3045. * setup.c: save we_can_afford_the_speed
  3046. Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  3047. * util.c (strip_password): Extented to find the url in the first
  3048. parameter. The second parameter tells whether it should search the
  3049. url (indicated by known prefixes) in the first parameter or whether
  3050. the first parameter is a url without a prefix ("ftp://", "/#ftp:",
  3051. "/#mc:").
  3052. * main.c (directory_history_add): Strip the password (if any) from
  3053. the freshly added value.
  3054. * widget.c (push_history): ditto. There's a ugly special casing
  3055. necessary for the network and ftp link dialogs (urls are entered
  3056. with out prefix).
  3057. * widget.c (history_put): Restrict read and write access to the
  3058. history file to the owner (Just in case I forgot to strip passwords
  3059. somewhere).
  3060. Mon Feb 1 00:43:15 1999 Timur Bakeyev <mc@bat.ru>
  3061. * screen.c (to_buffer): Code of the function rewritten, as a side
  3062. effect added J_CENTER (who needs this?). Also, justification flags
  3063. got twins with _FIT suffix, which tries to fit name in the field with-
  3064. out truncation (uses name_trunc()). This unifies behaviour of CList
  3065. variants and text-bases widgets.
  3066. * screen.c: Remove HAVE_GNOME wrappers around string_file_[name|owner|
  3067. group]() - not necessary, to_buffer() doing this work.
  3068. Sun Jan 31 19:49:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
  3069. * hotlist.c (add_new_entry_input, add_new_group_input): Make the
  3070. quick_widget arrays static and various changes needed because they
  3071. are now static. add_widgets_i18n recalculates button positions
  3072. which get lost when the quick_widget arrays are non static.
  3073. * screen.c (to_buffer): nul terminate string when using strncpy
  3074. * setup.c: Save and restore new option ftpfs_first_cd_then_ls.
  3075. 1999-01-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3076. * file.c (panel_operate_generate_prompt): Removed the cmd_buf
  3077. argument, since it is a global variable anyway (this function is
  3078. only called once from file.c, and the global cmd_buf was being
  3079. passed in).
  3080. (panel_operate): Do not pass cmd_buf to
  3081. panel_operate_generate_prompt().
  3082. Thanks to Alexander Savelyev <fano@vcom.kiev.ua> for noticing this.
  3083. 1999-01-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3084. * achown.c (XTRACT): Add missing call to _().
  3085. 1999-01-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3086. * panel.h: Fixup #includes.
  3087. 1999-01-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3088. * cons.saver.c: Removed glib from the suid app
  3089. Wed Jan 27 03:17:44 1999 Timur Bakeyev <mc@bat.ru>
  3090. * Converted memory managment to Glib. Now we use g_new()/g_malloc()/
  3091. g_strdup()/g_free() routings. Also, copy_strings() replaced by
  3092. g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
  3093. g_snprintf().
  3094. * Some sequences of malloc()/sprintf() changed to g_strdup_printf().
  3095. * mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
  3096. a missing #undef for tempnam, which caused dead loop. Add several new
  3097. functions to emulate GLib memory managment.
  3098. *main.c, mad.[ch]: Add a new switch "-M", which allows to redirect MAD
  3099. messages to the file.
  3100. * util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
  3101. and strdup() - we have g_ equivalences. Remove get_full_name() - it is
  3102. similar to concat_dir_and_file(). Some other tricks with g_* functions.
  3103. * global.h: Modified, extended. Now it is main memory mangment include -
  3104. i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
  3105. "util.h" and "mad.h" done there. This elimanates problem with proper or-
  3106. der of #include's.
  3107. * All around the source - changed order of #include's, most of them gone
  3108. to global.h (see above), minor changes, like "0" -> NULL in string func-
  3109. tions.
  3110. 1999-01-25 Alexander Savelyev <fano@vcom.kiev.ua>
  3111. * ext.c (exec_extension): Always use /bin/sh. Not the user
  3112. shell.
  3113. 1999-01-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3114. * treestore.c (tree_store_remove_entry_remove_hook): Missing
  3115. function. To remove a notification hook.
  3116. (tree_store_notify_add, tree_store_add_entry_add_hook,
  3117. tree_store_remove_entry_add_hook): New functions to notify of
  3118. additions to the treestore.
  3119. * tree.c (tree_destroy): Remove the callback hook when we go
  3120. away.
  3121. 1999-01-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3122. * option.c (init_configure): One line patch from Alexander
  3123. Savelyev to transalate all strings.
  3124. 1999-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
  3125. * file.c: Killed operation_names: they seemed same to op_names to
  3126. me, and compilation failed on them (initializer element is not a
  3127. constant). Maybe miguel tagged too many strings for localization?
  3128. :-).
  3129. * ext.c: we use /tmp in "creative" way: creating there file and
  3130. then executing it. I do not see how it is needed. Marked with FIXME.
  3131. Thu Jan 21 01:11:24 1999 Timur Bakeyev <mc@bat.ru>
  3132. * mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)
  3133. GLib'ed VFS and not still converted MC itself.
  3134. 1999-01-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3135. * treestore.c (tree_store_start_check): Use mc_stat(), not stat().
  3136. (tree_store_rescan): Use mc_lstat(), not lstat().
  3137. Tue Jan 19 05:28:04 1999 Timur Bakeyev <mc@bat.ru>
  3138. * ext.c, filenot.c, main.c, screen.c, treestore.c: add missed #include's
  3139. and moved glib.h so, it follows "fs.h", but preceed "util.h" and "mad.h".
  3140. There were conflicts during compilation with MAD and GLibed vfs.
  3141. Mon Jan 18 21:23:29 1999 Paul Sheer <psheer@obsidian.co.za>
  3142. * cmd.c: update_panels (UP_OPTIMIZE, UP_KEEPSEL); instead
  3143. of reread after editing a file.
  3144. 1999-01-18 Arturo Espinosa <arturo@nuclecu.unam.mx>
  3145. * file.c: Use N_ instead of _ for some of miguel's last tags.
  3146. 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3147. * file.c: Tag some more strings for localization.
  3148. 1999-01-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3149. * cmd.c (mkdir_cmd): Please, check your pointer usage.
  3150. Thu Jan 14 13:18:58 1999 Timur Bakeyev <mc@bat.ru>
  3151. * screen.c (string_file_[owner|group]): Workaround the fact, that some
  3152. systems have user and group names greater than 8 symbols. Now we trun-
  3153. cate them.
  3154. 1999-01-13 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3155. * treestore.c (tree_store_load): Use g_return_val_if_fail(), not
  3156. g_return_if_fail().
  3157. (tree_store_rescan): Added parentheses to clarify || and &&.
  3158. * tree.c (tree_add_entry): Removed unused variable.
  3159. * treestore.h: Added prototype for tree_store_start_check_cwd().
  3160. 1999-01-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3161. * view.c (search): Missing condition.
  3162. * treestore.c (tree_store_opendir): Simplistic fix. This is not
  3163. quite correct.
  3164. 1999-01-12 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3165. * panelize.h: Added prototype for do_external_panelize().
  3166. * screen.c (move_selection): Unused variable fixes for HAVE_X.
  3167. * boxes.c (configure_vfs): Removed an unused variable.
  3168. 1999-01-12 Jonathan Blandford <jrb@redhat.com>
  3169. * cmd.c (mkdir_cmd): now mkdir_cmd will accept relative, and
  3170. absolute directories.
  3171. Tue Jan 12 13:40:46 1999 Timur Bakeyev <mc@bat.ru>
  3172. * gtkedit(syntax.c): Fixed a typo in Pascal syntax.
  3173. 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3174. * treestore.c (tree_store_save): Add signature for version 2.0 of
  3175. the file format.
  3176. 1999-01-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3177. * file.c (do_file_error): Made static.
  3178. (query_recursive): Have cases for background/foreground operation.
  3179. (do_file_error): Likewise.
  3180. * background.c: Removed the bg_ctx global, since now all the
  3181. contexts are carried around by the functions that actually need
  3182. them.
  3183. * fileopctx.h (FileOpContext): Moved the op_preserve field to here.
  3184. * filegui.c (file_mask_dialog): Removed the ui assertion, since
  3185. now the op_preserve field is kept in the main context structure.
  3186. 1999-01-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3187. * util.c: Provide workarounds for Linux kernel bug.
  3188. Sun Jan 10 02:18:33 1999 Timur Bakeyev <mc@bat.ru>
  3189. * screen.c(string_file_size): Fixed (incorrect?) printing of device num-
  3190. bers. Major should never be greater 255.
  3191. 1999-01-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3192. * dir.c (handle_dirent): Use the tree_store now.
  3193. (handle_path): ditto.
  3194. (do_load_dir): ditto.
  3195. (do_load_dir): ditto.
  3196. (do_reload_dir): ditto.
  3197. (do_reload_dir): ditto.
  3198. * treestore.c (tree_store_save): New file
  3199. (encode): New routine used to encode pathnames in a safe way that
  3200. are saved to the mc/.tree file.
  3201. (decode): New routine, used to decode the pathnames we encoded in
  3202. the step above. Aint love grand?
  3203. * tree.c (load_tree): Kill dead code.
  3204. Moved all of the tree store information into a new file:
  3205. treestore. To be reused by the Gnome code.
  3206. 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
  3207. * popt.c: OS/2 and Windows NT portability fix.
  3208. 1999-01-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3209. * file.c (panel_operate_flags): Only show this dialog box if it is
  3210. a copy or move operation
  3211. 1999-01-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3212. * background.c (do_background): Make it a bit saner. Now we store
  3213. a per-child-process FileOpContext structure.
  3214. * fileopctx.h: New file with declarations for the file operation
  3215. context structure.
  3216. * fileopctx.c (file_op_context_new): New function to create a file
  3217. operation context with the default file mask values.
  3218. (file_op_context_destroy): New function to destroy a file
  3219. operation context and its associated UI, if appropriate.
  3220. * filegui.h: Use complete prototype for fmd_init_i18n().
  3221. * filegui.c (FileOpContextUI): New structure that describes the UI
  3222. and internal data for file operation contexts in the text mode
  3223. version.
  3224. (file_op_context_create_ui): Renamed from create_op_win() and
  3225. made it use a context instead of global variables.
  3226. (file_op_context_destroy_ui): Likewise, renamed from
  3227. destroy_op_win().
  3228. (fmd_widgets): Removed an #ifdef HAVE_XVIEW bit and moved the
  3229. initialization of the result pointers to file_mask_dialog(), as we
  3230. need to use the pointers to the fields inside the file op context now.
  3231. Made all the functions use a file operation context.
  3232. (file_mask_dialog): Always call fmd_init_i18n(); it will take care
  3233. of idempotence by itself.
  3234. (fmd_init_i18n): Now the code that makes sure this function is
  3235. only called once is here.
  3236. * cmd.c (check_for_default): Make it use a file operation context.
  3237. * tree.c (tree_copy): Likewise.
  3238. (tree_move): Likewise.
  3239. (tree_rmdir_cmd): Likewise.
  3240. * file.c: Removed file_progress_replace_progress and
  3241. file_progress_replace_filename -- they are only used in filegui.c
  3242. as part of the UI for the file operation context.
  3243. (panel_operate_generate_prompt): Made static.
  3244. (panel_operate_generate_prompt): Always call fmd_init_i18n(); it
  3245. will take care of idempotence by itself.
  3246. (panel_operate): Removed the panel_operate_def() function, and
  3247. made panel_operate() take an extra "ask_user" argument.
  3248. (query_recursive): Made static.
  3249. * background.c (background_attention): Made static.
  3250. (register_task_running): Made static.
  3251. (do_background): Now takes a file operation context as an
  3252. argument. It stores the pid of the child there.
  3253. * Makefile.in: Added fileopctx.[ch].
  3254. 1999-01-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3255. * widget.c (listbox_new): Assing l->height.
  3256. 1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3257. * main.c (update_one_panel_widget): GNOME version does the panel
  3258. update here (this is an optimization, as we do not want do_refresh
  3259. to do anything.
  3260. * dialog.c (do_refresh): Remove this optimization as it was
  3261. disabling the repainting of the screen contents.
  3262. * hotlist.c (done_hotlist): The hotlist might not be loaded
  3263. anymore.
  3264. 1999-01-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3265. * widget.c (listbox_new): Under GNOME, height of the listbox might
  3266. be less than zero (due to LINES/COLS being set to zero there). So
  3267. for bow, set the height to 1. This needs to be propery computed
  3268. in x_create_listbox.
  3269. * main.c (main): Do not load the hotlist here anymore. We
  3270. auto-load it on the setup(?).
  3271. 1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3272. * main.c (main): Removed old, unused code.
  3273. (setup_panels_and_run_mc): Register the corba server here, not
  3274. before, as the program is not ready to accept any commands yet.
  3275. * screen.c (panel_set_sort_order): New routine to set the sorting
  3276. mode.
  3277. (panel_re_sort): New routine to force a resort on a panel.
  3278. * main.c (sort_cmd): Use the new routines.
  3279. 1998-12-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3280. * cmd.c (check_for_default): Make this compile.
  3281. Tue Dec 29 22:25:34 1998 Timur Bakeyev <mc@bat.ru>
  3282. * mountlist.c: Compress all xBSD systems to one line and add check
  3283. for MOUNT_UFS - it seems, that 4.4BSD and 4.4BSD2 systems different-
  3284. ly handles FS names. (currently affects BSDI and FreeBSD)
  3285. Tue Dec 29 16:34:02 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3286. * file.c (progress_update_one): Ignore files in subdirectories
  3287. when panel totals haven't been computed.
  3288. (erase_dir, erase_file): update progress bar (i.e. make it work
  3289. for OP_DELETE).
  3290. (panel_operate_flags): Don't compute panel totals for OP_MOVE.
  3291. When moving files on the same filesystem computing totals might
  3292. last much longer than the actual move operation.
  3293. (various places): adpations for the above changes.
  3294. Mon Dec 28 22:15:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3295. * slint.c (try_alloc_color_pair): Changed hardcoded values into
  3296. defines.
  3297. Mon Dec 28 20:22:59 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3298. * color.c, text.c: Added color "stalledlink" which is used for
  3299. stalled symbolic links. Formerly "viewunderline" was used for
  3300. this (IMO bad because function and name didn't match).
  3301. According to the man page the color keyword for executable files
  3302. is `executable' and not `execute' -- changed.
  3303. * color.c, color.h: When using SLang some color indexes are not
  3304. freely choosable (DEFAULT_COLOR clashed with A_BOLD_REVERSE).
  3305. Solved by adding holes in color_map.
  3306. * find.c (do_search): fixed possible memory leak
  3307. Sat Dec 26 09:53:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3308. * layout.c: include sys/ioctl.h to get definition of TIOCGWINSZ
  3309. (fixes problem with screen resize).
  3310. Fri Dec 25 20:19:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3311. * file.c (panel_operate_flags): Don't change file progress count and
  3312. size twice for every file.
  3313. (panel_compute_totals): Initialize return values to zero before
  3314. calculating anything.
  3315. (panel_operate_def, panel_operate): return a value
  3316. Thu Dec 24 19:00:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3317. * screen.c (recalculate_panel_summary): new function which recalculates
  3318. the summary information for the mini-status.
  3319. * screen.c (panel_reload): use recalculate_panel_summary
  3320. * screen.c (do_file_mark): Honour that dirsizes computed is now a
  3321. per entry flag.
  3322. Thu Dec 24 18:53:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3323. * option.c: Added Compute Totals to the configuration dialog.
  3324. * file.c (compute_dir_size): made non static
  3325. (panel_operate_flags): Don't compute directory sizes if verbose
  3326. operation are off.
  3327. Thu Dec 24 18:42:52 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3328. * cmd.c (dirsizes_cmd): Rewritten to use compute_dir_size as suggested
  3329. by Miguel, i.e. get rid of du. Now the dirsizes_cmd honours a
  3330. selection and computes sizes only for marked directories. Possible
  3331. improvement: add a dialog (or C-C?) to abort computation.
  3332. * dir.h (file_entry), panel.h (WPanel): Made the dirsizes computed
  3333. flag a per file flag.
  3334. * dir.c, find.c, panelize.c, screen.c: Adapted to new file_entry and
  3335. WPanel structure.
  3336. * features.inc: Deleted DUSUM information
  3337. * mc.hlp: remade because of changes in doc/mc.1.in
  3338. 1998-12-22 Jonathan Blandford <jrb@redhat.com>
  3339. * file.c: add a HAVE_GNOME only function
  3340. Mon Dec 21 22:39:35 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3341. * mountlist.c: Define xBSD on FreeBSD.
  3342. * main.c (parse_an_arg): New function, popt callback. Option
  3343. parsing in gmc was broken. The gnome*_init_with_popt_table free
  3344. the option tables and gmc tried to use the option tables later.
  3345. * main.c (handle_args): In the Gnome edition don't parse the
  3346. options a second time.
  3347. * boxes.c (configure_vfs), setup.c: Deleted obsolete options.
  3348. tar.gz files are now always unzipped to a temporary file on disk.
  3349. Mon Dec 21 14:28:55 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3350. * filenot.c (my_mkdir_rec): Someone broke this completely by deleting
  3351. a line. Funny things happen if you use an already freed pointer.
  3352. Improved error handling: try to make directories recursivly until
  3353. mkdir succeeds or fails with errno != ENOENT. Now you will get the
  3354. correct error message when you don't have permission to create a
  3355. directory.
  3356. * mountlist.c: Deleted function prototypes for strdup and strstr,
  3357. they might conflict with definitions in the system header files.
  3358. Wed Dec 16 14:41:15 1998 Paul Sheer <psheer@obsidian.co.za>
  3359. * gtkedit.c, editwidget.c: gnome selection now works with the
  3360. editor.
  3361. Wed Dec 16 06:27:00 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3362. * screen.c (Xtry_to_select): Don't select a similar file when
  3363. "name" can't be found in the panel (when deleting files the
  3364. selection jumpped from the deleted "file" to a directory which
  3365. started with the same character as "file", annoying).
  3366. Strip known vfs suffixes from "name" before trying to select
  3367. (I think Timur made this suggestion a few months ago). Know the
  3368. vfs is mature enough to do this.
  3369. 1998-12-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3370. * dir.c (link_isdir): Remove unused variable.
  3371. Sun Dec 13 18:35:05 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3372. * screen.c (panel_reload): Don't set panel->selected to zero here,
  3373. keep it's value if possible or set it to panel->count - 1 (I disliked
  3374. the jumping cursor when deleting files).
  3375. 1998-12-11 Michael Fulbright <msf@majestic.labs.redhat.com>
  3376. * file.c (panel_operate_generate_prompt): Changes the text
  3377. for GNOME dialogs. --jrb
  3378. 1998-12-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3379. * main.c (try_to_select): We do not need to select the item
  3380. manually in this case, as the X code will do this for us.
  3381. Fri Dec 11 00:05:50 1998 Paul Sheer <psheer@obsidian.co.za>
  3382. * syntax.c, slint.c, color.c, color.h: editor now has its
  3383. own color configuration so you can set editor background
  3384. colors with MC_COLOR_TABLE.
  3385. 1998-12-10 Paul Sheer <psheer@obsidian.co.za>
  3386. * syntax.c: perl syntax highlighting. syntax highlighting
  3387. bug fizes for python and sh.
  3388. * edit.c: new method of finding line offsets from line
  3389. number (for cooledit for python stuff).
  3390. Mon Nov 30 21:10:30 1998 Pavel Machek <pavel@bug.ucw.cz>
  3391. * file.c (copy_file_file): minor code beatifulling: replace goto's
  3392. with while loops (it is both shorter and nicer :-)
  3393. (panel_operate): hopefully done WANT_STALE_DATA right. We really
  3394. should kill ftpfs_hint_reread hack soon.
  3395. * cmd.c (dirsizes_cmd): report error if you are on non-local
  3396. filesystem. (As oposed to silently failing.)
  3397. 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3398. * screen.c (panel_reload): Set panel->selected to zero here, this
  3399. will at least guarantee that we do not try to fetch anything
  3400. outside of bounds.
  3401. * main.c: The bar2 is gone as well.
  3402. Tue Dec 8 19:19:39 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3403. * cmd.c (dirsizes_cmd): Fixed possible buffer overflow
  3404. 1998-12-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3405. * screen.c (do_enter): Return the value from this.
  3406. 1998-12-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3407. * dir.c (link_isdir): Fetch the information from
  3408. file->f.link_to_dir, since we already have it.
  3409. * dir.h (file_entry): Removed the `cache' field in this structure,
  3410. as it was only used for the deprecated Xview version.
  3411. Also, removed the `exists' field, as it was not being used anywhere.
  3412. * dir.c: Removed all occurrences of file_entry->cache.
  3413. * find.c: Removed all occurrences of file_entry->cache.
  3414. * panelize.c: Removed all occurrences of file_entry->cache.
  3415. * screen.c (do_enter_on_file_entry): New public function that
  3416. implements the functionality in do_enter(), but based on a file
  3417. entry rather than on a panel.
  3418. (do_enter): Use do_enter_on_file_entry() with the selection of the
  3419. panel as an argument.
  3420. 1998-12-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3421. * cmd.c, tree.c: Updated to the new file.c api.
  3422. * file.c: (copy_file_file, copy_dir_dir, move_file_file,
  3423. move_dir_dir): Updated to work with the new updating stuff.
  3424. * setup.c: New configuration option to compute the totals to be
  3425. transfered.
  3426. * file.c (compute_dir_size, panel_compute_totals): New routines to
  3427. compute the total ammount of information that is going to be
  3428. transfered.
  3429. 1998-12-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3430. * ext.h: GNOME edition uses a different set of .ext files.
  3431. * lib/mc-gnome.ext.in: New file with GNOME-specific bindings.
  3432. 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3433. * GNORBA integration. We now produce two binaries: gmc and
  3434. corba-gmc (that way, I dont interfere with other's work).
  3435. * Added prototypes, made private functions static, clean up
  3436. various silly warnings.
  3437. * main.c (main): Removed crufty init_sigfatal code.
  3438. * cmd.c (do_link): More slang dependecies are fixed for the X
  3439. ports.
  3440. * keys.h (enum): Moved key definitions here.
  3441. * tty.h: MOve towards slang freedom for the GNOME port.
  3442. 1998-12-01 Jonathan Blandford <jrb@redhat.com>
  3443. * file.c (panel_operate_generate_prompt): moved from filegui.c
  3444. 1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3445. * panel.h (WPanel): Added the missing tree/pane/view_table fields
  3446. to the Gnome part of the structure.
  3447. 1998-11-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3448. * cons.saver.c (main): Make sure stderr is always valid.
  3449. (main): Also check that stderr_fd is not -1.
  3450. Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3451. * cmd.c (dirsizes_cmd): Quote characters with a special meaning
  3452. when passing it to du.
  3453. 1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3454. * dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
  3455. (dlg_key_event): Return 1 if handled the tab key.
  3456. * filegui.h: Added prototypes for file_progress_show_{source,target,deleting}().
  3457. Sun Nov 22 22:30:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3458. * autogen.sh: replaced "cat *.m4" with a call to aclocal. Concatenate
  3459. mc-aclocal.m4 and gettext.m4 to acinclude.m4. The other way round
  3460. would have been to add three more m4 files to the replaced cat line
  3461. (including cond.m4 from automake-1.3b).
  3462. Fixed OBJ_DIR handling.
  3463. Sun Nov 15 00:37:58 1998 Pavel Machek <pavel@bug.ucw.cz>
  3464. * mad.c (mad_tempnam): needed wrapper for tempnam added
  3465. 1998-11-17 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3466. * dlg.c (destroy_dlg): Do not refresh.
  3467. * filegui.c: New file. We keep all of the user interface code for
  3468. the text edition in this file now. This should be a per-GUI port
  3469. file.
  3470. 1998-11-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3471. * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the
  3472. WPanel structure, we now have a single opaque pointer to UI data,
  3473. called port_ui. GUI stuff specific to each port should be here.
  3474. This is a work in progress.
  3475. 1998-11-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3476. * setup.c: Removed the icons_snap_to_grid and
  3477. want_transparent_{icons,text} options.
  3478. Thu Nov 5 12:10:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  3479. * file.c (panel_operate): check for null pointer before passing it
  3480. to mc_setctl
  3481. Wed Nov 4 17:51:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3482. * src/findme.h: added from popt-1.2 by RedHat
  3483. * src/Makefile.in: appropriate changes to use new popt
  3484. Sun Nov 1 20:59:05 1998 Pavel Machek <pavel@bug.ucw.cz>
  3485. * file.c (erase_file): translated goto into while loop (it is both
  3486. shorter AND cleaner)
  3487. * subshell.c (feed_subshell): do NOT print anything if we get
  3488. errors/eofs from read(subshell) - this fixes (or at least hides)
  3489. nasty bug where typing "exit" on mc prompt prints lots of garbage
  3490. and falls into infinite loop. Someone with better knowledge should
  3491. read feed_subshell(), and make it handle errors properly. (Why do
  3492. we ignore EIO for example?)
  3493. Sun Oct 18 22:56:17 1998 Pavel Machek <pavel@bug.ucw.cz>
  3494. * view.c: we now rely on sfs to do file decompressing for us. That
  3495. has advantage of displaying #ugz at first line, so user knows what
  3496. we are doing behind his back
  3497. * view.c: fix indentation, fallback to read whole file if mmap fails.
  3498. 1998-11-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
  3499. * setup.c: #ifdef'ed out stuff in the menus that will get changed
  3500. as I rewrite the desktop part.
  3501. 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3502. * layout.c (print_vfs_message): Use g_snprintf instead of
  3503. vnsprintf.
  3504. 1998-10-30 Sung-Hyun Nam <namsh@lgic.co.kr>
  3505. * color.c, slint.c: support transparent background if user use
  3506. 'default' keyword for background color.
  3507. Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3508. * configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
  3509. MCCPPFLAGS. The last one contains references to variables which are
  3510. not available in every Makefile.in (namely intl/Makefile.in). Without
  3511. the split `-I ' was passed to the compiler (the compiler on DU 4.0
  3512. interprets -I as "don't search include files in /usr/include").
  3513. Thu Oct 22 20:41:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3514. * configure.in (subshell): Don't define inline to be empty
  3515. when compiling with non-gcc compiler. AC_C_INLINE (invoked in
  3516. AM_GETTEXT_GNU) already defines inline if necessary.
  3517. Thu Oct 22 20:41:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3518. * panelize.c (do_external_panelize): Not zeroing some fields
  3519. in cpanel led sometimes to segfaults.
  3520. Thu Oct 22 20:31:17 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3521. * lib/mc.ext.in: *.jar and *.JAR treated like *.zip and *.ZIP
  3522. Fri Oct 16 12:10:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  3523. * cmd.c (quick_chdir_cmd): you must check for return code of
  3524. do_cd(). (Fixed error for here, but more such bugs are present in
  3525. src/ tree. Or maybe move error checking into do_cd?)
  3526. * command.c: warn user if he is pressing enter while on non-local
  3527. filesystem. (Prev. behaviour was fail silently to do anything,
  3528. which is _bad_.)
  3529. Mon Oct 12 22:47:53 1998 Pavel Machek <pavel@bug.ucw.cz>
  3530. * file.c (copy_file_file): MCCTL_SETREMOTECOPY is no longer used
  3531. * file.c (copy_file_file): do_reget is now correctly done using
  3532. open()/lseek() pair
  3533. Wed Oct 7 22:20:37 1998 Pavel Machek <pavel@bug.ucw.cz>
  3534. * file.c: Ask user if (s)he wants to delete incomplete file
  3535. Sun Oct 11 20:21:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
  3536. * mfmt.c (main): When there are an even number of empty lines
  3537. between messages, all goes well, but when the number of empty
  3538. lines between messages is odd, the program fails.
  3539. Sun Oct 11 20:11:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3540. * setup.c: Option ftpfs_use_unix_list_options was saved from
  3541. and restored to the wrong variable (ftpfs_use_passive_connections).
  3542. Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3543. * screen.c (parse_display_format): Don't dereference NULL pointer
  3544. when format string is an empty string.
  3545. Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3546. * main.c (translate_url_to_new_syntax): Translate ftp:// to an
  3547. absolute path instead of a relative path (fix to "hotlist" bug
  3548. reported by Andrej). This means we drop the "return to last dir"
  3549. feature for ftpfs (when leaving ftpfs with ".." returns to the
  3550. directory visited before entering the ftpfs).
  3551. Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3552. * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
  3553. continuation)
  3554. Thu Oct 1 18:43:34 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3555. * file.c: Commented out search for egrep because execvp() does
  3556. it itself
  3557. * utilunix.c: vfs_uid should not be used if VFS is disabled
  3558. Tue Sep 29 17:53:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  3559. * main.c: removed stupid reference to {sfs,extfs}_which
  3560. * screen.c: fixed higlighting to go for longest match if it does
  3561. not find exact match. This is so that it works well with vfs (and
  3562. needs _NO_ knowledge about vfs layer).
  3563. Tue Sep 29 14:02:56 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  3564. * layout.c (print_vfs_message): fixed buffer overrun by
  3565. vsnprintf. Unfortunately I have no clue how to do this portably.
  3566. Tue Sep 29 11:42:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3567. * setup.c: Corrected code which prevents using icon view by
  3568. ports which don't support it
  3569. Mon Sep 28 21:55:13 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
  3570. * find.c: Changed hotkey of the continue-button (both Chdir and
  3571. Continue used `C').
  3572. * Makefile.in: search config.status in builddir and not in rootdir,
  3573. i.e. make it compile for builddir != srcdir
  3574. Wed Sep 23 14:06:44 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  3575. * src/file.c: Made file.c use new O_LINEAR mode (so copying from
  3576. ftp works nicely, again)
  3577. Fri Sep 18 14:15:43 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3578. * src/mad.c: All messages are sent to stderr and terminate with \r\n
  3579. * src/hotlist.c: Harmless memory leak fixed
  3580. * xv/Makefile.in, xv/xvmain.c, xv/xvscreen.c: Minor fixes to
  3581. make compilation of the XV port possible (currently without
  3582. viewer).
  3583. Thu Sep 17 07:32:23 1998 Norbert Warmuth <k3190@fh-sw.de>
  3584. * Makefile.in: After creating symlinks invoke another instance of
  3585. make to build libvfs.a. Otherwise make will not know how to build
  3586. the object files if symlinks have been created.
  3587. Added target cleansourcelinks (invoked with make distclean).
  3588. Tue Sep 15 22:41:24 1998 Paul Sheer <psheer@obsidian.co.za>
  3589. * edit.c, editwidget.c, gtkedit.c: fixed segfault when trying to
  3590. edit a non-file under gmc.
  3591. Tue Sep 15 21:52:00 1998 Norbert Warmuth <k3190@fh-sw.de>
  3592. * mc.hlp, doc/mc.1.in, doc/mc.sgml: updated my EMail address
  3593. Tue Sep 15 20:51:42 1998 Norbert Warmuth <k3190@fh-sw.de>
  3594. * setup.c: save and restore new global variable/option
  3595. ftp_use_unix_list_options
  3596. Tue Sep 15 01:02:34 1998 Paul Sheer <psheer@obsidian.co.za>
  3597. * gtkedit: Directory added. This directory contains all the editor
  3598. code modified to work with gnome. Mcedit now works properly under
  3599. gnome with a slightly reduced set of features.
  3600. * gscreen.c gscreen.h screen.c: Modified to respond to F4 on a file
  3601. and start the new gtkedit internal editor.
  3602. 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
  3603. * file.c (move_dir_dir): Fixed severe bug reported by Andrew Pechenov
  3604. <zx80@demo.ru> (losing files when moving directories cross filesystem
  3605. boundaries): make sure erase_list is emptied always not only when we
  3606. deleted files.
  3607. Sat Sep 12 02:59:43 1998 Timur Bakeyev <mc@bat.ru>
  3608. * screen.c: Xtry_to_select() Remove extfs hack to the main.c. Change
  3609. for() cycle to the x_basename() call (Thanks to Pavel Roskin).
  3610. Add (key_callback) do_enter() to prevent warnings.
  3611. * main.c: Rename cd_try_to_select() to the get_parent_dir_name(). Now
  3612. it process VFS postfixes too. Reduced number of loops against prev hack.
  3613. Fri Sep 11 15:27:59 1998 Pavel Machek <pavel@ucw.cz>
  3614. * screen.c: make cd .. from extfs file highlight it
  3615. Tue Sep 8 13:10:32 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3616. * autogen.sh: Don't destroy aclocal.m4 if "macros" directory
  3617. is missing
  3618. * layout.c: Use stdout instead of stderr in set_hintbar()
  3619. Mon Aug 31 12:40:29 1998 Pavel Machek <pavel@ucw.cz>
  3620. * cmd.c: added view_file_cmd which asks user which file to view -
  3621. _very_ usefull with vfs (now you can browse web with mc: try
  3622. /#url:http:||atrey.karlin.mff.cuni.cz|~pavel#uhtml)
  3623. Thu Aug 27 19:52:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3624. * Make.common.in: Don't define VERSION anymore
  3625. * configure.in: this is the right place for VERSION definition
  3626. * acconfig.h: does not include file "VERSION" anymore
  3627. * config.h.in: rebuilt by autoheader
  3628. * VERSION: removed from CVS and added to .cvsignore since it
  3629. is rebuilt every time as configure is run
  3630. 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
  3631. * mad.h: Include stdlib.h/malloc.h first, to prevent prototypes
  3632. from being clobbered by the subsequent macro defines.
  3633. Wed Aug 12 15:56:46 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3634. * edit.h: added "../" before some includes to avoid unnecessary
  3635. "-I" options for the PC port makefiles.
  3636. Sun Aug 9 22:39:12 1998 Janne Kukonlehto <jtklehto@paju.oulu.fi>
  3637. * mad.h (calloc): Added parentheses around the arguments as
  3638. suggested by Steef Boerrigter <sxmboer@sci.kun.nl>.
  3639. Fri Jul 31 09:04:35 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3640. * syntax.c: makefile* will be highlighted as Makefile*
  3641. 1998-07-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3642. * main.c (translated_mc_chdir): Quick hack to make the old
  3643. url-like pathnames to be used on the command line.
  3644. 1998-06-22 T.E.Dickey <dickey@clark.net>
  3645. * keyxdef.c: Fix for compiling with ncurses.
  3646. Fri Jul 24 00:44:37 1998 Tom Tromey <tromey@cygnus.com>
  3647. * mc-local.m4 (AC_STRUCT_LINGER): Moved into macros/linger.m4.
  3648. * autogen.sh: Include linger.m4 in aclocal.m4.
  3649. * Makefile.in (GNOME_M4_FILES): Include linger.m4.
  3650. Thu Jul 23 22:44:16 1998 Tom Tromey <tromey@cygnus.com>
  3651. * Makefile.in (aclocal.m4): Depend on all source files. Include
  3652. gnome-vfs.m4 and gnome-undelfs.m4.
  3653. (GNOME_M4_FILES): New macro.
  3654. * autogen.sh: Include gnome-vfs.m4 and gnome-undelfs.m4 in
  3655. aclocal.m4.
  3656. * configure.in: Use GNOME_VFS_CHECKS and GNOME_UNDELFS_CHECKS
  3657. macros instead of in-line checks. Create vfs/Makefile from
  3658. vfs/Make-mc.in.
  3659. Thu Jul 23 19:49:12 1998 Pavel Roskin <pavel_roskin@geocities.com>
  3660. * hotlist.c: corrected layout of the warning which appears
  3661. if ~/.mc doesn't exist. Appropriate changes in translations.
  3662. Wed Jul 15 00:41:01 1998 Paul Sheer <psheer@obsidian.co.za>
  3663. * edit.c, editwidget.c, * syntax.c: Syntax
  3664. editdraw.c, editmenu, editcmd.c: highlighting for Pascal
  3665. Added column text highlighting added.
  3666. and block movements.
  3667. 1998-07-04 Carsten Schaar <nhadcasc@fs-maphy.uni-hannover.de>
  3668. * main.c (main): 'session_management_setup' will be called after
  3669. 'gnome_init'.
  3670. Wed Jun 18 Pavel Machek <pavel@ucw.cz>
  3671. * i18n.h: we do not want i18n in case of compiling standalone
  3672. libvfs.so.
  3673. Fri Jun 5 23:34:20 1998 Timur I. Bakeyev <timur@comtat.kazan.ru>
  3674. * screen.c (file_entry_color): take care about BSD core dumps
  3675. which have names program.core instead of core
  3676. Mon Jun 1 15:41:20 1998 Norbert Warmuth <k3190@fh-sw.de>
  3677. * main.c (translate_url_to_new_syntax): translate the common
  3678. ftp url syntax to the syntax used by the new vfs code.
  3679. (_do_panel_cd): First translate the path if necessary. This makes
  3680. it possible to enter ftp://host on the commandline and in the
  3681. directory hotlist. We might need to move the translation code
  3682. to the vfs layer if there are other places where we want to enter
  3683. ftp://host.
  3684. Mon Jun 1 12:33:08 1998 Alexander V. Lukyanov <lav@yars.free.net>
  3685. * configure.in: allowed to use `configure --with-included-gettext'
  3686. on systems (like solaris) that have their own libintl
  3687. 1998-05-31 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3688. * complete.c (filename_completion_function): Use the vfs routines
  3689. for name completion.
  3690. 1998-05-31 Jakub Jelinek <jj@ultra.linux.cz>
  3691. * complete.c (complete_engine): Fix completions.
  3692. Sun May 31 10:23:01 1998 Norbert Warmuth <k3190@fh-sw.de>
  3693. * key.c (define_sequence): If a sequence clashes the last
  3694. definition made will be used. This makes it possible to override
  3695. wrong definitions in terminfo/termcap database with learn keys (or
  3696. the appropriate entries in mc.lib and ~/.mc/ini).
  3697. * widget.c (show_hist): Don't display the listbox partly
  3698. off screen (the left panel's history started in column - 2).
  3699. * keyxdef.c: include tty.h instead of myslang.h as suggested by
  3700. Tamasi Gyorgy <gt_cosy@usa.net>
  3701. Fri May 29 15:41:19 1998 Alexander V. Lukyanov <lav@yars.free.net>
  3702. * widget.c (update_input): this patch allows entering 8-bit
  3703. characters in input fields without screwing attributes. (the
  3704. same old sign extension...)
  3705. Wed May 27 22:23:48 1998 Ed Cogburn <ecogburn@greene.xtn.net>
  3706. * lib/xterm.ti: The 'xterm-color' definition needs 'sgr0'. The tic
  3707. program from ncurses 4.2 doesn't like the xterm.ti file that comes
  3708. with mc.
  3709. Wed May 27 15:29:01 1998 Alexander V. Lukyanov <lav@yars.free.net>
  3710. * key.c (get_key_code): characters with high bit set were input
  3711. as 0x80 char when use_8th_bit_as_meta was set
  3712. 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3713. * ext.h (MC_USER_EXT): New name for the per-user extension file
  3714. (this needs redoing to concatenate this + the system stuff instead
  3715. of the overwrite stuff we have now). Now it is called the ~/.mc/ext-n
  3716. Mon May 25 23:32:35 1998 Norbert Warmuth <k3190@fh-sw.de>
  3717. * editdraw.c (print_to_widget): Ifdef'd SLang specific code in order
  3718. to make it compile with ncurses. Syntax highlighting in the
  3719. internal editor is already disabled when SLang isn't used.
  3720. 1998-05-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3721. * widget.c (port_region_marked_for_delete): New per-port
  3722. piece of code: Provides a way for good selection killing.
  3723. Sun May 24 02:45:03 1998 Norbert Warmuth <k3190@fh-sw.de>
  3724. * utilunix.c, util.h (errno_dir_not_empty): deleted
  3725. Sat May 23 22:29:57 1998 Norbert Warmuth <k3190@fh-sw.de>
  3726. * file.c (check_dir_is_empty): New function which takes a path and
  3727. returns -1 on error, 1 if there are no entries besides "." and
  3728. ".." in the directory path points to, 0 else. This function
  3729. actually opens and reads the directory and doesn't do tricks we
  3730. used to do with rmdir.
  3731. * file.c (erase_dir, erase_dir_iff_empty): Use check_dir_is_empty
  3732. to detect non empty directories. The old code tried to remove the
  3733. directory and decided on errno whether the failure of rmdir was
  3734. caused by a non empty directory or whether there was a different
  3735. error.
  3736. Unfortunatly not every filesystem sets errno to EDIRNOTEMPTY if
  3737. you try to delete a non empty directory. Namely the linux user
  3738. space nfs server sets errno to EIO, Suns nfs server sets it to
  3739. EEXIST and the AIX nfs server sets it to ??? (Steve reported
  3740. problems on AIX so I guess AIX sets errno to a value we currently
  3741. don't check).
  3742. 1998-maj-18 Tamasi Gyorgy (gt_cosy@usa.net)
  3743. * lib/mc.menu: 'Z' on 'tar.Z' and 'tar.z' files: '%f' -> '$1'.
  3744. * lib/mc.ext.in.qnx.diff, lib/mc.menu.qnx.diff (QNX): modified
  3745. 'mc.ext.in' (tar -t: output to stderr); modified 'mc.menu' (tar is
  3746. not GNU tar: doesn't know '-z'); support for '*.tar.F':
  3747. 'freeze'-compressed tar files [No automatic configure/install
  3748. implemented: patches must be applied before running 'configure'
  3749. (mc.ext.in.qnx.diff: this patch can be not only QNX-specific...)]
  3750. * lib/Makefile.in: 'mc.ext.in.qnx.diff' and 'mc.menu.qnx.diff' added
  3751. to DISTLIB.
  3752. * slang/sldisply.c:
  3753. SLTT_TRANSP_ACS_PATCH dependant code:
  3754. The problem: some terminals (QNX/qansi*, SCO OS5/ansi [?]) map the
  3755. whole upper half of the ASCII table to the lower half, when
  3756. alt-char-set is activated with the smacs/as string-sequence. This
  3757. means, that if 0 <= ch < 128 written to the terminal, it will be
  3758. translated to (ch+128) automatically by the terminal: so not only
  3759. the line-drawing characters can be written, when the alt-char-set
  3760. is activated. It implicitly means, that space, NL, CR, etc.
  3761. characters (exactly: anything besides the "standard" line drawing
  3762. characters) can not be written directly to the terminal, when the
  3763. alt-char-set is activated, because writing these characters
  3764. doesn't cause an implicit/temporary switching-back to the standard
  3765. char-set!
  3766. The original code in SLang assumes that space, NL, CR, etc. can be
  3767. printed when alt-char-set is activated. If SLTT_TRANSP_ACS_PATCH
  3768. is defined, the modified code will not use this assumption.
  3769. [Remark: the patch-code is not the most exact solution, but
  3770. works...]
  3771. QNX_QANSI_SLANG_COMPAT_ACS_PATCH dependant code:
  3772. A more OS/terminal-specific solution for the problem mentioned
  3773. above (->SLTT_TRANSP_ACS_PATCH).
  3774. If QNX_QANSI_SLANG_COMPAT_ACS is defined, the default smacs/sa,
  3775. rmacs/ae, acsc/ac [and sgr/sa, if it would be used!] command
  3776. sequences will be replaced internally with the "old style"
  3777. (pre-QNX 4.23) sequences in case of QNX/qansi terminals. Using
  3778. these optional command sequences the terminal remains compatible
  3779. with the original SLang code (without using the workaround-code
  3780. enabled by defining SLTT_TRANSP_ACS_PATCH).
  3781. Remark:
  3782. Currently SLTT_TRANSP_ACS_PATCH is not auto-configured by
  3783. 'configure'. (Must be manually defined...)
  3784. There is some (QNX-specific) auto-configuration hand-coded in the
  3785. source:
  3786. #ifdef SLTT_TRANSP_ACS_PATCH
  3787. # if defined(__QNX__) && defined(QNX_QANSI_SLANG_COMPAT_ACS)
  3788. # undef SLTT_TRANSP_ACS_PATCH
  3789. # endif
  3790. #else
  3791. # if defined(__QNX__) && !defined(QNX_QANSI_SLANG_COMPAT_ACS)
  3792. # define QNX_QANSI_SLANG_COMPAT_ACS 1
  3793. # endif
  3794. #endif
  3795. * slang/slutty.c: "newtty.c_iflag &= ~(ECHO | INLCR | ICRNL);"
  3796. ECHO(0x08) is a c_lflag bit, it means PARMRK(0x08) in c_iflag. (!?!)
  3797. * src/file.c: 'do_reget' can be extern if (USE_VFS && USE_NETCODE),
  3798. not if (USE_VFS).
  3799. * src/find.c (search_content()): Variable 'i' "must be" 'int', not
  3800. 'char'. ["i == -1": (buggy?) WCC 10.6 doesn't convert automatically
  3801. (int)(-1) to (char)(-1) (GCC does), so "comparison result always 0"
  3802. warning produced. It is cleaner to define 'i' as 'int', than cast
  3803. '-1' to 'char', because 'read()' returns 'int'.]
  3804. * src/key.c (init_key()): Call load_xtra_key_defines() and clear
  3805. 'use_8th_bit_as_meta' by default under QNX, if a 'qnx*' terminal
  3806. detected. (A saved config file (mc.ini) can override it later...)
  3807. * src/key.h: Declare load_xtra_key_defines().
  3808. * src/keyxdef.c: Provides a method to define some platform-specific
  3809. additional key mappings. (e.g. QNX terminals can handle most of
  3810. META-? combinations as ALT-?...) ('keyxdef.c' currently not listed
  3811. in doc/FILES...)
  3812. * src/layout.c: TIOCGWINSZ must be available (so <sys/ioctl.h> (?)
  3813. included), because window-resizing code doesn't work, if not defined.
  3814. * src/main.c: 'print_usage()' is reserved name in the QNX run-time
  3815. library, so 'print_usage()' renamed to 'print_mc_usage()'
  3816. * src/mouse.c (QNX): ncurses 1.9.8a ported to QNX doesn't provide the
  3817. 'SP' pointer as a global symbol in the library, so the keyok()
  3818. emulation currently can not be used under QNX (4.24 & Watcom C 10.6
  3819. release version).
  3820. * src/slint.c (QNX): 'qansi*' terminals added to the color_terminals[]
  3821. list.
  3822. * src/subshell.c, src/utilunix.c (QNX): include <unix.h> to get
  3823. prototype for exec*()!!! [See README.QNX/Section 1.4 about the
  3824. dangerous "No prototype for <function>" warnings emitted by Watcom C,
  3825. if <function> is a 'printf()'-style function having variable number
  3826. of arguments and you compile your source with the default register
  3827. calling convention!!!]
  3828. * Makefile.in: 'keyxdef' module added to SRCS and OBJS.
  3829. * <mc-root>/README.QNX: QNX-specific notes.
  3830. * <mc-root>/configure (line 3369), <mc-root>/configure.in (line 88):
  3831. 'test x$CCOPTS = x;' modified to 'test "x$CCOPTS" = x;'
  3832. * <mc-root>/Makefile.in: README.QNX added to DISTMAIN.
  3833. Thu May 21 00:09:45 1998 Norbert Warmuth <k3190@fh-sw.de>
  3834. * menu.c (menubar_event): Don't set menubar->selected to the
  3835. invalid value -1. Fix for the bug reported by root@liepa.soften.ktu.lt
  3836. * menu.c (menubar_drop_compute): removed the check for inrange
  3837. items which isn't necessary any longer.
  3838. Wed May 20 16:27:56 1998 Norbert Warmuth <k3190@fh-sw.de>
  3839. * widget.c (history_put): input line history was defunct because
  3840. there was an #ifndef where an #ifdef should be.
  3841. Btw. PORT_WIDGET_WANTS_HISTORY seems incomplete because a lot of
  3842. history code is included even when this define is undefined.
  3843. 1998-05-19 Tamasi Gyorgy <gt_cosy@usa.net>
  3844. * src/*: Until I get a better ChangeLog: Tamasi's port of the
  3845. code to QNX.
  3846. 1998-05-19 Alexander Lukyanov <lav@yars.free.net>
  3847. * Makefile.in: Distirbution fix so that people are not forced to
  3848. install gettext.
  3849. 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3850. * ext.c: Memory leak fixed.
  3851. Mon May 18 22:24:09 1998 Norbert Warmuth <k3190@fh-sw.de>
  3852. * lib/mc.ini.in: s/reges/regex/
  3853. * main.c (process_args): return void, the return value was only
  3854. used once but wrong (-h displayed help twice).
  3855. (handle_args): -h: don't display help twice
  3856. (print_usage): Don't print program name and version, that's
  3857. already done by version(0).
  3858. * menu.c (menubar_paint_idx): Highlight Hotkeys also on slow
  3859. terminals (hotkeys were not displayed at all).
  3860. 1998-05-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3861. * menu.c (menubar_drop_compute): Check for inrange items.
  3862. 1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3863. * color.c (init_colors): Provide X-only version of color
  3864. initialization.
  3865. Thu May 14 01:56:11 1998 Norbert Warmuth <k3190@fh-sw.de>
  3866. * configure.in: Don't add -lintl to LIBS when included gettext is
  3867. used (further checks for libraries would fail because libintl.a
  3868. isn't build, yet). Instead use and substitute LINTL.
  3869. * Makefile.in (OURLIBS): add @LINTL@
  3870. Tue May 12 17:45:49 1998 <psheer@obsidian.co.za>
  3871. * syntax.c: yet more minor modifications.
  3872. 1998-05-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3873. * main.c: New default: auto-save setup.
  3874. * screen.c (move_right, move_left): Add support for icon-view movement.
  3875. 1998-05-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3876. * setup.c (panel_load_setup): On non-icon editions, fall back to
  3877. list_full
  3878. Sun May 10 13:27:50 1998 Norbert Warmuth <k3190@fh-sw.de>
  3879. * widget.c (handle_char): Don't try to to delete default text in
  3880. input widget more than once. Right after MC's start copy_filename
  3881. (ESC Enter) failed because a flag wasn't cleared while characters
  3882. were stuffed into the commandline (Andrej reported this bug).
  3883. * main.c (copy_readlink): usr mc_readlink instead of readlink
  3884. * file.c: Changed default for the copy/move option "dive into
  3885. subdir if exists" to off (note: this was only possible after the
  3886. change in setup.c).
  3887. (copy_dir_dir): Activated the previously uncommented code which
  3888. implements "Dive into subdirs". Even when there's no case where we
  3889. actually would like that behaviour it is a documented feature.
  3890. Though I don't wanted to change the default behavour. Hence the
  3891. option change.
  3892. (file_mask_defaults): set dive_into_subdirs
  3893. (file_mask_dialog): Fix for debian Bug #20727: Move operation with
  3894. "[ ] Dive into subdir if exists" and destination filename not
  3895. wildcarded. If destination is an existing directory then files
  3896. will be moved into this directory. If destination is not an
  3897. existing directory then src file will be renamed (one file
  3898. selected) or an error will be displayed (more than one file
  3899. selected).
  3900. (file_mask_dialog): made the option "Using shell patterns" local
  3901. to the current copy/move operation, i.e. this option is always
  3902. initialized with the global options's value. Previously it affected
  3903. the global Options/Configuration/shell Patterns.
  3904. Another possiblilty would be to make the global option a default
  3905. option on startup and keep changes in the copy/move dialog
  3906. (without saving these changes with save setup).
  3907. * setup.c: Don't save and load options which can be changed
  3908. outside the options menu. For example I don't like that
  3909. preserve_uid_gid and dive_into_subdirs from the copy/move dialog
  3910. are saved and restored (strange, what about the other options from
  3911. this dialog?).
  3912. It would be much cleaner to make these option read-only. This way
  3913. one could edit ~/.mc/ini to provide default option setting on
  3914. startup and "Save setup" wouldn't have side effects outside the
  3915. option's menu.
  3916. Sun May 10 13:24:20 1998 Norbert Warmuth <k3190@fh-sw.de>
  3917. * doc/mc.1.in, doc/mc.sgml, mc.hlp: Updated to reflect new default
  3918. for dive into subdirs.
  3919. Sun May 10 13:21:45 1998 Norbert Warmuth <k3190@fh-sw.de>
  3920. * edit/syntax.c: Disable debug messages on stderr.
  3921. * edit/edit.h: Added missing _()
  3922. 1998-05-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3923. * layout.c (flag_winch): Propagate the window change to the slave
  3924. pty even when not running our event loop. The resize_subshell
  3925. routine is thread safe.
  3926. * dlg.c (update_cursor, dlg_broadcast_msg_to): Do not send
  3927. messages if no widgets are on the Dlg_head, this happens now with
  3928. the gmc code, as we can have all of the windows shut down.
  3929. Wed May 6 13:46:37 1998 Paul Sheer <psheer@obsidian.co.za>
  3930. * syntax.c: more bug fixes.
  3931. 1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3932. * view.c (view_quit_cmd): Use dlg_stop.
  3933. * main.c (ctl_x_cmd): Implement ctl-x handling as a state of the
  3934. key press events. Drop the usage of mi_getch to acomplish this
  3935. task.
  3936. (midnight_callback): Deal with the current map depending on the
  3937. c-x state.
  3938. Mon May 4 10:21:31 1998 Norbert Warmuth <k3190@fh-sw.de>
  3939. * background.c (message_1s1d): the unprocessed string with %d was
  3940. passed to message_1s; fixed small memory leak
  3941. * widget.c (button_callback): WIDGET_CURSOR: make cursor position
  3942. dependend from button type (fixes the off by one bug in advanced
  3943. changeown).
  3944. * file.c (copy_file_file): Schedule deletion of short target file
  3945. only when we created or truncated the target file and not already
  3946. when we decided to overwrite an existing file.
  3947. 1998-05-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3948. * boxes.c (task_cb): Use kill, not INT, as we are catching INT in
  3949. the program.
  3950. Sat May 2 14:07:05 1998 Paul Sheer <psheer@obsidian.co.za>
  3951. * setup.c: ALT('H') now shows a directory history - that
  3952. ESC SHIFT-h or ALT-SHIFT-h
  3953. Fri May 1 17:45:58 1998 Paul Sheer <psheer@obsidian.co.za>
  3954. * syntax.c: initial support for LaTeX 2.09 files added,
  3955. * syntax.c: some minor bug fixes. and reorganisation
  3956. of context and keyword priorities.
  3957. Fri May 1 11:24:21 1998 Paul Sheer <psheer@obsidian.co.za>
  3958. * syntax.c: syntax highlighting segfaults when editing a binary
  3959. file - now fixed.
  3960. Thu Apr 30 12:23:50 1998 Alex Tkachenko <alex@bcs.zp.ua>
  3961. * src/file.c: lot of i18n of file Copy/Move/Delete operations. Maintainers
  3962. of message catalogs please notice introduced op_names1 and formats for
  3963. file operations.
  3964. * src/boxes.c: i18n of background jobs control and quick cd
  3965. dialog boxes.
  3966. * src/menu.c (menubar_arrange): resizing of menubar upon changes of
  3967. window size is now controlled by preprocessor symbol RESIZABLE_MENUBAR
  3968. (now it's off by default, as requested in mailing list). If it is off,
  3969. menubar items are separated with fixed number of spaces (3).
  3970. * src/layout.c, edit/editwidget.c: calls to menubar_arrange ifdef'ed
  3971. 1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3972. * main.c (parse_an_arg): GNOME edition keeps track of various
  3973. --geometry and various directories passed.
  3974. 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
  3975. * main.c (update_panels): Great API simplification. update_panels
  3976. only cares about the contents of the current panel, every other
  3977. panel keeps the current selection (this was the behaviour
  3978. anyways).
  3979. update_panels can be provided in a per-port fashion as well.
  3980. Wed Apr 29 03:06:09 1998 Paul Sheer <psheer@obsidian.co.za>
  3981. * syntax.c: some optimisations, as well as support for
  3982. syntax highlighting of Makefiles and ChangeLog files.
  3983. Fixed some syntax highlighting bugs. All C and C++
  3984. keywords added.
  3985. Tue Apr 28 06:11:08 1998 Norbert Warmuth <k3190@fh-sw.de>
  3986. * view.c (toggle_wrap_mode, toggle_hex_mode): Force recalculation
  3987. of bottom_first (we mustn't use an already calculated and cached
  3988. value because it is invalid for the new mode and the End key would
  3989. not move to the end of the file).
  3990. * configure.in: Renamed the option `--with-our-slang' to
  3991. `--with-included-slang' (this one looks better because we also
  3992. have an `--with-included-gettext').
  3993. Make the option `--with-ext2undel' recognice a given path.
  3994. * cmd.c (view_file_at_line): In plain view (F13) set the default
  3995. magic flag to zero in order to view the file content unprocessed
  3996. (esp. don't uncompress files if they are compressed). The
  3997. view_simple_cmd got broken when the default magic flag in view.c
  3998. was changed from 0 to 1.
  3999. * view.c (do_view_init, goto_line): Set wrap mode temporary off
  4000. to make goto line number work, i.e. `line number' now always means
  4001. line number in file and not line number on screen (in wrap mode
  4002. one long line wrapped once is displayed in two lines on the screen).
  4003. That's important when the viewer is invoked from the find file
  4004. dialog to display even in wrap mode approxiamtly the part of the
  4005. file where we found the content we searched for.
  4006. (move_forward2): In wrap mode lines were sometimes counted wrong
  4007. causing cursor up to move more than one line.
  4008. (move_backward2): Fixed the movement in wrap mode.
  4009. (change_viewer): Always re-init viewer when we have a filename,
  4010. i. e. if the viewer is invoked with simple_view_cmd then we can switch
  4011. with the F8 key between unprocessed file content und uncompressed
  4012. file content.
  4013. (view_init): re-init view also when magic flag was altered
  4014. 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4015. * screen.c (is_a_panel): Added a routine to determine if a widget
  4016. is a panel.
  4017. 1998-04-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4018. * screen.c (file_entry_color): Check if fe->fname has something.
  4019. Sun Apr 26 00:21:12 1998 Norbert Warmuth <k3190@fh-sw.de>
  4020. * slint.c: Applied the patch from Bill Nottingham <wen1@cec.wustl.edu>
  4021. to make it link against SLang >=1.0.
  4022. I reviewed the diffs to the part of SLang we use and there are no
  4023. further changes to MC necessary (one function's return value
  4024. changed it's meaning but we don't use this return value).
  4025. * configure.in: Undone the change which prevented linkage against
  4026. SLang >=1.0
  4027. Sat Apr 25 13:41:43 1998 Paul Sheer <psheer@obsidian.co.za>
  4028. * edit.h, syntax.h: some optimisations to improve syntax
  4029. highlighting speed.
  4030. 1998-04-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4031. * color.h: Move the CTYPE definition
  4032. Fri Apr 24 16:43:25 1998 Paul Sheer <psheer@obsidian.co.za>
  4033. * main.h, setup.c: editor_syntax_highlighting option added
  4034. for ini file.
  4035. Fri Apr 24 14:54:06 1998 Paul Sheer <psheer@obsidian.co.za>
  4036. * syntax.c: added. this files reads ~/.cedit/mcsyntax and
  4037. processes generic rules for syntax highlighting of different
  4038. file types. Syntax highlighting does not store an attribute byte
  4039. for each byte of the edit buffer. Rather, it calculates colours
  4040. on the fly, with an optimised algorithm, as the text is being
  4041. rendered.
  4042. * edit.c, edit.h, editwidget.c, editdraw.c: changes to facilitate
  4043. syntax highlighting.
  4044. * editoptions.c: dialog box updated with a syntax highlighting
  4045. checkbox.
  4046. * slint.c: new function alloc_color_pair(). This allocates a new
  4047. color index. init_pair() itself now records the last colour index
  4048. so that colours can be added on to the end of the colour list
  4049. with alloc_color_pair().
  4050. * slint.c: new function try_alloc_color_pair() returns a new index
  4051. for a color with named fg and bg. Checks if that named colour
  4052. already exists before setting a new index.
  4053. 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4054. * user.c (execute_menu_command): Create temporary file exclusively
  4055. as well.
  4056. * main.c (do_execute), utilunix.c (my_system), gutil.c, ext.c:
  4057. Changed the way we execute programs. Now a new set of flags exist
  4058. that indicates how the execution is done. In ports that execute
  4059. by sending the process to background, when executing temporary
  4060. files, we have to remove the files after the child process has
  4061. finished executing the code not after the calling do_execute.
  4062. * ext.c (exec_extension): Create temporary file exclusively.
  4063. Mon Apr 20 01:32:20 1998 Norbert Warmuth <k3190@fh-sw.de>
  4064. * configure.in: Don't try to link MC against SLang >= 1.0. I will
  4065. remove this restriction when I'm sure that it's save to use the new
  4066. version (the documentation to SLang mentions some changes of
  4067. return values).
  4068. 1998-04-16 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4069. * file.h: Added prototype for copy_dir_dir.
  4070. * file.c (real_do_file_error): use the proper flags, this is not a
  4071. D_INSERT dialog box, for what it is worth. Important bug fix.
  4072. * utilunix.c (get_owner): Declare.
  4073. * widget.h: Added various missing prototypes for the X edition.
  4074. * view.h: Added various missing prototypes for the X edition.
  4075. * widget.c (x_radio_toggle): New per-port variable: PORT_HAS_RADIO_TOGGLE
  4076. 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4077. * screen.c (GT): Assign two spaces for the minimum size of the
  4078. "type" field for the GNOME edition. This gives some extra space
  4079. for the icon that gets displayed.
  4080. * dlg.c (remove_widget): New function: used to remove a widget
  4081. from an existing Dlg_head;
  4082. (destroy_widget): Destroy a specific Widget.
  4083. (add_widgetl): Extended to deal with the fact that a running
  4084. Dlg_head can become empty.
  4085. * panelize.c (l_call): Update the input line every time the user
  4086. selects the entry with the mouse (pretty common in the gnome
  4087. edition).
  4088. * hotlist.c (add_new_group_input): Removed an extra field that was
  4089. causing problems.
  4090. * find.c (find_parameters): Tree button is gone for gnome until we
  4091. get the tree function working on gnome.
  4092. * cmd.c (save_setup_cmd): Per Elliot's suggestion, do not pop up a
  4093. dialog box to inform the user about the saved setup.
  4094. 1998-04-15 Pavel Machek <pavel@elf.ucw.cz>
  4095. * cmd.c: Report failed chdir attempts.
  4096. Wed Apr 15 10:48:41 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4097. * src/hotlist.c: changes to hotlist boxes i18n.
  4098. * src/panelize.c: changes to panelize boxes i18n.
  4099. * src/wtools.c (query_dialog): Take care about possible '&' in
  4100. button names while calculating window sizes and button positions.
  4101. 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4102. * screen.c (string_file_nlinks): The buffer was too small and we
  4103. were overwriting parts of it.
  4104. * subshell.c (do_subshell_chdir): Memory leak fix.
  4105. * find.c (do_search): Do not use undefined order of evaluation.
  4106. * user.c: Do not use undefined order of evaluation.
  4107. * dlg.c (init_dlg): Do init the default return value.
  4108. Sun Apr 12 03:09:17 1998 Norbert Warmuth <k3190@fh-sw.de>
  4109. * cmd.c (view_other_cmd): #ifdef'd application_keypad_mode and
  4110. numeric_keypad_mode (don't include it in non text editions)
  4111. Sun Apr 12 02:48:26 1998 Norbert Warmuth <k3190@fh-sw.de>
  4112. * xv/xvscreen.c: removed duplicate (conflicting) definition
  4113. of do_enter()
  4114. Sun Apr 12 02:24:57 1998 Norbert Warmuth <k3190@fh-sw.de>
  4115. * text.c (edition_post_exec), cmd.c (view_other_cmd): Don't change
  4116. the keypad mode when we don't use the alternate plus minus. Pavel
  4117. forgot an if-clause when he replaced the escape sequences (or
  4118. another point of view: I forgot one if-clause at different place).
  4119. Fri Apr 10 17:35:23 1998 Philippe De Muyter <phdm@macqel.be>
  4120. * configure.in (AC_NCURSES): When checking for library location,
  4121. put -L option before -l option, not after.
  4122. Fri Apr 10 10:35:06 1998 Norbert Warmuth <k3190@fh-sw.de>
  4123. * file.c (file_mask_dialog): When the shell patterns option was
  4124. off source_mask was freed twice.
  4125. 1998-04-10 Marc Ewing <marc@redhat.com>
  4126. * panel.h: added up_b
  4127. 1998-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4128. * widget.c (update_input): Set the used flag early in update_input
  4129. to allow X widget to catch the right value
  4130. * screen.c (do_enter): Return the status for the operation.
  4131. * main.c (main): Sigh. This was hard. I added support for argp.
  4132. Right now we support both argp for the GNOME edition and popt for
  4133. the other editions. I will remove popt support in the future and
  4134. only keep argp.
  4135. * dlg.c (add_widgetl): Adding widgets to an already running dialog
  4136. had some flaws. Fix this.
  4137. Wed Apr 8 11:15:29 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4138. * src/find.c: changes to find_parameters/find_file i18n.
  4139. * src/widget.c: new function introduced, button_scan_hotkey();
  4140. button_new() and button_set_text() fixed to use mentioned function.
  4141. * src/key.[ch], src/dlg.c: changes to make recognition of ESC char as
  4142. ALT(c) possible for 8-bit chars. (By replacing 'A'/'Z' comparisons with
  4143. call to isalpha() in the way proposed by Norbert).
  4144. * src/boxes.c: changes to display box i18n
  4145. * src/learn.c: changes to learn key dialog i18n
  4146. 1998-04-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4147. * main.c (update_one_panel_widget): New routine: Updates a panel
  4148. based on the widget, not the index. Used by the GUI versions.
  4149. * find.c (find_file): Cancel idle tasks before we destroy the find
  4150. dialog.
  4151. * dlg.c (destroy_dlg): Call x_destroy_dlg_start, a new hook that
  4152. is invoked to allow the frontend code to prepare for dialog
  4153. destruction. Only the Gnome edition is using this: it uses this
  4154. to hide the dialog and avoid flickering.
  4155. * main.c: dtterm also has mouse support.
  4156. 1998-04-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4157. * wtools.c (quick_callback): Process DLG_KEY events on X.
  4158. * utilunix.c (max_open_files): new routine; Used to figure out
  4159. the number of available file descriptors.
  4160. Sat Apr 4 00:16:49 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4161. * src/layout.c: changes to layout dialog box i18n
  4162. * src/option.c: changes to configure box i18n
  4163. * src/cmd.c: added N_() macro for machine_str
  4164. * src/wtools.c (real_input_dialog_help): ok/cancel buttons are places
  4165. symmetrically spaced relatively to center of the box. It produces
  4166. nicer appearance with i18n (IMO :)
  4167. * src/boxes.c (confirm_box): i18n stuff added.
  4168. Mon Apr 6 07:48:22 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4169. * Makefile.in: "make dist" works with bash 1.x again
  4170. Fri Apr 3 05:23:20 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4171. * configure.in: ALL_LINGUAS test added, to allow specify list
  4172. of languages to be installed by setting env variable before
  4173. configure. If it is empty, it defaults to full list.
  4174. * src/menu.h menu_entry.{hot_pos, is_dupped} dropped
  4175. * src/menu.c: consistency fixes: pull-down menu items are now
  4176. accessible either with arrow keys or with hotkeys, denoted with &
  4177. (and highlighted). (key combinations, placed to the right of items
  4178. intended to be used from outside the menus). Freeing menu entries
  4179. removed as it no longer needed
  4180. * src/main.c, edit/editmenu.c: menubar init code is changed to conform
  4181. above fixes.
  4182. * edit/edit.h: use of "Cancel" in error_dialogs replaced with
  4183. "Dismiss", to avoid collisions in translation of "Cancel" in other
  4184. places with this case.
  4185. * src/boxes.c: select_format() and it's support removed, as it is
  4186. obsoleted by input line history feature. display_init()/display_callback
  4187. fixed to suite i18n changes. sort_box() - alike.
  4188. * src/option.c: pause_options added &'s and gettext calls to expand
  4189. statically assigned values.
  4190. * src/widget.c: (radio_callback) hotkey recognition is changed to
  4191. &-notation, rather than simple uppercase.
  4192. * src/dlg.c: (dlg_try_hotkey) plain symbol comparison replaced with
  4193. call to isalpha(), this fixes errorneous exit from input line, when
  4194. button hotkey is 8-bit NLS char.
  4195. Fri Apr 3 12:23:28 1998 Norbert Warmuth <k3190@fh-sw.de>
  4196. * TODO: Removed obsolete entries: Similar entries in tree view
  4197. are displayed correct; user specific files has been moved
  4198. to ~/.mc/
  4199. Added: Check what to do with menubar_arrange/destroy_menu stubs
  4200. in tk/tkmenu.c; the interal editor (not portet yet) adds entries
  4201. to the wrong menubar
  4202. Wed Apr 1 00:15:30 1998 Norbert Warmuth <k3190@fh-sw.de>
  4203. * key.c, key.h (numeric_keypad_mode, application_keypad_mode): New
  4204. functions which encapsulate two hardcoded escape sequences from main.c.
  4205. * main.c (main): Use the two new functions from key.c
  4206. * main.c, screen.c: Moved all file selection keys from the default
  4207. keymap to the keymap for panels in listing mode.
  4208. Changed *_selection_cmd to *_selection_cmd_panel in panel_keymap
  4209. (functions in panel_keymap get a WPanel * as first parameter,
  4210. i.e. the indirection with cpanel isn't necessary).
  4211. * main.c (midnight_callback): Keys '*' and '-' were not treated
  4212. when only_leading_plus_minus==0;
  4213. Optimized the if-clauses a little bit (i.e. removed duplicate
  4214. checks). More optimation is possible but it would make the whole
  4215. stuff completly unreadable.
  4216. * key.c (correct_key_code): KP_ADD, KP_SUBTRACT and KP_MULTIPLY
  4217. will be translated to +, - and * only if the option
  4218. alternate_plus_minus is turned off.
  4219. * learn.c (learn_keys): Turn alternate_plus_minus temporarily on
  4220. to avoid translation of KP_ADD, KP_SUBTRACT and KP_MULTIPLY in
  4221. correct_key_code/make sure keypad is in application mode (makes it
  4222. possible to learn this keys).
  4223. * cmd.c (reverse_selection_cmd_panel): New function (renamed from
  4224. reverse_selection_cmd, takes a WPanel * as parameter, references to
  4225. cpanel changed to panel/the passed parameter).
  4226. reverse_selection_cmd now simply calls this function with cpanel.
  4227. This pair was missing among the *_selection_cmd* functions.
  4228. * cmd.h: Added function prototypes.
  4229. 1998-03-31 Paul Sheer <psheer@obsidian.co.za>
  4230. * cmd.c (nice_cd): Forgot to invoke the history registration in
  4231. one spot.
  4232. 1998-03-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4233. * menu.c (destroy_menu): Implement destroy_menu for all of the
  4234. ports as a routine that frees the menu entries if
  4235. internationalization has been enabled.
  4236. * wtools.c (quick_dialog_skip): Do not i18n any string that is empty.
  4237. Sun Mar 29 23:02:09 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4238. * src/menu.[ch]: new member to menu_entry (hot_pos) introduced to make
  4239. internationalized version of menu use externally defined hotkeys
  4240. (denoted with preceding &). create_menu() fixed to load intl text of
  4241. the entries. Some fixes around menu.c to enable usage of reloaded
  4242. hotkeys.
  4243. * main.c, editmenu.c: menu initialization code fixed to conform new
  4244. menu structure. editmenu init code includes N_(..) now.
  4245. * menu.c, layout.c, editwidget.c: bar menu items displacement is made
  4246. dynamically upon initialization and window size changes. Mouse event
  4247. processing is fixed accordingly.
  4248. Sat Mar 28 13:18:36 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4249. * src/screen.c: (repaint_file) last patches to format_file() in the
  4250. same file broke appearance of panels in brief mode -- fixed.
  4251. Mon Mar 30 20:02:49 1998 Paul Sheer <psheer@obsidian.co.za>
  4252. * main.c, screen.c, dirhist.c, dirhist.h, main.h, widget.c,
  4253. main.h and others?: Directory history added. The previous
  4254. directory history code was removed. The directory history now
  4255. loads and saves using the same routines as the input widget. The
  4256. keys meta-y, and meta-u are used to go backward and forward
  4257. through the history. The buttons to the right and left of the
  4258. current directory display on the panel can be used as well. The
  4259. v button brings up a history, but no key is assigned to this.
  4260. Discussion as to correct color and shape of these buttons is
  4261. open. show_hist() in widget.c is made generic to be called for
  4262. any widget. Help pages still needed to be added for the
  4263. directory history.
  4264. Wed Mar 25 19:05:31 1998 Norbert Warmuth <k3190@fh-sw.de>
  4265. * view.c (view_done): Set monitor off before deleting the view
  4266. file dialog.
  4267. * subshell.c (init_subshell): Added ':q' to $cwd in the precmd for
  4268. tcsh. It preventes command and filename substitution (e.g. for
  4269. a directory named "[word] words")
  4270. Mon Mar 23 18:06:10 1998 Norbert Warmuth <k3190@fh-sw.de>
  4271. * main.c: Deleted some old and unused code
  4272. 1998-03-24 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4273. * All over the src/ directory: Internationalization changes.
  4274. * background.c: Avoid buffer over-runs and reduce number of
  4275. internationalization strings.
  4276. Mon Mar 23 14:04:07 1998 Philippe De Muyter <phdm@macqel.be>
  4277. * configure.in (nlink_t): Check it using AC_CHECK_TYPE.
  4278. * acconfig.h (nlink_t): New define slot.
  4279. Mon Mar 23 08:17:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4280. * src/main.c: mcedit can be named mce or mcedit.exe - only
  4281. 3 first letters are significant. The same for mcview.
  4282. Console is always saved in do_execute() if it was saved there.
  4283. * src/util.h: STRNOMP introduced (strncmp on unix and strnicmp
  4284. on OS2_NT)
  4285. * slang/slgetkey.c: SLang_getkey() and SLang_input_pending()
  4286. enabled for OS2_NT
  4287. * myslang.h: using fast one_vline() and one_hline() for OS2_NT
  4288. Mon Mar 23 00:47:51 1998 Norbert Warmuth <k3190@fh-sw.de>
  4289. * autogen.sh: added support for builddir != srcdir
  4290. * doc/Makefile.in: The manual pages are generated files and
  4291. located in the builddir and not in the srcdir.
  4292. * find.c (find_file): Use the same hotkey for the panelize button
  4293. as we use with the external panelize command.
  4294. Fri Mar 20 17:51:01 1998 Norbert Warmuth <k3190@fh-sw.de>
  4295. * myslang.h: --with-ncurses didn't compile: renamed
  4296. KEY_BACKTAB to KEY_BTAB (the name ncurses uses)
  4297. * dlg.c (dlg_key_event): likewise
  4298. 1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4299. * screen.c: Remove KEY_DC forever. This should have never been
  4300. here.
  4301. Wed Mar 18 22:08:34 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4302. * achown.c (do_enter_key): call endgrent, endpwent.
  4303. * chown.c (init_chown): call endgrent, endpwent.
  4304. Tue Mar 17 23:58:40 1998 Pavel Machek <pavel@elf.ucw.cz>
  4305. * src/file.c: Fix for the case where the disk gets full.
  4306. Tue Mar 16 18:35:53 1998 Stas Maximov <stmax@u213.srcc.msu.su>
  4307. * src/hotlist.c default values for dialogs which add entries to hotlist
  4308. are now set to the current directory.
  4309. Tue Mar 10 14:42:01 1998 Stas Maximov <stmax@u213.srcc.msu.su>
  4310. * vfs/extfs.c, lib/mc.ext, vfs/extfs/extfs.ini, vfs/extfs/cpio.in
  4311. Added support for cpio extfs including compressed and gziped
  4312. cpio archives. compress and gzip handled separately because I saw
  4313. a lot of systems which have compress, but don't have gzip.
  4314. Sat Feb 21 16:46:49 1998 Stas Maximov <stmax@u213.srcc.msu.su>
  4315. * src/subshell.c: failed to grantpt on SVR4 due to zero-initialized
  4316. subshell_pid. sigaction handler for SIGCHLD does waitpid(subshell_pid,
  4317. ...) and when subshell_pid == 0 it steals the zombie from grantpt(3)
  4318. which does fork/exec/waitpid for suid program to set the permissions on
  4319. pty. It's enough to initialize it to 1 or -2.
  4320. 1998-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
  4321. * util.c (convert_pattern): Now the internal buffer is malloc()ed
  4322. instead of being static. This is required for long patterns.
  4323. (regexp_match): Free the pattern after calling convert_pattern().
  4324. * file.c (file_mask_dialog): Free the source_mask after calling
  4325. convert_pattern().
  4326. Mon Mar 16 13:03:45 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4327. * cmd.c: Internal edit is used by default. vi may be
  4328. confusing for some users.
  4329. * tree.c: tree_rmdir_cmd() should not return any value,
  4330. because it is not analyzed for errors.
  4331. * main.c: NT code: use O_BINARY instead of _O_BINARY
  4332. * util.c: DO not test for arguments that do not make sense under
  4333. Windows NT.
  4334. * file.c: utime.h always included for Windows NT port.
  4335. * view.c: Events are flushed only if the ports supports it.
  4336. Mon Mar 16 12:30:39 1998 Stas Maximov <stmax@u213.srcc.msu.su>
  4337. * hotlist.c: Defaults on the hotlist add-current and new-entry is
  4338. the current directory.
  4339. Sat Mar 14 17:30:21 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4340. * file.c (panel_operate): Why was the flags in query_dialog set to
  4341. D_INSERT is a big mistery. Should be fixed now.
  4342. Fri Mar 13 18:10:58 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4343. * dlg.c (dlg_stop): New routine used to finish dialog boxes.
  4344. * cmd.c (set_panel_filter_to): Implementation split. To be used
  4345. by GNOME.
  4346. * widget.c (input_new): GNOME-entry widget is inspired in the
  4347. WInput + the history patches from Paul. Use the GNOME-entry
  4348. history, as this makes it easier to deal with the filter button on
  4349. the panel.
  4350. * setup.c (save_panel_types): Do not use if running on the gnome
  4351. edition. This need a lot of fixing for making this work with
  4352. gnome and session management.
  4353. * main.c (do_nc): DO not call setup_panels_and_run_mc as
  4354. create_panels in gnome edition does all this.
  4355. (setup_mc): Skip part of the setup.
  4356. (do_execute): Do not Execute any of the pause code after
  4357. run for gnome.
  4358. Wed Mar 12 17:46:09 1998 Norbert Warmuth <k3190@fh-sw.de>
  4359. * screen.c (chdir_other_panel, chdir_to_readlink): Use passed
  4360. panel instead of cpanel (removed mixed use of panel and cpanel).
  4361. * main.c, screen.c: Deleted F13 from the default keymap, added F13
  4362. and F14 to the panel's keymap (the keymap for panels in listing
  4363. mode). These two keys are only useful for panels in listing mode.
  4364. It seems there are even more candidates for such a move. Especially
  4365. select_cmd and unselect_cmd which appeared recently for the GNOME
  4366. edition in screen.c act unexpected for panels in tree-mode.
  4367. * cmd.c (view_simple_cmd): Added WPanel* to the parameter list.
  4368. (edit_cmd_new): No need to get a panel because it is not used.
  4369. * panelize.c: Changed hotkey of the Panelize button (Alt-p is
  4370. already used by the input line history). I wonder if I should
  4371. change it in the find dialog, too (just to have a unique hotkey
  4372. for the panelize button).
  4373. Wed Mar 11 19:02:48 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4374. * view.c: Lots of changes: Split the X11 code from the main view
  4375. program. This is needed to cleanly support the addition of the
  4376. Gnome version of the file viewer;
  4377. New names for old functions (just a view_ prefix):
  4378. view_add_character, view_add_string, view_gotoyx, view_set_color,
  4379. view_display_clean. Now all of them take a WView argument (which
  4380. is ignored in the macro for the text edition). This is to support
  4381. multiple open views at once.
  4382. * boxes.c (symlink_dialog): Enable ok/cancel buttons for the Gnome edition.
  4383. * cmd.c (link_cmd, symlink_cmd): Provide the filename to operate
  4384. on.
  4385. Tue Mar 10 20:41:45 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4386. * cmd.c (unselect_cmd_panel, select_cmd_panel): To avoid races on
  4387. the X11 version, these routines now take a panel argument at
  4388. invocation time.
  4389. * widget.c (radio_callback): Call x_radio_focus for FOCUS/UNFOCUS
  4390. events.
  4391. (button_callback): Fallback to default_msg on WIDGET_FOCUS
  4392. messages.
  4393. 1998-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
  4394. * xslint.c (getch): Added missing "return".
  4395. * utilunix.c (init_groups): Added parentheses around
  4396. assignment/truth value.
  4397. * boxes.c: #include <stdlib.h>
  4398. * screen.c (string_inode): Cast fe->buf.st_ino to long to be
  4399. consistent with sprintf format.
  4400. * main.c (handle_args): Added parentheses around assignment/truth value.
  4401. Sat Mar 7 14:33:38 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4402. * src/complete.c: obsolete hack for OS/2 and NT removed.
  4403. Completion works for NT now (not very good)
  4404. * src/main.c: HOME variable is respected by NT and OS/2
  4405. versions. If it is missing, we use LIBDIR on OS2_NT and "/"
  4406. on Unix.
  4407. * src/key.h: SHIFT_PRESSED is set to 0x0010 on NT. This value
  4408. doesn't conflict with definitions for ALT and CTRL, but it is
  4409. SDK-compatible.
  4410. * vfs/vfs.h: Minor changes for OS/2. EMX defines mkdir with
  4411. 2 arguments
  4412. * vfs/tcputil,c, vfs/utilvfs.c: signal.h was includes twice.
  4413. * vfs/Makefile.in: undelfs.h is not used and should disapper
  4414. * slang/slos2tty.c: new file, copied from SLang-0.99.38,
  4415. needed for OS/2 port
  4416. * slang/Makefile.in: added slos2tty.c
  4417. * vfs/extfs/README: annoying spell errors corrected
  4418. * src/main.c: --termcap disabled for OS2_NT because it doesn't
  4419. (and cannot) work. ARCH_FLAGS is not needed anymore.
  4420. * src/text.c: most includes removed. Added a warning is someone
  4421. compiles this file with HAVE_X. Improved color scheme for
  4422. consoles with 16 background colors (e.g. OS/2). Hack for OS/2
  4423. removed.
  4424. * src/util.c, src/util.h: STRCOMP and MC_ARCH_FLAGS are moved
  4425. to util.h. It may be useful to use them for filenames' completion
  4426. on OS2_NT
  4427. Fri Mar 6 19:29:54 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4428. * find.c: Simplify header files: use the fs.h include file.
  4429. (use x_flush_events).
  4430. * screen.c (string_file_name): In GNOME, the CList widget does the
  4431. filename truncation, so we do not do it here.
  4432. (panel_new): Initialize all of the wpanel contents to zero. This
  4433. will is required by the GNOME X ports (to figure out if a field
  4434. has been inited or not).
  4435. Thu Mar 5 10:28:40 1998 Norbert Warmuth <k3190@fh-sw.de>
  4436. * popt.c (poptParseArgvString): make it compile with the native
  4437. compiler on AIX 4.1.3
  4438. 1998-03-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
  4439. * cmd.c: Added #include "x.h"
  4440. Wed Mar 4 14:49:55 1998 Norbert Warmuth <k3190@fh-sw.de>
  4441. * doc/mc.1.in, mc.hlp: updated (these files haven't been updated
  4442. at the last change to mc.sgml)
  4443. * doc/mc.sgml: spelling error corrected
  4444. * Makefile.in: renamed all references of mc.1 to mc.1.in
  4445. * find.c (locate_egrep): Don't use an absolute path if egrep isn't
  4446. found at the usual places. Then execvp will search the directories
  4447. passed in the environment PATH variable (a little bit slower but
  4448. better than a defunct find content).
  4449. * tree.c: removed the include file I mistakenly added with my
  4450. last patch.
  4451. Tue Mar 3 20:00:36 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4452. * file.c (get_file): Take a panel argument. I am pretty sure that
  4453. this is broken for the case where we are copying from a WTree.
  4454. (panel_operate): take a panel argument instead of defaulting to
  4455. cpanel.
  4456. Mon Mar 2 15:54:55 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4457. * dlg.c (create_dlg): Set running to 0 on creation;
  4458. (add_widgetl): do widget initialization if the dialog is already
  4459. running when this dialog box is created.
  4460. Mon Mar 2 12:11:37 1998 Norbert Warmuth <k3190@fh-sw.de>
  4461. * vfs/ftpfs.c (changetype): Removed the hack which always forced
  4462. sending the command "TYPE I" when changing to binary transfer mode
  4463. was requested even when MC thought the connection was already in
  4464. binary mode (bucket->isbinary == 1). The correct fix is now in
  4465. login_server.
  4466. * vfs/ftpfs.c (login_server): Set the transfer mode stored in
  4467. the bucket to UNKNOWN (the bucket might be reused and the old
  4468. transfer mode isn't valid any longer).
  4469. * screen.c (panel_key): Cleanup: deleted if-clause with -1 (EV_NONE)
  4470. which isn't delivered to widgets by the dialog manager; always
  4471. return 1 when key was handled; removed the function keys from the
  4472. panel's keymap (the function keys are always handled by the
  4473. buttonbar); don't eat characters below ' ' (C-l and Shift-F3 now
  4474. work even when quick search was started); characters between 32 and
  4475. 255 start quick search if there is no commandline (no C-s necessary
  4476. to start search).
  4477. * tree.c (tree_key): likewise
  4478. Tue Feb 24 18:37:36 1998 Stas Maximov <stmax@u213.srcc.msu.su>
  4479. * subshell.c: Set subshell_pid to 1 on startup
  4480. Fri Feb 13 19:59:39 1998 Alexander Savelyev <fano@VCom.kiev.ua>
  4481. * screen.c: KEY_DC is also handled by delete_cmd.
  4482. * vfs/ftpfs.c (chdir): sending the CWD command is not necessary
  4483. (imho).
  4484. (ftpfs_connection_close): Do not use WAIT_REPLY, closes
  4485. connections faster.
  4486. (open_data_connection): implement the reget command.
  4487. * boxes.c: bigger VFS dialog box.
  4488. * file.c (init_replace): Add support for copying files only if the
  4489. size differs, and support for regetting ftp files.
  4490. Wed Feb 11 20:08:50 1998 Norbert Warmuth <k3190@fh-sw.de>
  4491. * user.c (execute_menu_command): Extented the syntax of %-macros
  4492. used in the user menu in order to switch quoting on (default) and
  4493. off, e.g. %0f means don't quote the expanded macro, %f and %1f mean
  4494. quote the expanded macro.
  4495. Fri Jan 30 16:43:47 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4496. * dlg.c (create_dlg): Now we pass the flags parameter to the
  4497. create_dialog routine.
  4498. * tkmain.c (xtoolkit_create_dialog): Check for the grided value
  4499. Fri Jan 23 07:28:54 1998 Peter Daum <gator@cs.tu-berlin.de>
  4500. * extfs.c (open_extfs_archive): Pass the filename to the list
  4501. command.
  4502. * extfs/mailfs: New file system for browsing mail files (support
  4503. for compressed mail fiels as well).
  4504. Fri Jan 23 07:19:18 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4505. * edit/edit.h: mc_mkdir requires 2 arguments for any operation
  4506. system. Obsolete #ifdef's removed.
  4507. * edit/editwidget.c: ansi standard violation removed
  4508. * nt/Makefile.NT: default SLang directory is now ../slang. Most
  4509. of SLang sources are no more compiled for MC.
  4510. * nt/drive.h: new file. Copied from os2/drive.h with minor changes
  4511. * nt/ket.nt.c: new way for handling conflicting SHIFT_PRESSED
  4512. definitions. get_event can work without blocking. Copy, move
  4513. and delete operations work normally.
  4514. * nt/slint.nt.c: SLang_getkey2 and Slang_input_pending2 are
  4515. copied from src/slint.c
  4516. * nt/sys/param.h: annoying warnings temporaly suppressed.
  4517. * slang/slvideo.c, slang/slw32tty.c: new files. They contain
  4518. changes by Alexander Dong.
  4519. * src/myslang.h: definitions for acsii symbols removed, since
  4520. they are available in slang.h. Double lines are not used anymore.
  4521. * src/panelize.c: sys/wait.h is included only if HAVE_SYS_WAIT_H
  4522. is defined
  4523. * nt/Makefile.NT: text.c is added
  4524. * nt/Makefile.VC4: "-debug" switch for linker is not used for
  4525. release version
  4526. * src/screen.c (show_dir): double lines are no more used by NT and
  4527. OS/2 ports.
  4528. * src/wtools.c (real_input_dialog_help): layout of input dialog for
  4529. XView port is corrected
  4530. * edit/edit.h: mc_mkdir requires 2 arguments for any operation
  4531. system. Obsolete #ifdef's removed.
  4532. * edit/editwidget.c: ansi standard violation removed
  4533. Wed Jan 21 14:01:29 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4534. * ext.c (regex_command): reverted the patch that changed tests for
  4535. *p == ' ' || *p == '\t' to isspace(). isspace() is true for tabs,
  4536. newlines, carriage-returns and vertical tabs as well. Which is
  4537. not what we want.
  4538. Wed Jan 21 11:58:39 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
  4539. * ftpfs.c (retrieve_dir): Avoid compiler warning by testing
  4540. explicitly the value.
  4541. screen.c (format_file): color not initialized when we met
  4542. empty_line.
  4543. Wed Jan 21 11:28:21 1998 Alex Tkachenko <alex@bcs.zp.ua>
  4544. * cmd.c, utilunix.c: cosmetic changes to reduce compiler warnings
  4545. * utilunix.c (my_system): small fix for SCO zombies moved here;
  4546. now it returns WEXITSTATUS(status) instead of status itself. While
  4547. missing it may not hurt on i.e., linux, on SCO it gives incorrect
  4548. value.
  4549. * vfs/extfs.c system() calls replaced with my_system() call; this
  4550. allows a greater degree of control - fixes SCO system() return value
  4551. processing. Notice: plain replacement system() with WEXITSTATUS(system)
  4552. does not produce correct behavior (don't ask me why).
  4553. * panelize.c (do_external_panelize): similar fixes for pclose()
  4554. return value on SCO.
  4555. view.c (load_view_file): inverted value of viewer_magic_flag to
  4556. put viewer decompression state in accordance with F8 label text.
  4557. Also default_nroff_flag is initialized to be 1; thus enabling all
  4558. filter processing by default easies mc usage for novice users.
  4559. Sun Jan 18 13:47:37 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
  4560. * main.c
  4561. * panel.h, tkscreen.h : error when compile dlg.c
  4562. * tkconf.h : paint_frame
  4563. * screen.c : to include paint_frame
  4564. * tkmain.c : I just copied clr_scr() from the text.c
  4565. Fri Jan 16 16:19:59 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
  4566. * screen.c (format_file): Do not invoke the file_compute_color
  4567. routine for empty lines.
  4568. * gmain.c: Color scheme for Gnome
  4569. * gscreen.c: Color setup now allocated the GdkColor *.
  4570. * color.c: Moved the default color setting to a per-port
  4571. location (text.c for the text mode edition); new color
  4572. configuration: core; Fixed the case where the color spec was
  4573. buggy and we kept on a infinite loop;
  4574. Fri Jan 16 13:47:13 1998 Pavel Roskin <pavel_roskin@geocities.com>
  4575. * nt/drive.nt.c, nt/chmod.nt.c: Updated button_new and check_new
  4576. calls
  4577. Fri Jan 16 12:47:39 1998 Norbert Warmuth <k3190@fh-sw.de>
  4578. * vfs/ftpfs.c (command): Don't log passwords when the dialog between
  4579. server and client is logged to a file (mc -l logfile).
  4580. * vfs/ftpfs.c (resolve_symlink, retrieve_dir): When a directory
  4581. contains spaces send two commands ("CWD path" and "LIST .") instead of
  4582. one command ("LIST path") in order to get directory listings.