NEWS.21 187 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903
  1. GNU Emacs NEWS -- history of user-visible changes. 2006-05-31
  2. Copyright (C) 2000-2012 Free Software Foundation, Inc.
  3. See the end of the file for license conditions.
  4. This file is about changes in emacs version 21.
  5. * Emacs 21.4 is a bug-fix release with no user-visible changes.
  6. * Installation changes in Emacs 21.3
  7. ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
  8. been added.
  9. * Changes in Emacs 21.3
  10. ** The obsolete C mode (c-mode.el) has been removed to avoid problems
  11. with Custom.
  12. ** UTF-16 coding systems are available, encoding the same characters
  13. as mule-utf-8.
  14. ** There is a new language environment for UTF-8 (set up automatically
  15. in UTF-8 locales).
  16. ** Translation tables are available between equivalent characters in
  17. different Emacs charsets -- for instance `e with acute' coming from the
  18. Latin-1 and Latin-2 charsets. User options `unify-8859-on-encoding-mode'
  19. and `unify-8859-on-decoding-mode' respectively turn on translation
  20. between ISO 8859 character sets (`unification') on encoding
  21. (e.g. writing a file) and decoding (e.g. reading a file). Note that
  22. `unify-8859-on-encoding-mode' is useful and safe, but
  23. `unify-8859-on-decoding-mode' can cause text to change when you read
  24. it and write it out again without edits, so it is not generally advisable.
  25. By default `unify-8859-on-encoding-mode' is turned on.
  26. ** In Emacs running on the X window system, the default value of
  27. `selection-coding-system' is now `compound-text-with-extensions'.
  28. If you want the old behavior, set selection-coding-system to
  29. compound-text, which may be significantly more efficient. Using
  30. compound-text-with-extensions seems to be necessary only for decoding
  31. text from applications under XFree86 4.2, whose behavior is actually
  32. contrary to the compound text specification.
  33. * Installation changes in Emacs 21.2
  34. ** Support for BSD/OS 5.0 has been added.
  35. ** Support for AIX 5.1 was added.
  36. * Changes in Emacs 21.2
  37. ** Emacs now supports compound-text extended segments in X selections.
  38. X applications can use `extended segments' to encode characters in
  39. compound text that belong to character sets which are not part of the
  40. list of approved standard encodings for X, e.g. Big5. To paste
  41. selections with such characters into Emacs, use the new coding system
  42. compound-text-with-extensions as the value of selection-coding-system.
  43. ** The default values of `tooltip-delay' and `tooltip-hide-delay'
  44. were changed.
  45. ** On terminals whose erase-char is ^H (Backspace), Emacs
  46. now uses normal-erase-is-backspace-mode.
  47. ** When the *scratch* buffer is recreated, its mode is set from
  48. initial-major-mode, which normally is lisp-interaction-mode,
  49. instead of using default-major-mode.
  50. ** The new option `Info-scroll-prefer-subnodes' causes Info to behave
  51. like the stand-alone Info reader (from the GNU Texinfo package) as far
  52. as motion between nodes and their subnodes is concerned. If it is t
  53. (the default), Emacs behaves as before when you type SPC in a menu: it
  54. visits the subnode pointed to by the first menu entry. If this option
  55. is nil, SPC scrolls to the end of the current node, and only then goes
  56. to the first menu item, like the stand-alone reader does.
  57. This change was already in Emacs 21.1, but wasn't advertised in the
  58. NEWS.
  59. * Lisp Changes in Emacs 21.2
  60. ** The meanings of scroll-up-aggressively and scroll-down-aggressively
  61. have been interchanged, so that the former now controls scrolling up,
  62. and the latter now controls scrolling down.
  63. ** The variable `compilation-parse-errors-filename-function' can
  64. be used to transform filenames found in compilation output.
  65. * Installation Changes in Emacs 21.1
  66. See the INSTALL file for information on installing extra libraries and
  67. fonts to take advantage of the new graphical features and extra
  68. charsets in this release.
  69. ** Support for GNU/Linux on IA64 machines has been added.
  70. ** Support for LynxOS has been added.
  71. ** There are new configure options associated with the support for
  72. images and toolkit scrollbars. Use the --help option in `configure'
  73. to list them.
  74. ** You can build a 64-bit Emacs for SPARC/Solaris systems which
  75. support 64-bit executables and also on Irix 6.5. This increases the
  76. maximum buffer size. See etc/MACHINES for instructions. Changes to
  77. build on other 64-bit systems should be straightforward modulo any
  78. necessary changes to unexec.
  79. ** There is a new configure option `--disable-largefile' to omit
  80. Unix-98-style support for large files if that is available.
  81. ** There is a new configure option `--without-xim' that instructs
  82. Emacs to not use X Input Methods (XIM), if these are available.
  83. ** `movemail' defaults to supporting POP. You can turn this off using
  84. the --without-pop configure option, should that be necessary.
  85. ** This version can be built for the Macintosh, but does not implement
  86. all of the new display features described below. The port currently
  87. lacks unexec, asynchronous processes, and networking support. See the
  88. "Emacs and the Mac OS" appendix in the Emacs manual, for the
  89. description of aspects specific to the Mac.
  90. ** Note that the MS-Windows port does not yet implement various of the
  91. new display features described below.
  92. * Changes in Emacs 21.1
  93. ** Emacs has a new redisplay engine.
  94. The new redisplay handles characters of variable width and height.
  95. Italic text can be used without redisplay problems. Fonts containing
  96. oversized characters, i.e. characters larger than the logical height
  97. of a font can be used. Images of various formats can be displayed in
  98. the text.
  99. ** Emacs has a new face implementation.
  100. The new faces no longer fundamentally use X font names to specify the
  101. font. Instead, each face has several independent attributes--family,
  102. height, width, weight and slant--that it may or may not specify.
  103. These attributes can be merged from various faces, and then together
  104. specify a font.
  105. Faces are supported on terminals that can display color or fonts.
  106. These terminal capabilities are auto-detected. Details can be found
  107. under Lisp changes, below.
  108. ** Emacs can display faces on TTY frames.
  109. Emacs automatically detects terminals that are able to display colors.
  110. Faces with a weight greater than normal are displayed extra-bright, if
  111. the terminal supports it. Faces with a weight less than normal and
  112. italic faces are displayed dimmed, if the terminal supports it.
  113. Underlined faces are displayed underlined if possible. Other face
  114. attributes such as `overline', `strike-through', and `box' are ignored
  115. on terminals.
  116. The command-line options `-fg COLOR', `-bg COLOR', and `-rv' are now
  117. supported on character terminals.
  118. Emacs automatically remaps all X-style color specifications to one of
  119. the colors supported by the terminal. This means you could have the
  120. same color customizations that work both on a windowed display and on
  121. a TTY or when Emacs is invoked with the -nw option.
  122. ** New default font is Courier 12pt under X.
  123. ** Sound support
  124. Emacs supports playing sound files on GNU/Linux and FreeBSD (Voxware
  125. driver and native BSD driver, a.k.a. Luigi's driver). Currently
  126. supported file formats are RIFF-WAVE (*.wav) and Sun Audio (*.au).
  127. You must configure Emacs with the option `--with-sound=yes' to enable
  128. sound support.
  129. ** Emacs now resizes mini-windows if appropriate.
  130. If a message is longer than one line, or minibuffer contents are
  131. longer than one line, Emacs can resize the minibuffer window unless it
  132. is on a frame of its own. You can control resizing and the maximum
  133. minibuffer window size by setting the following variables:
  134. - User option: max-mini-window-height
  135. Maximum height for resizing mini-windows. If a float, it specifies a
  136. fraction of the mini-window frame's height. If an integer, it
  137. specifies a number of lines.
  138. Default is 0.25.
  139. - User option: resize-mini-windows
  140. How to resize mini-windows. If nil, don't resize. If t, always
  141. resize to fit the size of the text. If `grow-only', let mini-windows
  142. grow only, until they become empty, at which point they are shrunk
  143. again.
  144. Default is `grow-only'.
  145. ** LessTif support.
  146. Emacs now runs with the LessTif toolkit (see
  147. <http://www.lesstif.org>). You will need version 0.92.26, or later.
  148. ** LessTif/Motif file selection dialog.
  149. When Emacs is configured to use LessTif or Motif, reading a file name
  150. from a menu will pop up a file selection dialog if `use-dialog-box' is
  151. non-nil.
  152. ** File selection dialog on MS-Windows is supported.
  153. When a file is visited by clicking File->Open, the MS-Windows version
  154. now pops up a standard file selection dialog where you can select a
  155. file to visit. File->Save As also pops up that dialog.
  156. ** Toolkit scroll bars.
  157. Emacs now uses toolkit scroll bars if available. When configured for
  158. LessTif/Motif, it will use that toolkit's scroll bar. Otherwise, when
  159. configured for Lucid and Athena widgets, it will use the Xaw3d scroll
  160. bar if Xaw3d is available. You can turn off the use of toolkit scroll
  161. bars by specifying `--with-toolkit-scroll-bars=no' when configuring
  162. Emacs.
  163. When you encounter problems with the Xaw3d scroll bar, watch out how
  164. Xaw3d is compiled on your system. If the Makefile generated from
  165. Xaw3d's Imakefile contains a `-DNARROWPROTO' compiler option, and your
  166. Emacs system configuration file `s/your-system.h' does not contain a
  167. define for NARROWPROTO, you might consider adding it. Take
  168. `s/freebsd.h' as an example.
  169. Alternatively, if you don't have access to the Xaw3d source code, take
  170. a look at your system's imake configuration file, for example in the
  171. directory `/usr/X11R6/lib/X11/config' (paths are different on
  172. different systems). You will find files `*.cf' there. If your
  173. system's cf-file contains a line like `#define NeedWidePrototypes NO',
  174. add a `#define NARROWPROTO' to your Emacs system configuration file.
  175. The reason for this is that one Xaw3d function uses `double' or
  176. `float' function parameters depending on the setting of NARROWPROTO.
  177. This is not a problem when Imakefiles are used because each system's
  178. imake configuration file contains the necessary information. Since
  179. Emacs doesn't use imake, this has do be done manually.
  180. ** Tool bar support.
  181. Emacs supports a tool bar at the top of a frame under X. For details
  182. of how to define a tool bar, see the page describing Lisp-level
  183. changes. Tool-bar global minor mode controls whether or not it is
  184. displayed and is on by default. The appearance of the bar is improved
  185. if Emacs has been built with XPM image support. Otherwise monochrome
  186. icons will be used.
  187. To make the tool bar more useful, we need contributions of extra icons
  188. for specific modes (with copyright assignments).
  189. ** Tooltips.
  190. Tooltips are small X windows displaying a help string at the current
  191. mouse position. The Lisp package `tooltip' implements them. You can
  192. turn them off via the user option `tooltip-mode'.
  193. Tooltips also provides support for GUD debugging. If activated,
  194. variable values can be displayed in tooltips by pointing at them with
  195. the mouse in source buffers. You can customize various aspects of the
  196. tooltip display in the group `tooltip'.
  197. ** Automatic Hscrolling
  198. Horizontal scrolling now happens automatically if
  199. `automatic-hscrolling' is set (the default). This setting can be
  200. customized.
  201. If a window is scrolled horizontally with set-window-hscroll, or
  202. scroll-left/scroll-right (C-x <, C-x >), this serves as a lower bound
  203. for automatic horizontal scrolling. Automatic scrolling will scroll
  204. the text more to the left if necessary, but won't scroll the text more
  205. to the right than the column set with set-window-hscroll etc.
  206. ** When using a windowing terminal, each Emacs window now has a cursor
  207. of its own. By default, when a window is selected, the cursor is
  208. solid; otherwise, it is hollow. The user-option
  209. `cursor-in-non-selected-windows' controls how to display the
  210. cursor in non-selected windows. If nil, no cursor is shown, if
  211. non-nil a hollow box cursor is shown.
  212. ** Fringes to the left and right of windows are used to display
  213. truncation marks, continuation marks, overlay arrows and alike. The
  214. foreground, background, and stipple of these areas can be changed by
  215. customizing face `fringe'.
  216. ** The mode line under X is now drawn with shadows by default.
  217. You can change its appearance by modifying the face `mode-line'.
  218. In particular, setting the `:box' attribute to nil turns off the 3D
  219. appearance of the mode line. (The 3D appearance makes the mode line
  220. occupy more space, and thus might cause the first or the last line of
  221. the window to be partially obscured.)
  222. The variable `mode-line-inverse-video', which was used in older
  223. versions of emacs to make the mode-line stand out, is now deprecated.
  224. However, setting it to nil will cause the `mode-line' face to be
  225. ignored, and mode-lines to be drawn using the default text face.
  226. ** Mouse-sensitive mode line.
  227. Different parts of the mode line have been made mouse-sensitive on all
  228. systems which support the mouse. Moving the mouse to a
  229. mouse-sensitive part in the mode line changes the appearance of the
  230. mouse pointer to an arrow, and help about available mouse actions is
  231. displayed either in the echo area, or in the tooltip window if you
  232. have enabled one.
  233. Currently, the following actions have been defined:
  234. - Mouse-1 on the buffer name in the mode line goes to the next buffer.
  235. - Mouse-3 on the buffer-name goes to the previous buffer.
  236. - Mouse-2 on the read-only or modified status in the mode line (`%' or
  237. `*') toggles the status.
  238. - Mouse-3 on the major mode name displays a major mode menu.
  239. - Mouse-3 on the mode name displays a minor-mode menu.
  240. ** Hourglass pointer
  241. Emacs can optionally display an hourglass pointer under X. You can
  242. turn the display on or off by customizing group `cursor'.
  243. ** Blinking cursor
  244. M-x blink-cursor-mode toggles a blinking cursor under X and on
  245. terminals having terminal capabilities `vi', `vs', and `ve'. Blinking
  246. and related parameters like frequency and delay can be customized in
  247. the group `cursor'.
  248. ** New font-lock support mode `jit-lock-mode'.
  249. This support mode is roughly equivalent to `lazy-lock' but is
  250. generally faster. It supports stealth and deferred fontification.
  251. See the documentation of the function `jit-lock-mode' for more
  252. details.
  253. Font-lock uses jit-lock-mode as default support mode, so you don't
  254. have to do anything to activate it.
  255. ** The default binding of the Delete key has changed.
  256. The new user-option `normal-erase-is-backspace' can be set to
  257. determine the effect of the Delete and Backspace function keys.
  258. On window systems, the default value of this option is chosen
  259. according to the keyboard used. If the keyboard has both a Backspace
  260. key and a Delete key, and both are mapped to their usual meanings, the
  261. option's default value is set to t, so that Backspace can be used to
  262. delete backward, and Delete can be used to delete forward. On
  263. keyboards which either have only one key (usually labeled DEL), or two
  264. keys DEL and BS which produce the same effect, the option's value is
  265. set to nil, and these keys delete backward.
  266. If not running under a window system, setting this option accomplishes
  267. a similar effect by mapping C-h, which is usually generated by the
  268. Backspace key, to DEL, and by mapping DEL to C-d via
  269. `keyboard-translate'. The former functionality of C-h is available on
  270. the F1 key. You should probably not use this setting on a text-only
  271. terminal if you don't have both Backspace, Delete and F1 keys.
  272. Programmatically, you can call function normal-erase-is-backspace-mode
  273. to toggle the behavior of the Delete and Backspace keys.
  274. ** The default for user-option `next-line-add-newlines' has been
  275. changed to nil, i.e. C-n will no longer add newlines at the end of a
  276. buffer by default.
  277. ** The <home> and <end> keys now move to the beginning or end of the
  278. current line, respectively. C-<home> and C-<end> move to the
  279. beginning and end of the buffer.
  280. ** Emacs now checks for recursive loads of Lisp files. If the
  281. recursion depth exceeds `recursive-load-depth-limit', an error is
  282. signaled.
  283. ** When an error is signaled during the loading of the user's init
  284. file, Emacs now pops up the *Messages* buffer.
  285. ** Emacs now refuses to load compiled Lisp files which weren't
  286. compiled with Emacs. Set `load-dangerous-libraries' to t to change
  287. this behavior.
  288. The reason for this change is an incompatible change in XEmacs's byte
  289. compiler. Files compiled with XEmacs can contain byte codes that let
  290. Emacs dump core.
  291. ** Toggle buttons and radio buttons in menus.
  292. When compiled with LessTif (or Motif) support, Emacs uses toolkit
  293. widgets for radio and toggle buttons in menus. When configured for
  294. Lucid, Emacs draws radio buttons and toggle buttons similar to Motif.
  295. ** The menu bar configuration has changed. The new configuration is
  296. more CUA-compliant. The most significant change is that Options is
  297. now a separate menu-bar item, with Mule and Customize as its submenus.
  298. ** Item Save Options on the Options menu allows saving options set
  299. using that menu.
  300. ** Highlighting of trailing whitespace.
  301. When `show-trailing-whitespace' is non-nil, Emacs displays trailing
  302. whitespace in the face `trailing-whitespace'. Trailing whitespace is
  303. defined as spaces or tabs at the end of a line. To avoid busy
  304. highlighting when entering new text, trailing whitespace is not
  305. displayed if point is at the end of the line containing the
  306. whitespace.
  307. ** C-x 5 1 runs the new command delete-other-frames which deletes
  308. all frames except the selected one.
  309. ** The new user-option `confirm-kill-emacs' can be customized to
  310. let Emacs ask for confirmation before exiting.
  311. ** The header line in an Info buffer is now displayed as an emacs
  312. header-line (which is like a mode-line, but at the top of the window),
  313. so that it remains visible even when the buffer has been scrolled.
  314. This behavior may be disabled by customizing the option
  315. `Info-use-header-line'.
  316. ** Polish, Czech, German, and French translations of Emacs' reference card
  317. have been added. They are named `pl-refcard.tex', `cs-refcard.tex',
  318. `de-refcard.tex' and `fr-refcard.tex'. PostScript files are included.
  319. ** An `Emacs Survival Guide', etc/survival.tex, is available.
  320. ** A reference card for Dired has been added. Its name is
  321. `dired-ref.tex'. A French translation is available in
  322. `fr-drdref.tex'.
  323. ** C-down-mouse-3 is bound differently. Now if the menu bar is not
  324. displayed it pops up a menu containing the items which would be on the
  325. menu bar. If the menu bar is displayed, it pops up the major mode
  326. menu or the Edit menu if there is no major mode menu.
  327. ** Variable `load-path' is no longer customizable through Customize.
  328. You can no longer use `M-x customize-variable' to customize `load-path'
  329. because it now contains a version-dependent component. You can still
  330. use `add-to-list' and `setq' to customize this variable in your
  331. `~/.emacs' init file or to modify it from any Lisp program in general.
  332. ** C-u C-x = provides detailed information about the character at
  333. point in a pop-up window.
  334. ** Emacs can now support 'wheeled' mice (such as the MS IntelliMouse)
  335. under XFree86. To enable this, use the `mouse-wheel-mode' command, or
  336. customize the variable `mouse-wheel-mode'.
  337. The variables `mouse-wheel-follow-mouse' and `mouse-wheel-scroll-amount'
  338. determine where and by how much buffers are scrolled.
  339. ** Emacs' auto-save list files are now by default stored in a
  340. sub-directory `.emacs.d/auto-save-list/' of the user's home directory.
  341. (On MS-DOS, this subdirectory's name is `_emacs.d/auto-save.list/'.)
  342. You can customize `auto-save-list-file-prefix' to change this location.
  343. ** The function `getenv' is now callable interactively.
  344. ** The new user-option `even-window-heights' can be set to nil
  345. to prevent `display-buffer' from evening out window heights.
  346. ** The new command M-x delete-trailing-whitespace RET will delete the
  347. trailing whitespace within the current restriction. You can also add
  348. this function to `write-file-hooks' or `local-write-file-hooks'.
  349. ** When visiting a file with M-x find-file-literally, no newlines will
  350. be added to the end of the buffer even if `require-final-newline' is
  351. non-nil.
  352. ** The new user-option `find-file-suppress-same-file-warnings' can be
  353. set to suppress warnings ``X and Y are the same file'' when visiting a
  354. file that is already visited under a different name.
  355. ** The new user-option `electric-help-shrink-window' can be set to
  356. nil to prevent adjusting the help window size to the buffer size.
  357. ** New command M-x describe-character-set reads a character set name
  358. and displays information about that.
  359. ** The new variable `auto-mode-interpreter-regexp' contains a regular
  360. expression matching interpreters, for file mode determination.
  361. This regular expression is matched against the first line of a file to
  362. determine the file's mode in `set-auto-mode' when Emacs can't deduce a
  363. mode from the file's name. If it matches, the file is assumed to be
  364. interpreted by the interpreter matched by the second group of the
  365. regular expression. The mode is then determined as the mode
  366. associated with that interpreter in `interpreter-mode-alist'.
  367. ** New function executable-make-buffer-file-executable-if-script-p is
  368. suitable as an after-save-hook as an alternative to `executable-chmod'.
  369. ** The most preferred coding-system is now used to save a buffer if
  370. buffer-file-coding-system is `undecided' and it is safe for the buffer
  371. contents. (The most preferred is set by set-language-environment or
  372. by M-x prefer-coding-system.) Thus if you visit an ASCII file and
  373. insert a non-ASCII character from your current language environment,
  374. the file will be saved silently with the appropriate coding.
  375. Previously you would be prompted for a safe coding system.
  376. ** The many obsolete language `setup-...-environment' commands have
  377. been removed -- use `set-language-environment'.
  378. ** The new Custom option `keyboard-coding-system' specifies a coding
  379. system for keyboard input.
  380. ** New variable `inhibit-iso-escape-detection' determines if Emacs'
  381. coding system detection algorithm should pay attention to ISO2022's
  382. escape sequences. If this variable is non-nil, the algorithm ignores
  383. such escape sequences. The default value is nil, and it is
  384. recommended not to change it except for the special case that you
  385. always want to read any escape code verbatim. If you just want to
  386. read a specific file without decoding escape codes, use C-x RET c
  387. (`universal-coding-system-argument'). For instance, C-x RET c latin-1
  388. RET C-x C-f filename RET.
  389. ** Variable `default-korean-keyboard' is initialized properly from the
  390. environment variable `HANGUL_KEYBOARD_TYPE'.
  391. ** New command M-x list-charset-chars reads a character set name and
  392. displays all characters in that character set.
  393. ** M-x set-terminal-coding-system (C-x RET t) now allows CCL-based
  394. coding systems such as cpXXX and cyrillic-koi8.
  395. ** Emacs now attempts to determine the initial language environment
  396. and preferred and locale coding systems systematically from the
  397. LC_ALL, LC_CTYPE, and LANG environment variables during startup.
  398. ** New language environments `Polish', `Latin-8' and `Latin-9'.
  399. Latin-8 and Latin-9 correspond respectively to the ISO character sets
  400. 8859-14 (Celtic) and 8859-15 (updated Latin-1, with the Euro sign).
  401. GNU Intlfonts doesn't support these yet but recent X releases have
  402. 8859-15. See etc/INSTALL for information on obtaining extra fonts.
  403. There are new Leim input methods for Latin-8 and Latin-9 prefix (only)
  404. and Polish `slash'.
  405. ** New language environments `Dutch' and `Spanish'.
  406. These new environments mainly select appropriate translations
  407. of the tutorial.
  408. ** In Ethiopic language environment, special key bindings for
  409. function keys are changed as follows. This is to conform to "Emacs
  410. Lisp Coding Convention".
  411. new command old-binding
  412. --- ------- -----------
  413. f3 ethio-fidel-to-sera-buffer f5
  414. S-f3 ethio-fidel-to-sera-region f5
  415. C-f3 ethio-fidel-to-sera-mail-or-marker f5
  416. f4 ethio-sera-to-fidel-buffer unchanged
  417. S-f4 ethio-sera-to-fidel-region unchanged
  418. C-f4 ethio-sera-to-fidel-mail-or-marker unchanged
  419. S-f5 ethio-toggle-punctuation f3
  420. S-f6 ethio-modify-vowel f6
  421. S-f7 ethio-replace-space f7
  422. S-f8 ethio-input-special-character f8
  423. S-f9 ethio-replace-space unchanged
  424. C-f9 ethio-toggle-space f2
  425. ** There are new Leim input methods.
  426. New input methods "turkish-postfix", "turkish-alt-postfix",
  427. "greek-mizuochi", "TeX", and "greek-babel" are now part of the Leim
  428. package.
  429. ** The rule of input method "slovak" is slightly changed. Now the
  430. rules for translating "q" and "Q" to "`" (backquote) are deleted, thus
  431. typing them inserts "q" and "Q" respectively. Rules for translating
  432. "=q", "+q", "=Q", and "+Q" to "`" are also deleted. Now, to input
  433. "`", you must type "=q".
  434. ** When your terminal can't display characters from some of the ISO
  435. 8859 character sets but can display Latin-1, you can display
  436. more-or-less mnemonic sequences of ASCII/Latin-1 characters instead of
  437. empty boxes (under a window system) or question marks (not under a
  438. window system). Customize the option `latin1-display' to turn this
  439. on.
  440. ** M-; now calls comment-dwim which tries to do something clever based
  441. on the context. M-x kill-comment is now an alias to comment-kill,
  442. defined in newcomment.el. You can choose different styles of region
  443. commenting with the variable `comment-style'.
  444. ** New user options `display-time-mail-face' and
  445. `display-time-use-mail-icon' control the appearance of mode-line mail
  446. indicator used by the display-time package. On a suitable display the
  447. indicator can be an icon and is mouse-sensitive.
  448. ** On window-systems, additional space can be put between text lines
  449. on the display using several methods
  450. - By setting frame parameter `line-spacing' to PIXELS. PIXELS must be
  451. a positive integer, and specifies that PIXELS number of pixels should
  452. be put below text lines on the affected frame or frames.
  453. - By setting X resource `lineSpacing', class `LineSpacing'. This is
  454. equivalent to specifying the frame parameter.
  455. - By specifying `--line-spacing=N' or `-lsp N' on the command line.
  456. - By setting buffer-local variable `line-spacing'. The meaning is
  457. the same, but applies to the a particular buffer only.
  458. ** The new command `clone-indirect-buffer' can be used to create
  459. an indirect buffer that is a twin copy of the current buffer. The
  460. command `clone-indirect-buffer-other-window', bound to C-x 4 c,
  461. does the same but displays the indirect buffer in another window.
  462. ** New user options `backup-directory-alist' and
  463. `make-backup-file-name-function' control the placement of backups,
  464. typically in a single directory or in an invisible sub-directory.
  465. ** New commands iso-iso2sgml and iso-sgml2iso convert between Latin-1
  466. characters and the corresponding SGML (HTML) entities.
  467. ** New X resources recognized
  468. *** The X resource `synchronous', class `Synchronous', specifies
  469. whether Emacs should run in synchronous mode. Synchronous mode
  470. is useful for debugging X problems.
  471. Example:
  472. emacs.synchronous: true
  473. *** The X resource `visualClass, class `VisualClass', specifies the
  474. visual Emacs should use. The resource's value should be a string of
  475. the form `CLASS-DEPTH', where CLASS is the name of the visual class,
  476. and DEPTH is the requested color depth as a decimal number. Valid
  477. visual class names are
  478. TrueColor
  479. PseudoColor
  480. DirectColor
  481. StaticColor
  482. GrayScale
  483. StaticGray
  484. Visual class names specified as X resource are case-insensitive, i.e.
  485. `pseudocolor', `Pseudocolor' and `PseudoColor' all have the same
  486. meaning.
  487. The program `xdpyinfo' can be used to list the visual classes
  488. supported on your display, and which depths they have. If
  489. `visualClass' is not specified, Emacs uses the display's default
  490. visual.
  491. Example:
  492. emacs.visualClass: TrueColor-8
  493. *** The X resource `privateColormap', class `PrivateColormap',
  494. specifies that Emacs should use a private colormap if it is using the
  495. default visual, and that visual is of class PseudoColor. Recognized
  496. resource values are `true' or `on'.
  497. Example:
  498. emacs.privateColormap: true
  499. ** Faces and frame parameters.
  500. There are four new faces `scroll-bar', `border', `cursor' and `mouse'.
  501. Setting the frame parameters `scroll-bar-foreground' and
  502. `scroll-bar-background' sets foreground and background color of face
  503. `scroll-bar' and vice versa. Setting frame parameter `border-color'
  504. sets the background color of face `border' and vice versa. Likewise
  505. for frame parameters `cursor-color' and face `cursor', and frame
  506. parameter `mouse-color' and face `mouse'.
  507. Changing frame parameter `font' sets font-related attributes of the
  508. `default' face and vice versa. Setting frame parameters
  509. `foreground-color' or `background-color' sets the colors of the
  510. `default' face and vice versa.
  511. ** New face `menu'.
  512. The face `menu' can be used to change colors and font of Emacs' menus.
  513. ** New frame parameter `screen-gamma' for gamma correction.
  514. The new frame parameter `screen-gamma' specifies gamma-correction for
  515. colors. Its value may be nil, the default, in which case no gamma
  516. correction occurs, or a number > 0, usually a float, that specifies
  517. the screen gamma of a frame's display.
  518. PC monitors usually have a screen gamma of 2.2. smaller values result
  519. in darker colors. You might want to try a screen gamma of 1.5 for LCD
  520. color displays. The viewing gamma Emacs uses is 0.4545. (1/2.2).
  521. The X resource name of this parameter is `screenGamma', class
  522. `ScreenGamma'.
  523. ** Tabs and variable-width text.
  524. Tabs are now displayed with stretch properties; the width of a tab is
  525. defined as a multiple of the normal character width of a frame, and is
  526. independent of the fonts used in the text where the tab appears.
  527. Thus, tabs can be used to line up text in different fonts.
  528. ** Enhancements of the Lucid menu bar
  529. *** The Lucid menu bar now supports the resource "margin".
  530. emacs.pane.menubar.margin: 5
  531. The default margin is 4 which makes the menu bar appear like the
  532. LessTif/Motif one.
  533. *** Arrows that indicate sub-menus are now drawn with shadows, as in
  534. LessTif and Motif.
  535. ** A block cursor can be drawn as wide as the glyph under it under X.
  536. As an example: if a block cursor is over a tab character, it will be
  537. drawn as wide as that tab on the display. To do this, set
  538. `x-stretch-cursor' to a non-nil value.
  539. ** Empty display lines at the end of a buffer may be marked with a
  540. bitmap (this is similar to the tilde displayed by vi and Less).
  541. This behavior is activated by setting the buffer-local variable
  542. `indicate-empty-lines' to a non-nil value. The default value of this
  543. variable is found in `default-indicate-empty-lines'.
  544. ** There is a new "aggressive" scrolling method.
  545. When scrolling up because point is above the window start, if the
  546. value of the buffer-local variable `scroll-up-aggressively' is a
  547. number, Emacs chooses a new window start so that point ends up that
  548. fraction of the window's height from the top of the window.
  549. When scrolling down because point is below the window end, if the
  550. value of the buffer-local variable `scroll-down-aggressively' is a
  551. number, Emacs chooses a new window start so that point ends up that
  552. fraction of the window's height from the bottom of the window.
  553. ** You can now easily create new *Info* buffers using either
  554. M-x clone-buffer, C-u m <entry> RET or C-u g <entry> RET.
  555. M-x clone-buffer can also be used on *Help* and several other special
  556. buffers.
  557. ** The command `Info-search' now uses a search history.
  558. ** Listing buffers with M-x list-buffers (C-x C-b) now shows
  559. abbreviated file names. Abbreviations can be customized by changing
  560. `directory-abbrev-alist'.
  561. ** A new variable, backup-by-copying-when-privileged-mismatch, gives
  562. the highest file uid for which backup-by-copying-when-mismatch will be
  563. forced on. The assumption is that uids less than or equal to this
  564. value are special uids (root, bin, daemon, etc.--not real system
  565. users) and that files owned by these users should not change ownership,
  566. even if your system policy allows users other than root to edit them.
  567. The default is 200; set the variable to nil to disable the feature.
  568. ** The rectangle commands now avoid inserting undesirable spaces,
  569. notably at the end of lines.
  570. All these functions have been rewritten to avoid inserting unwanted
  571. spaces, and an optional prefix now allows them to behave the old way.
  572. ** The function `replace-rectangle' is an alias for `string-rectangle'.
  573. ** The new command M-x string-insert-rectangle is like `string-rectangle',
  574. but inserts text instead of replacing it.
  575. ** The new command M-x query-replace-regexp-eval acts like
  576. query-replace-regexp, but takes a Lisp expression which is evaluated
  577. after each match to get the replacement text.
  578. ** M-x query-replace recognizes a new command `e' (or `E') that lets
  579. you edit the replacement string.
  580. ** The new command mail-abbrev-complete-alias, bound to `M-TAB'
  581. (if you load the library `mailabbrev'), lets you complete mail aliases
  582. in the text, analogous to lisp-complete-symbol.
  583. ** The variable `echo-keystrokes' may now have a floating point value.
  584. ** If your init file is compiled (.emacs.elc), `user-init-file' is set
  585. to the source name (.emacs.el), if that exists, after loading it.
  586. ** The help string specified for a menu-item whose definition contains
  587. the property `:help HELP' is now displayed under X, on MS-Windows, and
  588. MS-DOS, either in the echo area or with tooltips. Many standard menus
  589. displayed by Emacs now have help strings.
  590. --
  591. ** New user option `read-mail-command' specifies a command to use to
  592. read mail from the menu etc.
  593. ** The environment variable `EMACSLOCKDIR' is no longer used on MS-Windows.
  594. This environment variable was used when creating lock files. Emacs on
  595. MS-Windows does not use this variable anymore. This change was made
  596. before Emacs 21.1, but wasn't documented until now.
  597. ** Highlighting of mouse-sensitive regions is now supported in the
  598. MS-DOS version of Emacs.
  599. ** The new command `msdos-set-mouse-buttons' forces the MS-DOS version
  600. of Emacs to behave as if the mouse had a specified number of buttons.
  601. This comes handy with mice that don't report their number of buttons
  602. correctly. One example is the wheeled mice, which report 3 buttons,
  603. but clicks on the middle button are not passed to the MS-DOS version
  604. of Emacs.
  605. ** Customize changes
  606. *** Customize now supports comments about customized items. Use the
  607. `State' menu to add comments, or give a prefix argument to
  608. M-x customize-set-variable or M-x customize-set-value. Note that
  609. customization comments will cause the customizations to fail in
  610. earlier versions of Emacs.
  611. *** The new option `custom-buffer-done-function' says whether to kill
  612. Custom buffers when you've done with them or just bury them (the
  613. default).
  614. *** If Emacs was invoked with the `-q' or `--no-init-file' options, it
  615. does not allow you to save customizations in your `~/.emacs' init
  616. file. This is because saving customizations from such a session would
  617. wipe out all the other customizations you might have on your init
  618. file.
  619. ** If Emacs was invoked with the `-q' or `--no-init-file' options, it
  620. does not save disabled and enabled commands for future sessions, to
  621. avoid overwriting existing customizations of this kind that are
  622. already in your init file.
  623. ** New features in evaluation commands
  624. *** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
  625. modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
  626. print-level, print-length, and debug-on-error based on the new
  627. customizable variables eval-expression-print-level,
  628. eval-expression-print-length, and eval-expression-debug-on-error.
  629. The default values for the first two of these variables are 12 and 4
  630. respectively, which means that `eval-expression' now prints at most
  631. the first 12 members of a list and at most 4 nesting levels deep (if
  632. the list is longer or deeper than that, an ellipsis `...' is
  633. printed).
  634. <RET> or <mouse-2> on the printed text toggles between an abbreviated
  635. printed representation and an unabbreviated one.
  636. The default value of eval-expression-debug-on-error is t, so any error
  637. during evaluation produces a backtrace.
  638. *** The function `eval-defun' (C-M-x) now loads Edebug and instruments
  639. code when called with a prefix argument.
  640. ** CC mode changes.
  641. Note: This release contains changes that might not be compatible with
  642. current user setups (although it's believed that these
  643. incompatibilities will only show in very uncommon circumstances).
  644. However, since the impact is uncertain, these changes may be rolled
  645. back depending on user feedback. Therefore there's no forward
  646. compatibility guarantee wrt the new features introduced in this
  647. release.
  648. *** The hardcoded switch to "java" style in Java mode is gone.
  649. CC Mode used to automatically set the style to "java" when Java mode
  650. is entered. This has now been removed since it caused too much
  651. confusion.
  652. However, to keep backward compatibility to a certain extent, the
  653. default value for c-default-style now specifies the "java" style for
  654. java-mode, but "gnu" for all other modes (as before). So you won't
  655. notice the change if you haven't touched that variable.
  656. *** New cleanups, space-before-funcall and compact-empty-funcall.
  657. Two new cleanups have been added to c-cleanup-list:
  658. space-before-funcall causes a space to be inserted before the opening
  659. parenthesis of a function call, which gives the style "foo (bar)".
  660. compact-empty-funcall causes any space before a function call opening
  661. parenthesis to be removed if there are no arguments to the function.
  662. It's typically useful together with space-before-funcall to get the
  663. style "foo (bar)" and "foo()".
  664. *** Some keywords now automatically trigger reindentation.
  665. Keywords like "else", "while", "catch" and "finally" have been made
  666. "electric" to make them reindent automatically when they continue an
  667. earlier statement. An example:
  668. for (i = 0; i < 17; i++)
  669. if (a[i])
  670. res += a[i]->offset;
  671. else
  672. Here, the "else" should be indented like the preceding "if", since it
  673. continues that statement. CC Mode will automatically reindent it after
  674. the "else" has been typed in full, since it's not until then it's
  675. possible to decide whether it's a new statement or a continuation of
  676. the preceding "if".
  677. CC Mode uses Abbrev mode to achieve this, which is therefore turned on
  678. by default.
  679. *** M-a and M-e now moves by sentence in multiline strings.
  680. Previously these two keys only moved by sentence in comments, which
  681. meant that sentence movement didn't work in strings containing
  682. documentation or other natural language text.
  683. The reason it's only activated in multiline strings (i.e. strings that
  684. contain a newline, even when escaped by a '\') is to avoid stopping in
  685. the short strings that often reside inside statements. Multiline
  686. strings almost always contain text in a natural language, as opposed
  687. to other strings that typically contain format specifications,
  688. commands, etc. Also, it's not that bothersome that M-a and M-e misses
  689. sentences in single line strings, since they're short anyway.
  690. *** Support for autodoc comments in Pike mode.
  691. Autodoc comments for Pike are used to extract documentation from the
  692. source, like Javadoc in Java. Pike mode now recognize this markup in
  693. comment prefixes and paragraph starts.
  694. *** The comment prefix regexps on c-comment-prefix may be mode specific.
  695. When c-comment-prefix is an association list, it specifies the comment
  696. line prefix on a per-mode basis, like c-default-style does. This
  697. change came about to support the special autodoc comment prefix in
  698. Pike mode only.
  699. *** Better handling of syntactic errors.
  700. The recovery after unbalanced parens earlier in the buffer has been
  701. improved; CC Mode now reports them by dinging and giving a message
  702. stating the offending line, but still recovers and indent the
  703. following lines in a sane way (most of the time). An "else" with no
  704. matching "if" is handled similarly. If an error is discovered while
  705. indenting a region, the whole region is still indented and the error
  706. is reported afterwards.
  707. *** Lineup functions may now return absolute columns.
  708. A lineup function can give an absolute column to indent the line to by
  709. returning a vector with the desired column as the first element.
  710. *** More robust and warning-free byte compilation.
  711. Although this is strictly not a user visible change (well, depending
  712. on the view of a user), it's still worth mentioning that CC Mode now
  713. can be compiled in the standard ways without causing trouble. Some
  714. code have also been moved between the subpackages to enhance the
  715. modularity somewhat. Thanks to Martin Buchholz for doing the
  716. groundwork.
  717. *** c-style-variables-are-local-p now defaults to t.
  718. This is an incompatible change that has been made to make the behavior
  719. of the style system wrt global variable settings less confusing for
  720. non-advanced users. If you know what this variable does you might
  721. want to set it to nil in your .emacs, otherwise you probably don't
  722. have to bother.
  723. Defaulting c-style-variables-are-local-p to t avoids the confusing
  724. situation that occurs when a user sets some style variables globally
  725. and edits both a Java and a non-Java file in the same Emacs session.
  726. If the style variables aren't buffer local in this case, loading of
  727. the second file will cause the default style (either "gnu" or "java"
  728. by default) to override the global settings made by the user.
  729. *** New initialization procedure for the style system.
  730. When the initial style for a buffer is determined by CC Mode (from the
  731. variable c-default-style), the global values of style variables now
  732. take precedence over the values specified by the chosen style. This
  733. is different than the old behavior: previously, the style-specific
  734. settings would override the global settings. This change makes it
  735. possible to do simple configuration in the intuitive way with
  736. Customize or with setq lines in one's .emacs file.
  737. By default, the global value of every style variable is the new
  738. special symbol set-from-style, which causes the value to be taken from
  739. the style system. This means that in effect, only an explicit setting
  740. of a style variable will cause the "overriding" behavior described
  741. above.
  742. Also note that global settings override style-specific settings *only*
  743. when the initial style of a buffer is chosen by a CC Mode major mode
  744. function. When a style is chosen in other ways --- for example, by a
  745. call like (c-set-style "gnu") in a hook, or via M-x c-set-style ---
  746. then the style-specific values take precedence over any global style
  747. values. In Lisp terms, global values override style-specific values
  748. only when the new second argument to c-set-style is non-nil; see the
  749. function documentation for more info.
  750. The purpose of these changes is to make it easier for users,
  751. especially novice users, to do simple customizations with Customize or
  752. with setq in their .emacs files. On the other hand, the new system is
  753. intended to be compatible with advanced users' customizations as well,
  754. such as those that choose styles in hooks or whatnot. This new system
  755. is believed to be almost entirely compatible with current
  756. configurations, in spite of the changed precedence between style and
  757. global variable settings when a buffer's default style is set.
  758. (Thanks to Eric Eide for clarifying this explanation a bit.)
  759. **** c-offsets-alist is now a customizable variable.
  760. This became possible as a result of the new initialization behavior.
  761. This variable is treated slightly differently from the other style
  762. variables; instead of using the symbol set-from-style, it will be
  763. completed with the syntactic symbols it doesn't already contain when
  764. the style is first initialized. This means it now defaults to the
  765. empty list to make all syntactic elements get their values from the
  766. style system.
  767. **** Compatibility variable to restore the old behavior.
  768. In case your configuration doesn't work with this change, you can set
  769. c-old-style-variable-behavior to non-nil to get the old behavior back
  770. as far as possible.
  771. *** Improvements to line breaking and text filling.
  772. CC Mode now handles this more intelligently and seamlessly wrt the
  773. surrounding code, especially inside comments. For details see the new
  774. chapter about this in the manual.
  775. **** New variable to recognize comment line prefix decorations.
  776. The variable c-comment-prefix-regexp has been added to properly
  777. recognize the line prefix in both block and line comments. It's
  778. primarily used to initialize the various paragraph recognition and
  779. adaptive filling variables that the text handling functions uses.
  780. **** New variable c-block-comment-prefix.
  781. This is a generalization of the now obsolete variable
  782. c-comment-continuation-stars to handle arbitrary strings.
  783. **** CC Mode now uses adaptive fill mode.
  784. This to make it adapt better to the paragraph style inside comments.
  785. It's also possible to use other adaptive filling packages inside CC
  786. Mode, notably Kyle E. Jones' Filladapt mode (http://wonderworks.com/).
  787. A new convenience function c-setup-filladapt sets up Filladapt for use
  788. inside CC Mode.
  789. Note though that the 2.12 version of Filladapt lacks a feature that
  790. causes it to work suboptimally when c-comment-prefix-regexp can match
  791. the empty string (which it commonly does). A patch for that is
  792. available from the CC Mode web site (http://www.python.org/emacs/
  793. cc-mode/).
  794. **** The variables `c-hanging-comment-starter-p' and
  795. `c-hanging-comment-ender-p', which controlled how comment starters and
  796. enders were filled, are not used anymore. The new version of the
  797. function `c-fill-paragraph' keeps the comment starters and enders as
  798. they were before the filling.
  799. **** It's now possible to selectively turn off auto filling.
  800. The variable c-ignore-auto-fill is used to ignore auto fill mode in
  801. specific contexts, e.g. in preprocessor directives and in string
  802. literals.
  803. **** New context sensitive line break function c-context-line-break.
  804. It works like newline-and-indent in normal code, and adapts the line
  805. prefix according to the comment style when used inside comments. If
  806. you're normally using newline-and-indent, you might want to switch to
  807. this function.
  808. *** Fixes to IDL mode.
  809. It now does a better job in recognizing only the constructs relevant
  810. to IDL. E.g. it no longer matches "class" as the beginning of a
  811. struct block, but it does match the CORBA 2.3 "valuetype" keyword.
  812. Thanks to Eric Eide.
  813. *** Improvements to the Whitesmith style.
  814. It now keeps the style consistently on all levels and both when
  815. opening braces hangs and when they don't.
  816. **** New lineup function c-lineup-whitesmith-in-block.
  817. *** New lineup functions c-lineup-template-args and c-indent-multi-line-block.
  818. See their docstrings for details. c-lineup-template-args does a
  819. better job of tracking the brackets used as parens in C++ templates,
  820. and is used by default to line up continued template arguments.
  821. *** c-lineup-comment now preserves alignment with a comment on the
  822. previous line. It used to instead preserve comments that started in
  823. the column specified by comment-column.
  824. *** c-lineup-C-comments handles "free form" text comments.
  825. In comments with a long delimiter line at the start, the indentation
  826. is kept unchanged for lines that start with an empty comment line
  827. prefix. This is intended for the type of large block comments that
  828. contain documentation with its own formatting. In these you normally
  829. don't want CC Mode to change the indentation.
  830. *** The `c' syntactic symbol is now relative to the comment start
  831. instead of the previous line, to make integers usable as lineup
  832. arguments.
  833. *** All lineup functions have gotten docstrings.
  834. *** More preprocessor directive movement functions.
  835. c-down-conditional does the reverse of c-up-conditional.
  836. c-up-conditional-with-else and c-down-conditional-with-else are
  837. variants of these that also stops at "#else" lines (suggested by Don
  838. Provan).
  839. *** Minor improvements to many movement functions in tricky situations.
  840. ** Dired changes
  841. *** New variable `dired-recursive-deletes' determines if the delete
  842. command will delete non-empty directories recursively. The default
  843. is, delete only empty directories.
  844. *** New variable `dired-recursive-copies' determines if the copy
  845. command will copy directories recursively. The default is, do not
  846. copy directories recursively.
  847. *** In command `dired-do-shell-command' (usually bound to `!') a `?'
  848. in the shell command has a special meaning similar to `*', but with
  849. the difference that the command will be run on each file individually.
  850. *** The new command `dired-find-alternate-file' (usually bound to `a')
  851. replaces the Dired buffer with the buffer for an alternate file or
  852. directory.
  853. *** The new command `dired-show-file-type' (usually bound to `y') shows
  854. a message in the echo area describing what type of file the point is on.
  855. This command invokes the external program `file' do its work, and so
  856. will only work on systems with that program, and will be only as
  857. accurate or inaccurate as it is.
  858. *** Dired now properly handles undo changes of adding/removing `-R'
  859. from ls switches.
  860. *** Dired commands that prompt for a destination file now allow the use
  861. of the `M-n' command in the minibuffer to insert the source filename,
  862. which the user can then edit. This only works if there is a single
  863. source file, not when operating on multiple marked files.
  864. ** Gnus changes.
  865. The Gnus NEWS entries are short, but they reflect sweeping changes in
  866. four areas: Article display treatment, MIME treatment,
  867. internationalization and mail-fetching.
  868. *** The mail-fetching functions have changed. See the manual for the
  869. many details. In particular, all procmail fetching variables are gone.
  870. If you used procmail like in
  871. (setq nnmail-use-procmail t)
  872. (setq nnmail-spool-file 'procmail)
  873. (setq nnmail-procmail-directory "~/mail/incoming/")
  874. (setq nnmail-procmail-suffix "\\.in")
  875. this now has changed to
  876. (setq mail-sources
  877. '((directory :path "~/mail/incoming/"
  878. :suffix ".in")))
  879. More information is available in the info doc at Select Methods ->
  880. Getting Mail -> Mail Sources
  881. *** Gnus is now a MIME-capable reader. This affects many parts of
  882. Gnus, and adds a slew of new commands. See the manual for details.
  883. Separate MIME packages like RMIME, mime-compose etc., will probably no
  884. longer work; remove them and use the native facilities.
  885. The FLIM/SEMI package still works with Emacs 21, but if you want to
  886. use the native facilities, you must remove any mailcap.el[c] that was
  887. installed by FLIM/SEMI version 1.13 or earlier.
  888. *** Gnus has also been multilingualized. This also affects too many
  889. parts of Gnus to summarize here, and adds many new variables. There
  890. are built-in facilities equivalent to those of gnus-mule.el, which is
  891. now just a compatibility layer.
  892. *** gnus-mule.el is now just a compatibility layer over the built-in
  893. Gnus facilities.
  894. *** gnus-auto-select-first can now be a function to be
  895. called to position point.
  896. *** The user can now decide which extra headers should be included in
  897. summary buffers and NOV files.
  898. *** `gnus-article-display-hook' has been removed. Instead, a number
  899. of variables starting with `gnus-treat-' have been added.
  900. *** The Gnus posting styles have been redone again and now work in a
  901. subtly different manner.
  902. *** New web-based backends have been added: nnslashdot, nnwarchive
  903. and nnultimate. nnweb has been revamped, again, to keep up with
  904. ever-changing layouts.
  905. *** Gnus can now read IMAP mail via nnimap.
  906. *** There is image support of various kinds and some sound support.
  907. ** Changes in Texinfo mode.
  908. *** A couple of new key bindings have been added for inserting Texinfo
  909. macros
  910. Key binding Macro
  911. -------------------------
  912. C-c C-c C-s @strong
  913. C-c C-c C-e @emph
  914. C-c C-c u @uref
  915. C-c C-c q @quotation
  916. C-c C-c m @email
  917. C-c C-o @<block> ... @end <block>
  918. M-RET @item
  919. *** The " key now inserts either " or `` or '' depending on context.
  920. ** Changes in Outline mode.
  921. There is now support for Imenu to index headings. A new command
  922. `outline-headers-as-kill' copies the visible headings in the region to
  923. the kill ring, e.g. to produce a table of contents.
  924. ** Changes to Emacs Server
  925. *** The new option `server-kill-new-buffers' specifies what to do
  926. with buffers when done with them. If non-nil, the default, buffers
  927. are killed, unless they were already present before visiting them with
  928. Emacs Server. If nil, `server-temp-file-regexp' specifies which
  929. buffers to kill, as before.
  930. Please note that only buffers are killed that still have a client,
  931. i.e. buffers visited with `emacsclient --no-wait' are never killed in
  932. this way.
  933. ** Both emacsclient and Emacs itself now accept command line options
  934. of the form +LINE:COLUMN in addition to +LINE.
  935. ** Changes to Show Paren mode.
  936. *** Overlays used by Show Paren mode now use a priority property.
  937. The new user option show-paren-priority specifies the priority to
  938. use. Default is 1000.
  939. ** New command M-x check-parens can be used to find unbalanced paren
  940. groups and strings in buffers in Lisp mode (or other modes).
  941. ** Changes to hideshow.el
  942. *** Generalized block selection and traversal
  943. A block is now recognized by its start and end regexps (both strings),
  944. and an integer specifying which sub-expression in the start regexp
  945. serves as the place where a `forward-sexp'-like function can operate.
  946. See the documentation of variable `hs-special-modes-alist'.
  947. *** During incremental search, if Hideshow minor mode is active,
  948. hidden blocks are temporarily shown. The variable `hs-headline' can
  949. be used in the mode line format to show the line at the beginning of
  950. the open block.
  951. *** User option `hs-hide-all-non-comment-function' specifies a
  952. function to be called at each top-level block beginning, instead of
  953. the normal block-hiding function.
  954. *** The command `hs-show-region' has been removed.
  955. *** The key bindings have changed to fit the Emacs conventions,
  956. roughly imitating those of Outline minor mode. Notably, the prefix
  957. for all bindings is now `C-c @'. For details, see the documentation
  958. for `hs-minor-mode'.
  959. *** The variable `hs-show-hidden-short-form' has been removed, and
  960. hideshow.el now always behaves as if this variable were set to t.
  961. ** Changes to Change Log mode and Add-Log functions
  962. *** If you invoke `add-change-log-entry' from a backup file, it makes
  963. an entry appropriate for the file's parent. This is useful for making
  964. log entries by comparing a version with deleted functions.
  965. **** New command M-x change-log-merge merges another log into the
  966. current buffer.
  967. *** New command M-x change-log-redate fixes any old-style date entries
  968. in a log file.
  969. *** Change Log mode now adds a file's version number to change log
  970. entries if user-option `change-log-version-info-enabled' is non-nil.
  971. Unless the file is under version control the search for a file's
  972. version number is performed based on regular expressions from
  973. `change-log-version-number-regexp-list' which can be customized.
  974. Version numbers are only found in the first 10 percent of a file.
  975. *** Change Log mode now defines its own faces for font-lock highlighting.
  976. ** Changes to cmuscheme
  977. *** The user-option `scheme-program-name' has been renamed
  978. `cmuscheme-program-name' due to conflicts with xscheme.el.
  979. ** Changes in Font Lock
  980. *** The new function `font-lock-remove-keywords' can be used to remove
  981. font-lock keywords from the current buffer or from a specific major mode.
  982. *** Multi-line patterns are now supported. Modes using this, should
  983. set font-lock-multiline to t in their font-lock-defaults.
  984. *** `font-lock-syntactic-face-function' allows major-modes to choose
  985. the face used for each string/comment.
  986. *** A new standard face `font-lock-doc-face'.
  987. Meant for Lisp docstrings, Javadoc comments and other "documentation in code".
  988. ** Changes to Shell mode
  989. *** The `shell' command now accepts an optional argument to specify the buffer
  990. to use, which defaults to "*shell*". When used interactively, a
  991. non-default buffer may be specified by giving the `shell' command a
  992. prefix argument (causing it to prompt for the buffer name).
  993. ** Comint (subshell) changes
  994. These changes generally affect all modes derived from comint mode, which
  995. include shell-mode, gdb-mode, scheme-interaction-mode, etc.
  996. *** Comint now by default interprets some carriage-control characters.
  997. Comint now removes CRs from CR LF sequences, and treats single CRs and
  998. BSs in the output in a way similar to a terminal (by deleting to the
  999. beginning of the line, or deleting the previous character,
  1000. respectively). This is achieved by adding `comint-carriage-motion' to
  1001. the `comint-output-filter-functions' hook by default.
  1002. *** By default, comint no longer uses the variable `comint-prompt-regexp'
  1003. to distinguish prompts from user-input. Instead, it notices which
  1004. parts of the text were output by the process, and which entered by the
  1005. user, and attaches `field' properties to allow emacs commands to use
  1006. this information. Common movement commands, notably beginning-of-line,
  1007. respect field boundaries in a fairly natural manner. To disable this
  1008. feature, and use the old behavior, customize the user option
  1009. `comint-use-prompt-regexp-instead-of-fields'.
  1010. *** Comint now includes new features to send commands to running processes
  1011. and redirect the output to a designated buffer or buffers.
  1012. *** The command M-x comint-redirect-send-command reads a command and
  1013. buffer name from the mini-buffer. The command is sent to the current
  1014. buffer's process, and its output is inserted into the specified buffer.
  1015. The command M-x comint-redirect-send-command-to-process acts like
  1016. M-x comint-redirect-send-command but additionally reads the name of
  1017. the buffer whose process should be used from the mini-buffer.
  1018. *** Packages based on comint now highlight user input and program prompts,
  1019. and support choosing previous input with mouse-2. To control these features,
  1020. see the user-options `comint-highlight-input' and `comint-highlight-prompt'.
  1021. *** The new command `comint-write-output' (usually bound to `C-c C-s')
  1022. saves the output from the most recent command to a file. With a prefix
  1023. argument, it appends to the file.
  1024. *** The command `comint-kill-output' has been renamed `comint-delete-output'
  1025. (usually bound to `C-c C-o'); the old name is aliased to it for
  1026. compatibility.
  1027. *** The new function `comint-add-to-input-history' adds commands to the input
  1028. ring (history).
  1029. *** The new variable `comint-input-history-ignore' is a regexp for
  1030. identifying history lines that should be ignored, like tcsh time-stamp
  1031. strings, starting with a `#'. The default value of this variable is "^#".
  1032. ** Changes to Rmail mode
  1033. *** The new user-option rmail-user-mail-address-regexp can be
  1034. set to fine tune the identification of the correspondent when
  1035. receiving new mail. If it matches the address of the sender, the
  1036. recipient is taken as correspondent of a mail. If nil, the default,
  1037. `user-login-name' and `user-mail-address' are used to exclude yourself
  1038. as correspondent.
  1039. Usually you don't have to set this variable, except if you collect
  1040. mails sent by you under different user names. Then it should be a
  1041. regexp matching your mail addresses.
  1042. *** The new user-option rmail-confirm-expunge controls whether and how
  1043. to ask for confirmation before expunging deleted messages from an
  1044. Rmail file. You can choose between no confirmation, confirmation
  1045. with y-or-n-p, or confirmation with yes-or-no-p. Default is to ask
  1046. for confirmation with yes-or-no-p.
  1047. *** RET is now bound in the Rmail summary to rmail-summary-goto-msg,
  1048. like `j'.
  1049. *** There is a new user option `rmail-digest-end-regexps' that
  1050. specifies the regular expressions to detect the line that ends a
  1051. digest message.
  1052. *** The new user option `rmail-automatic-folder-directives' specifies
  1053. in which folder to put messages automatically.
  1054. *** The new function `rmail-redecode-body' allows to fix a message
  1055. with non-ASCII characters if Emacs happens to decode it incorrectly
  1056. due to missing or malformed "charset=" header.
  1057. ** The new user-option `mail-envelope-from' can be used to specify
  1058. an envelope-from address different from user-mail-address.
  1059. ** The variable mail-specify-envelope-from controls whether to
  1060. use the -f option when sending mail.
  1061. ** The Rmail command `o' (`rmail-output-to-rmail-file') now writes the
  1062. current message in the internal `emacs-mule' encoding, rather than in
  1063. the encoding taken from the variable `buffer-file-coding-system'.
  1064. This allows to save messages whose characters cannot be safely encoded
  1065. by the buffer's coding system, and makes sure the message will be
  1066. displayed correctly when you later visit the target Rmail file.
  1067. If you want your Rmail files be encoded in a specific coding system
  1068. other than `emacs-mule', you can customize the variable
  1069. `rmail-file-coding-system' to set its value to that coding system.
  1070. ** Changes to TeX mode
  1071. *** The default mode has been changed from `plain-tex-mode' to
  1072. `latex-mode'.
  1073. *** latex-mode now has a simple indentation algorithm.
  1074. *** M-f and M-p jump around \begin...\end pairs.
  1075. *** Added support for outline-minor-mode.
  1076. ** Changes to RefTeX mode
  1077. *** RefTeX has new support for index generation. Index entries can be
  1078. created with `C-c <', with completion available on index keys.
  1079. Pressing `C-c /' indexes the word at the cursor with a default
  1080. macro. `C-c >' compiles all index entries into an alphabetically
  1081. sorted *Index* buffer which looks like the final index. Entries
  1082. can be edited from that buffer.
  1083. *** Label and citation key selection now allow to select several
  1084. items and reference them together (use `m' to mark items, `a' or
  1085. `A' to use all marked entries).
  1086. *** reftex.el has been split into a number of smaller files to reduce
  1087. memory use when only a part of RefTeX is being used.
  1088. *** a new command `reftex-view-crossref-from-bibtex' (bound to `C-c &'
  1089. in BibTeX-mode) can be called in a BibTeX database buffer in order
  1090. to show locations in LaTeX documents where a particular entry has
  1091. been cited.
  1092. ** Emacs Lisp mode now allows multiple levels of outline headings.
  1093. The level of a heading is determined from the number of leading
  1094. semicolons in a heading line. Toplevel forms starting with a `('
  1095. in column 1 are always made leaves.
  1096. ** The M-x time-stamp command (most commonly used on write-file-hooks)
  1097. has the following new features:
  1098. *** The patterns for finding the time stamp and for updating a pattern
  1099. may match text spanning multiple lines. For example, some people like
  1100. to have the filename and date on separate lines. The new variable
  1101. time-stamp-inserts-lines controls the matching for multi-line patterns.
  1102. *** More than one time stamp can be updated in the same file. This
  1103. feature is useful if you need separate time stamps in a program source
  1104. file to both include in formatted documentation and insert in the
  1105. compiled binary. The same time-stamp will be written at each matching
  1106. pattern. The variable time-stamp-count enables this new feature; it
  1107. defaults to 1.
  1108. ** Partial Completion mode now completes environment variables in
  1109. file names.
  1110. ** Ispell changes
  1111. *** The command `ispell' now spell-checks a region if
  1112. transient-mark-mode is on, and the mark is active. Otherwise it
  1113. spell-checks the current buffer.
  1114. *** Support for synchronous subprocesses - DOS/Windoze - has been
  1115. added.
  1116. *** An "alignment error" bug was fixed when a manual spelling
  1117. correction is made and re-checked.
  1118. *** Italian, Portuguese, and Slovak dictionary definitions have been added.
  1119. *** Region skipping performance has been vastly improved in some
  1120. cases.
  1121. *** Spell checking HTML buffers has been improved and isn't so strict
  1122. on syntax errors.
  1123. *** The buffer-local words are now always placed on a new line at the
  1124. end of the buffer.
  1125. *** Spell checking now works in the MS-DOS version of Emacs.
  1126. *** The variable `ispell-format-word' has been renamed to
  1127. `ispell-format-word-function'. The old name is still available as
  1128. alias.
  1129. ** Makefile mode changes
  1130. *** The mode now uses the abbrev table `makefile-mode-abbrev-table'.
  1131. *** Conditionals and include statements are now highlighted when
  1132. Fontlock mode is active.
  1133. ** Isearch changes
  1134. *** Isearch now puts a call to `isearch-resume' in the command history,
  1135. so that searches can be resumed.
  1136. *** In Isearch mode, C-M-s and C-M-r are now bound like C-s and C-r,
  1137. respectively, i.e. you can repeat a regexp isearch with the same keys
  1138. that started the search.
  1139. *** In Isearch mode, mouse-2 in the echo area now yanks the current
  1140. selection into the search string rather than giving an error.
  1141. *** There is a new lazy highlighting feature in incremental search.
  1142. Lazy highlighting is switched on/off by customizing variable
  1143. `isearch-lazy-highlight'. When active, all matches for the current
  1144. search string are highlighted. The current match is highlighted as
  1145. before using face `isearch' or `region'. All other matches are
  1146. highlighted using face `isearch-lazy-highlight-face' which defaults to
  1147. `secondary-selection'.
  1148. The extra highlighting makes it easier to anticipate where the cursor
  1149. will end up each time you press C-s or C-r to repeat a pending search.
  1150. Highlighting of these additional matches happens in a deferred fashion
  1151. using "idle timers," so the cycles needed do not rob isearch of its
  1152. usual snappy response.
  1153. If `isearch-lazy-highlight-cleanup' is set to t, highlights for
  1154. matches are automatically cleared when you end the search. If it is
  1155. set to nil, you can remove the highlights manually with `M-x
  1156. isearch-lazy-highlight-cleanup'.
  1157. ** VC Changes
  1158. VC has been overhauled internally. It is now modular, making it
  1159. easier to plug-in arbitrary version control backends. (See Lisp
  1160. Changes for details on the new structure.) As a result, the mechanism
  1161. to enable and disable support for particular version systems has
  1162. changed: everything is now controlled by the new variable
  1163. `vc-handled-backends'. Its value is a list of symbols that identify
  1164. version systems; the default is '(RCS CVS SCCS). When finding a file,
  1165. each of the backends in that list is tried in order to see whether the
  1166. file is registered in that backend.
  1167. When registering a new file, VC first tries each of the listed
  1168. backends to see if any of them considers itself "responsible" for the
  1169. directory of the file (e.g. because a corresponding subdirectory for
  1170. master files exists). If none of the backends is responsible, then
  1171. the first backend in the list that could register the file is chosen.
  1172. As a consequence, the variable `vc-default-back-end' is now obsolete.
  1173. The old variable `vc-master-templates' is also obsolete, although VC
  1174. still supports it for backward compatibility. To define templates for
  1175. RCS or SCCS, you should rather use the new variables
  1176. vc-{rcs,sccs}-master-templates. (There is no such feature under CVS
  1177. where it doesn't make sense.)
  1178. The variables `vc-ignore-vc-files' and `vc-handle-cvs' are also
  1179. obsolete now, you must set `vc-handled-backends' to nil or exclude
  1180. `CVS' from the list, respectively, to achieve their effect now.
  1181. *** General Changes
  1182. The variable `vc-checkout-carefully' is obsolete: the corresponding
  1183. checks are always done now.
  1184. VC Dired buffers are now kept up-to-date during all version control
  1185. operations.
  1186. `vc-diff' output is now displayed in `diff-mode'.
  1187. `vc-print-log' uses `log-view-mode'.
  1188. `vc-log-mode' (used for *VC-Log*) has been replaced by `log-edit-mode'.
  1189. The command C-x v m (vc-merge) now accepts an empty argument as the
  1190. first revision number. This means that any recent changes on the
  1191. current branch should be picked up from the repository and merged into
  1192. the working file (``merge news'').
  1193. The commands C-x v s (vc-create-snapshot) and C-x v r
  1194. (vc-retrieve-snapshot) now ask for a directory name from which to work
  1195. downwards.
  1196. *** Multiple Backends
  1197. VC now lets you register files in more than one backend. This is
  1198. useful, for example, if you are working with a slow remote CVS
  1199. repository. You can then use RCS for local editing, and occasionally
  1200. commit your changes back to CVS, or pick up changes from CVS into your
  1201. local RCS archives.
  1202. To make this work, the ``more local'' backend (RCS in our example)
  1203. should come first in `vc-handled-backends', and the ``more remote''
  1204. backend (CVS) should come later. (The default value of
  1205. `vc-handled-backends' already has it that way.)
  1206. You can then commit changes to another backend (say, RCS), by typing
  1207. C-u C-x v v RCS RET (i.e. vc-next-action now accepts a backend name as
  1208. a revision number). VC registers the file in the more local backend
  1209. if that hasn't already happened, and commits to a branch based on the
  1210. current revision number from the more remote backend.
  1211. If a file is registered in multiple backends, you can switch to
  1212. another one using C-x v b (vc-switch-backend). This does not change
  1213. any files, it only changes VC's perspective on the file. Use this to
  1214. pick up changes from CVS while working under RCS locally.
  1215. After you are done with your local RCS editing, you can commit your
  1216. changes back to CVS using C-u C-x v v CVS RET. In this case, the
  1217. local RCS archive is removed after the commit, and the log entry
  1218. buffer is initialized to contain the entire RCS change log of the file.
  1219. *** Changes for CVS
  1220. There is a new user option, `vc-cvs-stay-local'. If it is `t' (the
  1221. default), then VC avoids network queries for files registered in
  1222. remote repositories. The state of such files is then only determined
  1223. by heuristics and past information. `vc-cvs-stay-local' can also be a
  1224. regexp to match against repository hostnames; only files from hosts
  1225. that match it are treated locally. If the variable is nil, then VC
  1226. queries the repository just as often as it does for local files.
  1227. If `vc-cvs-stay-local' is on, then VC also makes local backups of
  1228. repository versions. This means that ordinary diffs (C-x v =) and
  1229. revert operations (C-x v u) can be done completely locally, without
  1230. any repository interactions at all. The name of a local version
  1231. backup of FILE is FILE.~REV.~, where REV is the repository version
  1232. number. This format is similar to that used by C-x v ~
  1233. (vc-version-other-window), except for the trailing dot. As a matter
  1234. of fact, the two features can each use the files created by the other,
  1235. the only difference being that files with a trailing `.' are deleted
  1236. automatically after commit. (This feature doesn't work on MS-DOS,
  1237. since DOS disallows more than a single dot in the trunk of a file
  1238. name.)
  1239. If `vc-cvs-stay-local' is on, and there have been changes in the
  1240. repository, VC notifies you about it when you actually try to commit.
  1241. If you want to check for updates from the repository without trying to
  1242. commit, you can either use C-x v m RET to perform an update on the
  1243. current file, or you can use C-x v r RET to get an update for an
  1244. entire directory tree.
  1245. The new user option `vc-cvs-use-edit' indicates whether VC should call
  1246. "cvs edit" to make files writable; it defaults to `t'. (This option
  1247. is only meaningful if the CVSREAD variable is set, or if files are
  1248. "watched" by other developers.)
  1249. The commands C-x v s (vc-create-snapshot) and C-x v r
  1250. (vc-retrieve-snapshot) are now also implemented for CVS. If you give
  1251. an empty snapshot name to the latter, that performs a `cvs update',
  1252. starting at the given directory.
  1253. *** Lisp Changes in VC
  1254. VC has been restructured internally to make it modular. You can now
  1255. add support for arbitrary version control backends by writing a
  1256. library that provides a certain set of backend-specific functions, and
  1257. then telling VC to use that library. For example, to add support for
  1258. a version system named SYS, you write a library named vc-sys.el, which
  1259. provides a number of functions vc-sys-... (see commentary at the top
  1260. of vc.el for a detailed list of them). To make VC use that library,
  1261. you need to put it somewhere into Emacs' load path and add the symbol
  1262. `SYS' to the list `vc-handled-backends'.
  1263. ** The customizable EDT emulation package now supports the EDT
  1264. SUBS command and EDT scroll margins. It also works with more
  1265. terminal/keyboard configurations and it now works under XEmacs.
  1266. See etc/edt-user.doc for more information.
  1267. ** New modes and packages
  1268. *** The new global minor mode `minibuffer-electric-default-mode'
  1269. automatically hides the `(default ...)' part of minibuffer prompts when
  1270. the default is not applicable.
  1271. *** Artist is an Emacs lisp package that allows you to draw lines,
  1272. rectangles and ellipses by using your mouse and/or keyboard. The
  1273. shapes are made up with the ascii characters |, -, / and \.
  1274. Features are:
  1275. - Intersecting: When a `|' intersects with a `-', a `+' is
  1276. drawn, like this: | \ /
  1277. --+-- X
  1278. | / \
  1279. - Rubber-banding: When drawing lines you can interactively see the
  1280. result while holding the mouse button down and moving the mouse. If
  1281. your machine is not fast enough (a 386 is a bit too slow, but a
  1282. pentium is well enough), you can turn this feature off. You will
  1283. then see 1's and 2's which mark the 1st and 2nd endpoint of the line
  1284. you are drawing.
  1285. - Arrows: After having drawn a (straight) line or a (straight)
  1286. poly-line, you can set arrows on the line-ends by typing < or >.
  1287. - Flood-filling: You can fill any area with a certain character by
  1288. flood-filling.
  1289. - Cut copy and paste: You can cut, copy and paste rectangular
  1290. regions. Artist also interfaces with the rect package (this can be
  1291. turned off if it causes you any trouble) so anything you cut in
  1292. artist can be yanked with C-x r y and vice versa.
  1293. - Drawing with keys: Everything you can do with the mouse, you can
  1294. also do without the mouse.
  1295. - Aspect-ratio: You can set the variable artist-aspect-ratio to
  1296. reflect the height-width ratio for the font you are using. Squares
  1297. and circles are then drawn square/round. Note, that once your
  1298. ascii-file is shown with font with a different height-width ratio,
  1299. the squares won't be square and the circles won't be round.
  1300. - Drawing operations: The following drawing operations are implemented:
  1301. lines straight-lines
  1302. rectangles squares
  1303. poly-lines straight poly-lines
  1304. ellipses circles
  1305. text (see-thru) text (overwrite)
  1306. spray-can setting size for spraying
  1307. vaporize line vaporize lines
  1308. erase characters erase rectangles
  1309. Straight lines are lines that go horizontally, vertically or
  1310. diagonally. Plain lines go in any direction. The operations in
  1311. the right column are accessed by holding down the shift key while
  1312. drawing.
  1313. It is possible to vaporize (erase) entire lines and connected lines
  1314. (rectangles for example) as long as the lines being vaporized are
  1315. straight and connected at their endpoints. Vaporizing is inspired
  1316. by the drawrect package by Jari Aalto <jari.aalto@poboxes.com>.
  1317. - Picture mode compatibility: Artist is picture mode compatible (this
  1318. can be turned off).
  1319. *** The new package Eshell is an operating system command shell
  1320. implemented entirely in Emacs Lisp. Use `M-x eshell' to invoke it.
  1321. It functions similarly to bash and zsh, and allows running of Lisp
  1322. functions and external commands using the same syntax. It supports
  1323. history lists, aliases, extended globbing, smart scrolling, etc. It
  1324. will work on any platform Emacs has been ported to. And since most of
  1325. the basic commands -- ls, rm, mv, cp, ln, du, cat, etc. -- have been
  1326. rewritten in Lisp, it offers an operating-system independent shell,
  1327. all within the scope of your Emacs process.
  1328. *** The new package timeclock.el is a mode is for keeping track of time
  1329. intervals. You can use it for whatever purpose you like, but the
  1330. typical scenario is to keep track of how much time you spend working
  1331. on certain projects.
  1332. *** The new package hi-lock.el provides commands to highlight matches
  1333. of interactively entered regexps. For example,
  1334. M-x highlight-regexp RET clearly RET RET
  1335. will highlight all occurrences of `clearly' using a yellow background
  1336. face. New occurrences of `clearly' will be highlighted as they are
  1337. typed. `M-x unhighlight-regexp RET' will remove the highlighting.
  1338. Any existing face can be used for highlighting and a set of
  1339. appropriate faces is provided. The regexps can be written into the
  1340. current buffer in a form that will be recognized the next time the
  1341. corresponding file is read. There are commands to highlight matches
  1342. to phrases and to highlight entire lines containing a match.
  1343. *** The new package zone.el plays games with Emacs' display when
  1344. Emacs is idle.
  1345. *** The new package tildify.el allows to add hard spaces or other text
  1346. fragments in accordance with the current major mode.
  1347. *** The new package xml.el provides a simple but generic XML
  1348. parser. It doesn't parse the DTDs however.
  1349. *** The comment operations are now provided by the newcomment.el
  1350. package which allows different styles of comment-region and should
  1351. be more robust while offering the same functionality.
  1352. `comment-region' now doesn't always comment a-line-at-a-time, but only
  1353. comments the region, breaking the line at point if necessary.
  1354. *** The Ebrowse package implements a C++ class browser and tags
  1355. facilities tailored for use with C++. It is documented in a
  1356. separate Texinfo file.
  1357. *** The PCL-CVS package available by either running M-x cvs-examine or
  1358. by visiting a CVS administrative directory (with a prefix argument)
  1359. provides an alternative interface to VC-dired for CVS. It comes with
  1360. `log-view-mode' to view RCS and SCCS logs and `log-edit-mode' used to
  1361. enter check-in log messages.
  1362. *** The new package called `woman' allows to browse Unix man pages
  1363. without invoking external programs.
  1364. The command `M-x woman' formats manual pages entirely in Emacs Lisp
  1365. and then displays them, like `M-x manual-entry' does. Unlike
  1366. `manual-entry', `woman' does not invoke any external programs, so it
  1367. is useful on systems such as MS-DOS/MS-Windows where the `man' and
  1368. Groff or `troff' commands are not readily available.
  1369. The command `M-x woman-find-file' asks for the file name of a man
  1370. page, then formats and displays it like `M-x woman' does.
  1371. *** The new command M-x re-builder offers a convenient interface for
  1372. authoring regular expressions with immediate visual feedback.
  1373. The buffer from which the command was called becomes the target for
  1374. the regexp editor popping up in a separate window. Matching text in
  1375. the target buffer is immediately color marked during the editing.
  1376. Each sub-expression of the regexp will show up in a different face so
  1377. even complex regexps can be edited and verified on target data in a
  1378. single step.
  1379. On displays not supporting faces the matches instead blink like
  1380. matching parens to make them stand out. On such a setup you will
  1381. probably also want to use the sub-expression mode when the regexp
  1382. contains such to get feedback about their respective limits.
  1383. *** glasses-mode is a minor mode that makes
  1384. unreadableIdentifiersLikeThis readable. It works as glasses, without
  1385. actually modifying content of a buffer.
  1386. *** The package ebnf2ps translates an EBNF to a syntactic chart in
  1387. PostScript.
  1388. Currently accepts ad-hoc EBNF, ISO EBNF and Bison/Yacc.
  1389. The ad-hoc default EBNF syntax has the following elements:
  1390. ; comment (until end of line)
  1391. A non-terminal
  1392. "C" terminal
  1393. ?C? special
  1394. $A default non-terminal
  1395. $"C" default terminal
  1396. $?C? default special
  1397. A = B. production (A is the header and B the body)
  1398. C D sequence (C occurs before D)
  1399. C | D alternative (C or D occurs)
  1400. A - B exception (A excluding B, B without any non-terminal)
  1401. n * A repetition (A repeats n (integer) times)
  1402. (C) group (expression C is grouped together)
  1403. [C] optional (C may or not occurs)
  1404. C+ one or more occurrences of C
  1405. {C}+ one or more occurrences of C
  1406. {C}* zero or more occurrences of C
  1407. {C} zero or more occurrences of C
  1408. C / D equivalent to: C {D C}*
  1409. {C || D}+ equivalent to: C {D C}*
  1410. {C || D}* equivalent to: [C {D C}*]
  1411. {C || D} equivalent to: [C {D C}*]
  1412. Please, see ebnf2ps documentation for EBNF syntax and how to use it.
  1413. *** The package align.el will align columns within a region, using M-x
  1414. align. Its mode-specific rules, based on regular expressions,
  1415. determine where the columns should be split. In C and C++, for
  1416. example, it will align variable names in declaration lists, or the
  1417. equal signs of assignments.
  1418. *** `paragraph-indent-minor-mode' is a new minor mode supporting
  1419. paragraphs in the same style as `paragraph-indent-text-mode'.
  1420. *** bs.el is a new package for buffer selection similar to
  1421. list-buffers or electric-buffer-list. Use M-x bs-show to display a
  1422. buffer menu with this package. See the Custom group `bs'.
  1423. *** find-lisp.el is a package emulating the Unix find command in Lisp.
  1424. *** calculator.el is a small calculator package that is intended to
  1425. replace desktop calculators such as xcalc and calc.exe. Actually, it
  1426. is not too small - it has more features than most desktop calculators,
  1427. and can be customized easily to get many more functions. It should
  1428. not be confused with "calc" which is a much bigger mathematical tool
  1429. which answers different needs.
  1430. *** The minor modes cwarn-mode and global-cwarn-mode highlights
  1431. suspicious C and C++ constructions. Currently, assignments inside
  1432. expressions, semicolon following `if', `for' and `while' (except, of
  1433. course, after a `do .. while' statement), and C++ functions with
  1434. reference parameters are recognized. The modes require font-lock mode
  1435. to be enabled.
  1436. *** smerge-mode.el provides `smerge-mode', a simple minor-mode for files
  1437. containing diff3-style conflict markers, such as generated by RCS.
  1438. *** 5x5.el is a simple puzzle game.
  1439. *** hl-line.el provides `hl-line-mode', a minor mode to highlight the
  1440. current line in the current buffer. It also provides
  1441. `global-hl-line-mode' to provide the same behavior in all buffers.
  1442. *** ansi-color.el translates ANSI terminal escapes into text-properties.
  1443. Please note: if `ansi-color-for-comint-mode' and
  1444. `global-font-lock-mode' are non-nil, loading ansi-color.el will
  1445. disable font-lock and add `ansi-color-apply' to
  1446. `comint-preoutput-filter-functions' for all shell-mode buffers. This
  1447. displays the output of "ls --color=yes" using the correct foreground
  1448. and background colors.
  1449. *** delphi.el provides a major mode for editing the Delphi (Object
  1450. Pascal) language.
  1451. *** quickurl.el provides a simple method of inserting a URL based on
  1452. the text at point.
  1453. *** sql.el provides an interface to SQL data bases.
  1454. *** fortune.el uses the fortune program to create mail/news signatures.
  1455. *** whitespace.el is a package for warning about and cleaning bogus
  1456. whitespace in a file.
  1457. *** PostScript mode (ps-mode) is a new major mode for editing PostScript
  1458. files. It offers: interaction with a PostScript interpreter, including
  1459. (very basic) error handling; fontification, easily customizable for
  1460. interpreter messages; auto-indentation; insertion of EPSF templates and
  1461. often used code snippets; viewing of BoundingBox; commenting out /
  1462. uncommenting regions; conversion of 8bit characters to PostScript octal
  1463. codes. All functionality is accessible through a menu.
  1464. *** delim-col helps to prettify columns in a text region or rectangle.
  1465. Here is an example of columns:
  1466. horse apple bus
  1467. dog pineapple car EXTRA
  1468. porcupine strawberry airplane
  1469. Doing the following settings:
  1470. (setq delimit-columns-str-before "[ ")
  1471. (setq delimit-columns-str-after " ]")
  1472. (setq delimit-columns-str-separator ", ")
  1473. (setq delimit-columns-separator "\t")
  1474. Selecting the lines above and typing:
  1475. M-x delimit-columns-region
  1476. It results:
  1477. [ horse , apple , bus , ]
  1478. [ dog , pineapple , car , EXTRA ]
  1479. [ porcupine, strawberry, airplane, ]
  1480. delim-col has the following options:
  1481. delimit-columns-str-before Specify a string to be inserted
  1482. before all columns.
  1483. delimit-columns-str-separator Specify a string to be inserted
  1484. between each column.
  1485. delimit-columns-str-after Specify a string to be inserted
  1486. after all columns.
  1487. delimit-columns-separator Specify a regexp which separates
  1488. each column.
  1489. delim-col has the following commands:
  1490. delimit-columns-region Prettify all columns in a text region.
  1491. delimit-columns-rectangle Prettify all columns in a text rectangle.
  1492. *** Recentf mode maintains a menu for visiting files that were
  1493. operated on recently. User option recentf-menu-filter specifies a
  1494. menu filter function to change the menu appearance. For example, the
  1495. recent file list can be displayed:
  1496. - organized by major modes, directories or user defined rules.
  1497. - sorted by file paths, file names, ascending or descending.
  1498. - showing paths relative to the current default-directory
  1499. The `recentf-filter-changer' menu filter function allows to
  1500. dynamically change the menu appearance.
  1501. *** elide-head.el provides a mechanism for eliding boilerplate header
  1502. text.
  1503. *** footnote.el provides `footnote-mode', a minor mode supporting use
  1504. of footnotes. It is intended for use with Message mode, but isn't
  1505. specific to Message mode.
  1506. *** diff-mode.el provides `diff-mode', a major mode for
  1507. viewing/editing context diffs (patches). It is selected for files
  1508. with extension `.diff', `.diffs', `.patch' and `.rej'.
  1509. *** EUDC, the Emacs Unified Directory Client, provides a common user
  1510. interface to access directory servers using different directory
  1511. protocols. It has a separate manual.
  1512. *** autoconf.el provides a major mode for editing configure.in files
  1513. for Autoconf, selected automatically.
  1514. *** windmove.el provides moving between windows.
  1515. *** crm.el provides a facility to read multiple strings from the
  1516. minibuffer with completion.
  1517. *** todo-mode.el provides management of TODO lists and integration
  1518. with the diary features.
  1519. *** autoarg.el provides a feature reported from Twenex Emacs whereby
  1520. numeric keys supply prefix args rather than self inserting.
  1521. *** The function `turn-off-auto-fill' unconditionally turns off Auto
  1522. Fill mode.
  1523. *** pcomplete.el is a library that provides programmable completion
  1524. facilities for Emacs, similar to what zsh and tcsh offer. The main
  1525. difference is that completion functions are written in Lisp, meaning
  1526. they can be profiled, debugged, etc.
  1527. *** antlr-mode is a new major mode for editing ANTLR grammar files.
  1528. It is automatically turned on for files whose names have the extension
  1529. `.g'.
  1530. ** Changes in sort.el
  1531. The function sort-numeric-fields interprets numbers starting with `0'
  1532. as octal and numbers starting with `0x' or `0X' as hexadecimal. The
  1533. new user-option sort-numeric-base can be used to specify a default
  1534. numeric base.
  1535. ** Changes to Ange-ftp
  1536. *** Ange-ftp allows you to specify of a port number in remote file
  1537. names cleanly. It is appended to the host name, separated by a hash
  1538. sign, e.g. `/foo@bar.org#666:mumble'. (This syntax comes from EFS.)
  1539. *** If the new user-option `ange-ftp-try-passive-mode' is set, passive
  1540. ftp mode will be used if the ftp client supports that.
  1541. *** Ange-ftp handles the output of the w32-style clients which
  1542. output ^M at the end of lines.
  1543. ** The recommended way of using Iswitchb is via the new global minor
  1544. mode `iswitchb-mode'.
  1545. ** Just loading the msb package doesn't switch on Msb mode anymore.
  1546. If you have `(require 'msb)' in your .emacs, please replace it with
  1547. `(msb-mode 1)'.
  1548. ** Changes in Flyspell mode
  1549. *** Flyspell mode has various new options. See the `flyspell' Custom
  1550. group.
  1551. *** The variable `flyspell-generic-check-word-p' has been renamed
  1552. to `flyspell-generic-check-word-predicate'. The old name is still
  1553. available as alias.
  1554. ** The user option `backward-delete-char-untabify-method' controls the
  1555. behavior of `backward-delete-char-untabify'. The following values
  1556. are recognized:
  1557. `untabify' -- turn a tab to many spaces, then delete one space;
  1558. `hungry' -- delete all whitespace, both tabs and spaces;
  1559. `all' -- delete all whitespace, including tabs, spaces and newlines;
  1560. nil -- just delete one character.
  1561. Default value is `untabify'.
  1562. [This change was made in Emacs 20.3 but not mentioned then.]
  1563. ** In Cperl mode `cperl-invalid-face' should now be a normal face
  1564. symbol, not double-quoted.
  1565. ** Some packages are declared obsolete, to be removed in a future
  1566. version. They are: auto-show, c-mode, hilit19, hscroll, ooutline,
  1567. profile, rnews, rnewspost, and sc. Their implementations have been
  1568. moved to lisp/obsolete.
  1569. ** auto-compression mode is no longer enabled just by loading jka-compr.el.
  1570. To control it, set `auto-compression-mode' via Custom or use the
  1571. `auto-compression-mode' command.
  1572. ** `browse-url-gnome-moz' is a new option for
  1573. `browse-url-browser-function', invoking Mozilla in GNOME, and
  1574. `browse-url-kde' can be chosen for invoking the KDE browser.
  1575. ** The user-option `browse-url-new-window-p' has been renamed to
  1576. `browse-url-new-window-flag'.
  1577. ** The functions `keep-lines', `flush-lines' and `how-many' now
  1578. operate on the active region in Transient Mark mode.
  1579. ** `gnus-user-agent' is a new possibility for `mail-user-agent'. It
  1580. is like `message-user-agent', but with all the Gnus paraphernalia.
  1581. ** The Strokes package has been updated. If your Emacs has XPM
  1582. support, you can use it for pictographic editing. In Strokes mode,
  1583. use C-mouse-2 to compose a complex stoke and insert it into the
  1584. buffer. You can encode or decode a strokes buffer with new commands
  1585. M-x strokes-encode-buffer and M-x strokes-decode-buffer. There is a
  1586. new command M-x strokes-list-strokes.
  1587. ** Hexl contains a new command `hexl-insert-hex-string' which inserts
  1588. a string of hexadecimal numbers read from the mini-buffer.
  1589. ** Hexl mode allows to insert non-ASCII characters.
  1590. The non-ASCII characters are encoded using the same encoding as the
  1591. file you are visiting in Hexl mode.
  1592. ** Shell script mode changes.
  1593. Shell script mode (sh-script) can now indent scripts for shells
  1594. derived from sh and rc. The indentation style is customizable, and
  1595. sh-script can attempt to "learn" the current buffer's style.
  1596. ** Etags changes.
  1597. *** In DOS, etags looks for file.cgz if it cannot find file.c.
  1598. *** New option --ignore-case-regex is an alternative to --regex. It is now
  1599. possible to bind a regexp to a language, by prepending the regexp with
  1600. {lang}, where lang is one of the languages that `etags --help' prints out.
  1601. This feature is useful especially for regex files, where each line contains
  1602. a regular expression. The manual contains details.
  1603. *** In C and derived languages, etags creates tags for function
  1604. declarations when given the --declarations option.
  1605. *** In C++, tags are created for "operator". The tags have the form
  1606. "operator+", without spaces between the keyword and the operator.
  1607. *** You shouldn't generally need any more the -C or -c++ option: etags
  1608. automatically switches to C++ parsing when it meets the `class' or
  1609. `template' keywords.
  1610. *** Etags now is able to delve at arbitrary deeps into nested structures in
  1611. C-like languages. Previously, it was limited to one or two brace levels.
  1612. *** New language Ada: tags are functions, procedures, packages, tasks, and
  1613. types.
  1614. *** In Fortran, `procedure' is not tagged.
  1615. *** In Java, tags are created for "interface".
  1616. *** In Lisp, "(defstruct (foo", "(defun (operator" and similar constructs
  1617. are now tagged.
  1618. *** In makefiles, tags the targets.
  1619. *** In Perl, the --globals option tags global variables. my and local
  1620. variables are tagged.
  1621. *** New language Python: def and class at the beginning of a line are tags.
  1622. *** .ss files are Scheme files, .pdb is PostScript with C syntax, .psw is
  1623. for PSWrap.
  1624. ** Changes in etags.el
  1625. *** The new user-option tags-case-fold-search can be used to make
  1626. tags operations case-sensitive or case-insensitive. The default
  1627. is to use the same setting as case-fold-search.
  1628. *** You can display additional output with M-x tags-apropos by setting
  1629. the new variable tags-apropos-additional-actions.
  1630. If non-nil, the variable's value should be a list of triples (TITLE
  1631. FUNCTION TO-SEARCH). For each triple, M-x tags-apropos processes
  1632. TO-SEARCH and lists tags from it. TO-SEARCH should be an alist,
  1633. obarray, or symbol. If it is a symbol, the symbol's value is used.
  1634. TITLE is a string to use to label the list of tags from TO-SEARCH.
  1635. FUNCTION is a function to call when an entry is selected in the Tags
  1636. List buffer. It is called with one argument, the selected symbol.
  1637. A useful example value for this variable might be something like:
  1638. '(("Emacs Lisp" Info-goto-emacs-command-node obarray)
  1639. ("Common Lisp" common-lisp-hyperspec common-lisp-hyperspec-obarray)
  1640. ("SCWM" scwm-documentation scwm-obarray))
  1641. *** The face tags-tag-face can be used to customize the appearance
  1642. of tags in the output of M-x tags-apropos.
  1643. *** Setting tags-apropos-verbose to a non-nil value displays the
  1644. names of tags files in the *Tags List* buffer.
  1645. *** You can now search for tags that are part of the filename itself.
  1646. If you have tagged the files topfile.c subdir/subfile.c
  1647. /tmp/tempfile.c, you can now search for tags "topfile.c", "subfile.c",
  1648. "dir/sub", "tempfile", "tempfile.c". If the tag matches the file name,
  1649. point will go to the beginning of the file.
  1650. *** Compressed files are now transparently supported if
  1651. auto-compression-mode is active. You can tag (with Etags) and search
  1652. (with find-tag) both compressed and uncompressed files.
  1653. *** Tags commands like M-x tags-search no longer change point
  1654. in buffers where no match is found. In buffers where a match is
  1655. found, the original value of point is pushed on the marker ring.
  1656. ** Fortran mode has a new command `fortran-strip-sequence-nos' to
  1657. remove text past column 72. The syntax class of `\' in Fortran is now
  1658. appropriate for C-style escape sequences in strings.
  1659. ** SGML mode's default `sgml-validate-command' is now `nsgmls'.
  1660. ** A new command `view-emacs-problems' (C-h P) displays the PROBLEMS file.
  1661. ** The Dabbrev package has a new user-option `dabbrev-ignored-regexps'
  1662. containing a list of regular expressions. Buffers matching a regular
  1663. expression from that list, are not checked.
  1664. ** Emacs can now figure out modification times of remote files.
  1665. When you do C-x C-f /user@host:/path/file RET and edit the file,
  1666. and someone else modifies the file, you will be prompted to revert
  1667. the buffer, just like for the local files.
  1668. ** The buffer menu (C-x C-b) no longer lists the *Buffer List* buffer.
  1669. ** When invoked with a prefix argument, the command `list-abbrevs' now
  1670. displays local abbrevs, only.
  1671. ** Refill minor mode provides preliminary support for keeping
  1672. paragraphs filled as you modify them.
  1673. ** The variable `double-click-fuzz' specifies how much the mouse
  1674. may be moved between clicks that are recognized as a pair. Its value
  1675. is measured in pixels.
  1676. ** The new global minor mode `auto-image-file-mode' allows image files
  1677. to be visited as images.
  1678. ** Two new user-options `grep-command' and `grep-find-command'
  1679. were added to compile.el.
  1680. ** Withdrawn packages
  1681. *** mldrag.el has been removed. mouse.el provides the same
  1682. functionality with aliases for the mldrag functions.
  1683. *** eval-reg.el has been obsoleted by changes to edebug.el and removed.
  1684. *** ph.el has been obsoleted by EUDC and removed.
  1685. * Incompatible Lisp changes in 21.1
  1686. There are a few Lisp changes which are not backwards-compatible and
  1687. may require changes to existing code. Here is a list for reference.
  1688. See the sections below for details.
  1689. ** Since `format' preserves text properties, the idiom
  1690. `(format "%s" foo)' no longer works to copy and remove properties.
  1691. Use `copy-sequence' to copy the string, then use `set-text-properties'
  1692. to remove the properties of the copy.
  1693. ** Since the `keymap' text property now has significance, some code
  1694. which uses both `local-map' and `keymap' properties (for portability)
  1695. may, for instance, give rise to duplicate menus when the keymaps from
  1696. these properties are active.
  1697. ** The change in the treatment of non-ASCII characters in search
  1698. ranges may affect some code.
  1699. ** A non-nil value for the LOCAL arg of add-hook makes the hook
  1700. buffer-local even if `make-local-hook' hasn't been called, which might
  1701. make a difference to some code.
  1702. ** The new treatment of the minibuffer prompt might affect code which
  1703. operates on the minibuffer.
  1704. ** The new character sets `eight-bit-control' and `eight-bit-graphic'
  1705. cause `no-conversion' and `emacs-mule-unix' coding systems to produce
  1706. different results when reading files with non-ASCII characters
  1707. (previously, both coding systems would produce the same results).
  1708. Specifically, `no-conversion' interprets each 8-bit byte as a separate
  1709. character. This makes `no-conversion' inappropriate for reading
  1710. multibyte text, e.g. buffers written to disk in their internal MULE
  1711. encoding (auto-saving does that, for example). If a Lisp program
  1712. reads such files with `no-conversion', each byte of the multibyte
  1713. sequence, including the MULE leading codes such as \201, is treated as
  1714. a separate character, which prevents them from being interpreted in
  1715. the buffer as multibyte characters.
  1716. Therefore, Lisp programs that read files which contain the internal
  1717. MULE encoding should use `emacs-mule-unix'. `no-conversion' is only
  1718. appropriate for reading truly binary files.
  1719. ** Code that relies on the obsolete `before-change-function' and
  1720. `after-change-function' to detect buffer changes will now fail. Use
  1721. `before-change-functions' and `after-change-functions' instead.
  1722. ** Code that uses `concat' with integer args now gets an error, as
  1723. long promised. So does any code that uses derivatives of `concat',
  1724. such as `mapconcat'.
  1725. ** The function base64-decode-string now always returns a unibyte
  1726. string.
  1727. ** Not a Lisp incompatibility as such but, with the introduction of
  1728. extra private charsets, there is now only one slot free for a new
  1729. dimension-2 private charset. User code which tries to add more than
  1730. one extra will fail unless you rebuild Emacs with some standard
  1731. charset(s) removed; that is probably inadvisable because it changes
  1732. the emacs-mule encoding. Also, files stored in the emacs-mule
  1733. encoding using Emacs 20 with additional private charsets defined will
  1734. probably not be read correctly by Emacs 21.
  1735. ** The variable `directory-sep-char' is slated for removal.
  1736. Not really a change (yet), but a projected one that you should be
  1737. aware of: The variable `directory-sep-char' is deprecated, and should
  1738. not be used. It was always ignored on GNU/Linux and Unix systems and
  1739. on MS-DOS, but the MS-Windows port tried to support it by adapting the
  1740. behavior of certain primitives to the value of this variable. It
  1741. turned out that such support cannot be reliable, so it was decided to
  1742. remove this variable in the near future. Lisp programs are well
  1743. advised not to set it to anything but '/', because any different value
  1744. will not have any effect when support for this variable is removed.
  1745. * Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
  1746. (Display-related features are described in a page of their own below.)
  1747. ** Function assq-delete-all replaces function assoc-delete-all.
  1748. ** The new function animate-string, from lisp/play/animate.el
  1749. allows the animated display of strings.
  1750. ** The new function `interactive-form' can be used to obtain the
  1751. interactive form of a function.
  1752. ** The keyword :set-after in defcustom allows to specify dependencies
  1753. between custom options. Example:
  1754. (defcustom default-input-method nil
  1755. "*Default input method for multilingual text (a string).
  1756. This is the input method activated automatically by the command
  1757. `toggle-input-method' (\\[toggle-input-method])."
  1758. :group 'mule
  1759. :type '(choice (const nil) string)
  1760. :set-after '(current-language-environment))
  1761. This specifies that default-input-method should be set after
  1762. current-language-environment even if default-input-method appears
  1763. first in a custom-set-variables statement.
  1764. ** The new hook `kbd-macro-termination-hook' is run at the end of
  1765. function execute-kbd-macro. Functions on this hook are called with no
  1766. args. The hook is run independent of how the macro was terminated
  1767. (signal or normal termination).
  1768. ** Functions `butlast' and `nbutlast' for removing trailing elements
  1769. from a list are now available without requiring the CL package.
  1770. ** The new user-option `even-window-heights' can be set to nil
  1771. to prevent `display-buffer' from evening out window heights.
  1772. ** The user-option `face-font-registry-alternatives' specifies
  1773. alternative font registry names to try when looking for a font.
  1774. ** Function `md5' calculates the MD5 "message digest"/"checksum".
  1775. ** Function `delete-frame' runs `delete-frame-hook' before actually
  1776. deleting the frame. The hook is called with one arg, the frame
  1777. being deleted.
  1778. ** `add-hook' now makes the hook local if called with a non-nil LOCAL arg.
  1779. ** The treatment of non-ASCII characters in search ranges has changed.
  1780. If a range in a regular expression or the arg of
  1781. skip-chars-forward/backward starts with a unibyte character C and ends
  1782. with a multibyte character C2, the range is divided into two: one is
  1783. C..?\377, the other is C1..C2, where C1 is the first character of C2's
  1784. charset.
  1785. ** The new function `display-message-or-buffer' displays a message in
  1786. the echo area or pops up a buffer, depending on the length of the
  1787. message.
  1788. ** The new macro `with-auto-compression-mode' allows evaluating an
  1789. expression with auto-compression-mode enabled.
  1790. ** In image specifications, `:heuristic-mask' has been replaced
  1791. with the more general `:mask' property.
  1792. ** Image specifications accept more `:conversion's.
  1793. ** A `?' can be used in a symbol name without escaping it with a
  1794. backslash.
  1795. ** Reading from the mini-buffer now reads from standard input if Emacs
  1796. is running in batch mode. For example,
  1797. (message "%s" (read t))
  1798. will read a Lisp expression from standard input and print the result
  1799. to standard output.
  1800. ** The argument of `down-list', `backward-up-list', `up-list',
  1801. `kill-sexp', `backward-kill-sexp' and `mark-sexp' is now optional.
  1802. ** If `display-buffer-reuse-frames' is set, function `display-buffer'
  1803. will raise frames displaying a buffer, instead of creating a new
  1804. frame or window.
  1805. ** Two new functions for removing elements from lists/sequences
  1806. were added
  1807. - Function: remove ELT SEQ
  1808. Return a copy of SEQ with all occurrences of ELT removed. SEQ must be
  1809. a list, vector, or string. The comparison is done with `equal'.
  1810. - Function: remq ELT LIST
  1811. Return a copy of LIST with all occurrences of ELT removed. The
  1812. comparison is done with `eq'.
  1813. ** The function `delete' now also works with vectors and strings.
  1814. ** The meaning of the `:weakness WEAK' argument of make-hash-table
  1815. has been changed: WEAK can now have new values `key-or-value' and
  1816. `key-and-value', in addition to `nil', `key', `value', and `t'.
  1817. ** Function `aset' stores any multibyte character in any string
  1818. without signaling "Attempt to change char length of a string". It may
  1819. convert a unibyte string to multibyte if necessary.
  1820. ** The value of the `help-echo' text property is called as a function
  1821. or evaluated, if it is not a string already, to obtain a help string.
  1822. ** Function `make-obsolete' now has an optional arg to say when the
  1823. function was declared obsolete.
  1824. ** Function `plist-member' is renamed from `widget-plist-member' (which is
  1825. retained as an alias).
  1826. ** Easy-menu's :filter now takes the unconverted form of the menu and
  1827. the result is automatically converted to Emacs' form.
  1828. ** The new function `window-list' has been defined
  1829. - Function: window-list &optional FRAME WINDOW MINIBUF
  1830. Return a list of windows on FRAME, starting with WINDOW. FRAME nil or
  1831. omitted means use the selected frame. WINDOW nil or omitted means use
  1832. the selected window. MINIBUF t means include the minibuffer window,
  1833. even if it isn't active. MINIBUF nil or omitted means include the
  1834. minibuffer window only if it's active. MINIBUF neither nil nor t
  1835. means never include the minibuffer window.
  1836. ** There's a new function `get-window-with-predicate' defined as follows
  1837. - Function: get-window-with-predicate PREDICATE &optional MINIBUF ALL-FRAMES DEFAULT
  1838. Return a window satisfying PREDICATE.
  1839. This function cycles through all visible windows using `walk-windows',
  1840. calling PREDICATE on each one. PREDICATE is called with a window as
  1841. argument. The first window for which PREDICATE returns a non-nil
  1842. value is returned. If no window satisfies PREDICATE, DEFAULT is
  1843. returned.
  1844. Optional second arg MINIBUF t means count the minibuffer window even
  1845. if not active. MINIBUF nil or omitted means count the minibuffer if
  1846. it is active. MINIBUF neither t nor nil means not to count the
  1847. minibuffer even if it is active.
  1848. Several frames may share a single minibuffer; if the minibuffer
  1849. counts, all windows on all frames that share that minibuffer count
  1850. too. Therefore, if you are using a separate minibuffer frame
  1851. and the minibuffer is active and MINIBUF says it counts,
  1852. `walk-windows' includes the windows in the frame from which you
  1853. entered the minibuffer, as well as the minibuffer window.
  1854. ALL-FRAMES is the optional third argument.
  1855. ALL-FRAMES nil or omitted means cycle within the frames as specified above.
  1856. ALL-FRAMES = `visible' means include windows on all visible frames.
  1857. ALL-FRAMES = 0 means include windows on all visible and iconified frames.
  1858. ALL-FRAMES = t means include windows on all frames including invisible frames.
  1859. If ALL-FRAMES is a frame, it means include windows on that frame.
  1860. Anything else means restrict to the selected frame.
  1861. ** The function `single-key-description' now encloses function key and
  1862. event names in angle brackets. When called with a second optional
  1863. argument non-nil, angle brackets won't be printed.
  1864. ** If the variable `message-truncate-lines' is bound to t around a
  1865. call to `message', the echo area will not be resized to display that
  1866. message; it will be truncated instead, as it was done in 20.x.
  1867. Default value is nil.
  1868. ** The user option `line-number-display-limit' can now be set to nil,
  1869. meaning no limit.
  1870. ** The new user option `line-number-display-limit-width' controls
  1871. the maximum width of lines in a buffer for which Emacs displays line
  1872. numbers in the mode line. The default is 200.
  1873. ** `select-safe-coding-system' now also checks the most preferred
  1874. coding-system if buffer-file-coding-system is `undecided' and
  1875. DEFAULT-CODING-SYSTEM is not specified,
  1876. ** The function `subr-arity' provides information about the argument
  1877. list of a primitive.
  1878. ** `where-is-internal' now also accepts a list of keymaps.
  1879. ** The text property `keymap' specifies a key map which overrides the
  1880. buffer's local map and the map specified by the `local-map' property.
  1881. This is probably what most current uses of `local-map' want, rather
  1882. than replacing the local map.
  1883. ** The obsolete variables `before-change-function' and
  1884. `after-change-function' are no longer acted upon and have been
  1885. removed. Use `before-change-functions' and `after-change-functions'
  1886. instead.
  1887. ** The function `apropos-mode' runs the hook `apropos-mode-hook'.
  1888. ** `concat' no longer accepts individual integer arguments,
  1889. as promised long ago.
  1890. ** The new function `float-time' returns the current time as a float.
  1891. ** The new variable auto-coding-regexp-alist specifies coding systems
  1892. for reading specific files, analogous to auto-coding-alist, but
  1893. patterns are checked against file contents instead of file names.
  1894. * Lisp changes in Emacs 21.1 (see following page for display-related features)
  1895. ** The new package rx.el provides an alternative sexp notation for
  1896. regular expressions.
  1897. - Function: rx-to-string SEXP
  1898. Translate SEXP into a regular expression in string notation.
  1899. - Macro: rx SEXP
  1900. Translate SEXP into a regular expression in string notation.
  1901. The following are valid subforms of regular expressions in sexp
  1902. notation.
  1903. STRING
  1904. matches string STRING literally.
  1905. CHAR
  1906. matches character CHAR literally.
  1907. `not-newline'
  1908. matches any character except a newline.
  1909. .
  1910. `anything'
  1911. matches any character
  1912. `(any SET)'
  1913. matches any character in SET. SET may be a character or string.
  1914. Ranges of characters can be specified as `A-Z' in strings.
  1915. '(in SET)'
  1916. like `any'.
  1917. `(not (any SET))'
  1918. matches any character not in SET
  1919. `line-start'
  1920. matches the empty string, but only at the beginning of a line
  1921. in the text being matched
  1922. `line-end'
  1923. is similar to `line-start' but matches only at the end of a line
  1924. `string-start'
  1925. matches the empty string, but only at the beginning of the
  1926. string being matched against.
  1927. `string-end'
  1928. matches the empty string, but only at the end of the
  1929. string being matched against.
  1930. `buffer-start'
  1931. matches the empty string, but only at the beginning of the
  1932. buffer being matched against.
  1933. `buffer-end'
  1934. matches the empty string, but only at the end of the
  1935. buffer being matched against.
  1936. `point'
  1937. matches the empty string, but only at point.
  1938. `word-start'
  1939. matches the empty string, but only at the beginning or end of a
  1940. word.
  1941. `word-end'
  1942. matches the empty string, but only at the end of a word.
  1943. `word-boundary'
  1944. matches the empty string, but only at the beginning or end of a
  1945. word.
  1946. `(not word-boundary)'
  1947. matches the empty string, but not at the beginning or end of a
  1948. word.
  1949. `digit'
  1950. matches 0 through 9.
  1951. `control'
  1952. matches ASCII control characters.
  1953. `hex-digit'
  1954. matches 0 through 9, a through f and A through F.
  1955. `blank'
  1956. matches space and tab only.
  1957. `graphic'
  1958. matches graphic characters--everything except ASCII control chars,
  1959. space, and DEL.
  1960. `printing'
  1961. matches printing characters--everything except ASCII control chars
  1962. and DEL.
  1963. `alphanumeric'
  1964. matches letters and digits. (But at present, for multibyte characters,
  1965. it matches anything that has word syntax.)
  1966. `letter'
  1967. matches letters. (But at present, for multibyte characters,
  1968. it matches anything that has word syntax.)
  1969. `ascii'
  1970. matches ASCII (unibyte) characters.
  1971. `nonascii'
  1972. matches non-ASCII (multibyte) characters.
  1973. `lower'
  1974. matches anything lower-case.
  1975. `upper'
  1976. matches anything upper-case.
  1977. `punctuation'
  1978. matches punctuation. (But at present, for multibyte characters,
  1979. it matches anything that has non-word syntax.)
  1980. `space'
  1981. matches anything that has whitespace syntax.
  1982. `word'
  1983. matches anything that has word syntax.
  1984. `(syntax SYNTAX)'
  1985. matches a character with syntax SYNTAX. SYNTAX must be one
  1986. of the following symbols.
  1987. `whitespace' (\\s- in string notation)
  1988. `punctuation' (\\s.)
  1989. `word' (\\sw)
  1990. `symbol' (\\s_)
  1991. `open-parenthesis' (\\s()
  1992. `close-parenthesis' (\\s))
  1993. `expression-prefix' (\\s')
  1994. `string-quote' (\\s\")
  1995. `paired-delimiter' (\\s$)
  1996. `escape' (\\s\\)
  1997. `character-quote' (\\s/)
  1998. `comment-start' (\\s<)
  1999. `comment-end' (\\s>)
  2000. `(not (syntax SYNTAX))'
  2001. matches a character that has not syntax SYNTAX.
  2002. `(category CATEGORY)'
  2003. matches a character with category CATEGORY. CATEGORY must be
  2004. either a character to use for C, or one of the following symbols.
  2005. `consonant' (\\c0 in string notation)
  2006. `base-vowel' (\\c1)
  2007. `upper-diacritical-mark' (\\c2)
  2008. `lower-diacritical-mark' (\\c3)
  2009. `tone-mark' (\\c4)
  2010. `symbol' (\\c5)
  2011. `digit' (\\c6)
  2012. `vowel-modifying-diacritical-mark' (\\c7)
  2013. `vowel-sign' (\\c8)
  2014. `semivowel-lower' (\\c9)
  2015. `not-at-end-of-line' (\\c<)
  2016. `not-at-beginning-of-line' (\\c>)
  2017. `alpha-numeric-two-byte' (\\cA)
  2018. `chinse-two-byte' (\\cC)
  2019. `greek-two-byte' (\\cG)
  2020. `japanese-hiragana-two-byte' (\\cH)
  2021. `indian-two-byte' (\\cI)
  2022. `japanese-katakana-two-byte' (\\cK)
  2023. `korean-hangul-two-byte' (\\cN)
  2024. `cyrillic-two-byte' (\\cY)
  2025. `ascii' (\\ca)
  2026. `arabic' (\\cb)
  2027. `chinese' (\\cc)
  2028. `ethiopic' (\\ce)
  2029. `greek' (\\cg)
  2030. `korean' (\\ch)
  2031. `indian' (\\ci)
  2032. `japanese' (\\cj)
  2033. `japanese-katakana' (\\ck)
  2034. `latin' (\\cl)
  2035. `lao' (\\co)
  2036. `tibetan' (\\cq)
  2037. `japanese-roman' (\\cr)
  2038. `thai' (\\ct)
  2039. `vietnamese' (\\cv)
  2040. `hebrew' (\\cw)
  2041. `cyrillic' (\\cy)
  2042. `can-break' (\\c|)
  2043. `(not (category CATEGORY))'
  2044. matches a character that has not category CATEGORY.
  2045. `(and SEXP1 SEXP2 ...)'
  2046. matches what SEXP1 matches, followed by what SEXP2 matches, etc.
  2047. `(submatch SEXP1 SEXP2 ...)'
  2048. like `and', but makes the match accessible with `match-end',
  2049. `match-beginning', and `match-string'.
  2050. `(group SEXP1 SEXP2 ...)'
  2051. another name for `submatch'.
  2052. `(or SEXP1 SEXP2 ...)'
  2053. matches anything that matches SEXP1 or SEXP2, etc. If all
  2054. args are strings, use `regexp-opt' to optimize the resulting
  2055. regular expression.
  2056. `(minimal-match SEXP)'
  2057. produce a non-greedy regexp for SEXP. Normally, regexps matching
  2058. zero or more occurrences of something are \"greedy\" in that they
  2059. match as much as they can, as long as the overall regexp can
  2060. still match. A non-greedy regexp matches as little as possible.
  2061. `(maximal-match SEXP)'
  2062. produce a greedy regexp for SEXP. This is the default.
  2063. `(zero-or-more SEXP)'
  2064. matches zero or more occurrences of what SEXP matches.
  2065. `(0+ SEXP)'
  2066. like `zero-or-more'.
  2067. `(* SEXP)'
  2068. like `zero-or-more', but always produces a greedy regexp.
  2069. `(*? SEXP)'
  2070. like `zero-or-more', but always produces a non-greedy regexp.
  2071. `(one-or-more SEXP)'
  2072. matches one or more occurrences of A.
  2073. `(1+ SEXP)'
  2074. like `one-or-more'.
  2075. `(+ SEXP)'
  2076. like `one-or-more', but always produces a greedy regexp.
  2077. `(+? SEXP)'
  2078. like `one-or-more', but always produces a non-greedy regexp.
  2079. `(zero-or-one SEXP)'
  2080. matches zero or one occurrences of A.
  2081. `(optional SEXP)'
  2082. like `zero-or-one'.
  2083. `(? SEXP)'
  2084. like `zero-or-one', but always produces a greedy regexp.
  2085. `(?? SEXP)'
  2086. like `zero-or-one', but always produces a non-greedy regexp.
  2087. `(repeat N SEXP)'
  2088. matches N occurrences of what SEXP matches.
  2089. `(repeat N M SEXP)'
  2090. matches N to M occurrences of what SEXP matches.
  2091. `(eval FORM)'
  2092. evaluate FORM and insert result. If result is a string,
  2093. `regexp-quote' it.
  2094. `(regexp REGEXP)'
  2095. include REGEXP in string notation in the result.
  2096. *** The features `md5' and `overlay' are now provided by default.
  2097. *** The special form `save-restriction' now works correctly even if the
  2098. buffer is widened inside the save-restriction and changes made outside
  2099. the original restriction. Previously, doing this would cause the saved
  2100. restriction to be restored incorrectly.
  2101. *** The functions `find-charset-region' and `find-charset-string' include
  2102. `eight-bit-control' and/or `eight-bit-graphic' in the returned list
  2103. when they find 8-bit characters. Previously, they included `ascii' in a
  2104. multibyte buffer and `unknown' in a unibyte buffer.
  2105. *** The functions `set-buffer-multibyte', `string-as-multibyte' and
  2106. `string-as-unibyte' change the byte sequence of a buffer or a string
  2107. if it contains a character from the `eight-bit-control' character set.
  2108. *** The handling of multibyte sequences in a multibyte buffer is
  2109. changed. Previously, a byte sequence matching the pattern
  2110. [\200-\237][\240-\377]+ was interpreted as a single character
  2111. regardless of the length of the trailing bytes [\240-\377]+. Thus, if
  2112. the sequence was longer than what the leading byte indicated, the
  2113. extra trailing bytes were ignored by Lisp functions. Now such extra
  2114. bytes are independent 8-bit characters belonging to the charset
  2115. eight-bit-graphic.
  2116. ** Fontsets are now implemented using char-tables.
  2117. A fontset can now be specified for each independent character, for
  2118. a group of characters or for a character set rather than just for a
  2119. character set as previously.
  2120. *** The arguments of the function `set-fontset-font' are changed.
  2121. They are NAME, CHARACTER, FONTNAME, and optional FRAME. The function
  2122. modifies fontset NAME to use FONTNAME for CHARACTER.
  2123. CHARACTER may be a cons (FROM . TO), where FROM and TO are non-generic
  2124. characters. In that case FONTNAME is used for all characters in the
  2125. range FROM and TO (inclusive). CHARACTER may be a charset. In that
  2126. case FONTNAME is used for all character in the charset.
  2127. FONTNAME may be a cons (FAMILY . REGISTRY), where FAMILY is the family
  2128. name of a font and REGISTRY is a registry name of a font.
  2129. *** Variable x-charset-registry has been deleted. The default charset
  2130. registries of character sets are set in the default fontset
  2131. "fontset-default".
  2132. *** The function `create-fontset-from-fontset-spec' ignores the second
  2133. argument STYLE-VARIANT. It never creates style-variant fontsets.
  2134. ** The method of composing characters is changed. Now character
  2135. composition is done by a special text property `composition' in
  2136. buffers and strings.
  2137. *** Charset composition is deleted. Emacs never creates a `composite
  2138. character' which is an independent character with a unique character
  2139. code. Thus the following functions handling `composite characters'
  2140. have been deleted: composite-char-component,
  2141. composite-char-component-count, composite-char-composition-rule,
  2142. composite-char-composition-rule and decompose-composite-char delete.
  2143. The variables leading-code-composition and min-composite-char have
  2144. also been deleted.
  2145. *** Three more glyph reference points are added. They can be used to
  2146. specify a composition rule. See the documentation of the variable
  2147. `reference-point-alist' for more detail.
  2148. *** The function `compose-region' takes new arguments COMPONENTS and
  2149. MODIFICATION-FUNC. With COMPONENTS, you can specify not only a
  2150. composition rule but also characters to be composed. Such characters
  2151. may differ between buffer and string text.
  2152. *** The function `compose-string' takes new arguments START, END,
  2153. COMPONENTS, and MODIFICATION-FUNC.
  2154. *** The function `compose-string' puts text property `composition'
  2155. directly on the argument STRING instead of returning a new string.
  2156. Likewise, the function `decompose-string' just removes text property
  2157. `composition' from STRING.
  2158. *** The new function `find-composition' returns information about
  2159. a composition at a specified position in a buffer or a string.
  2160. *** The function `decompose-composite-char' is now labeled as
  2161. obsolete.
  2162. ** The new coding system `mac-roman' is primarily intended for use on
  2163. the Macintosh but may be used generally for Macintosh-encoded text.
  2164. ** The new character sets `mule-unicode-0100-24ff',
  2165. `mule-unicode-2500-33ff', and `mule-unicode-e000-ffff' have been
  2166. introduced for Unicode characters in the range U+0100..U+24FF,
  2167. U+2500..U+33FF, U+E000..U+FFFF respectively.
  2168. Note that the character sets are not yet unified in Emacs, so
  2169. characters which belong to charsets such as Latin-2, Greek, Hebrew,
  2170. etc. and the same characters in the `mule-unicode-*' charsets are
  2171. different characters, as far as Emacs is concerned. For example, text
  2172. which includes Unicode characters from the Latin-2 locale cannot be
  2173. encoded by Emacs with ISO 8859-2 coding system.
  2174. ** The new coding system `mule-utf-8' has been added.
  2175. It provides limited support for decoding/encoding UTF-8 text. For
  2176. details, please see the documentation string of this coding system.
  2177. ** The new character sets `japanese-jisx0213-1' and
  2178. `japanese-jisx0213-2' have been introduced for the new Japanese
  2179. standard JIS X 0213 Plane 1 and Plane 2.
  2180. ** The new character sets `latin-iso8859-14' and `latin-iso8859-15'
  2181. have been introduced.
  2182. ** The new character sets `eight-bit-control' and `eight-bit-graphic'
  2183. have been introduced for 8-bit characters in the ranges 0x80..0x9F and
  2184. 0xA0..0xFF respectively. Note that the multibyte representation of
  2185. eight-bit-control is never exposed; this leads to an exception in the
  2186. emacs-mule coding system, which encodes everything else to the
  2187. buffer/string internal representation. Note that to search for
  2188. eight-bit-graphic characters in a multibyte buffer, the search string
  2189. must be multibyte, otherwise such characters will be converted to
  2190. their multibyte equivalent.
  2191. ** If the APPEND argument of `write-region' is an integer, it seeks to
  2192. that offset in the file before writing.
  2193. ** The function `add-minor-mode' has been added for convenience and
  2194. compatibility with XEmacs (and is used internally by define-minor-mode).
  2195. ** The function `shell-command' now sets the default directory of the
  2196. `*Shell Command Output*' buffer to the default directory of the buffer
  2197. from which the command was issued.
  2198. ** The functions `query-replace', `query-replace-regexp',
  2199. `query-replace-regexp-eval' `map-query-replace-regexp',
  2200. `replace-string', `replace-regexp', and `perform-replace' take two
  2201. additional optional arguments START and END that specify the region to
  2202. operate on.
  2203. ** The new function `count-screen-lines' is a more flexible alternative
  2204. to `window-buffer-height'.
  2205. - Function: count-screen-lines &optional BEG END COUNT-FINAL-NEWLINE WINDOW
  2206. Return the number of screen lines in the region between BEG and END.
  2207. The number of screen lines may be different from the number of actual
  2208. lines, due to line breaking, display table, etc.
  2209. Optional arguments BEG and END default to `point-min' and `point-max'
  2210. respectively.
  2211. If region ends with a newline, ignore it unless optional third argument
  2212. COUNT-FINAL-NEWLINE is non-nil.
  2213. The optional fourth argument WINDOW specifies the window used for
  2214. obtaining parameters such as width, horizontal scrolling, and so
  2215. on. The default is to use the selected window's parameters.
  2216. Like `vertical-motion', `count-screen-lines' always uses the current
  2217. buffer, regardless of which buffer is displayed in WINDOW. This makes
  2218. possible to use `count-screen-lines' in any buffer, whether or not it
  2219. is currently displayed in some window.
  2220. ** The new function `mapc' is like `mapcar' but doesn't collect the
  2221. argument function's results.
  2222. ** The functions base64-decode-region and base64-decode-string now
  2223. signal an error instead of returning nil if decoding fails. Also,
  2224. `base64-decode-string' now always returns a unibyte string (in Emacs
  2225. 20, it returned a multibyte string when the result was a valid multibyte
  2226. sequence).
  2227. ** The function sendmail-user-agent-compose now recognizes a `body'
  2228. header in the list of headers passed to it.
  2229. ** The new function member-ignore-case works like `member', but
  2230. ignores differences in case and text representation.
  2231. ** The buffer-local variable cursor-type can be used to specify the
  2232. cursor to use in windows displaying a buffer. Values are interpreted
  2233. as follows:
  2234. t use the cursor specified for the frame (default)
  2235. nil don't display a cursor
  2236. `bar' display a bar cursor with default width
  2237. (bar . WIDTH) display a bar cursor with width WIDTH
  2238. others display a box cursor.
  2239. ** The variable open-paren-in-column-0-is-defun-start controls whether
  2240. an open parenthesis in column 0 is considered to be the start of a
  2241. defun. If set, the default, it is considered a defun start. If not
  2242. set, an open parenthesis in column 0 has no special meaning.
  2243. ** The new function `string-to-syntax' can be used to translate syntax
  2244. specifications in string form as accepted by `modify-syntax-entry' to
  2245. the cons-cell form that is used for the values of the `syntax-table'
  2246. text property, and in `font-lock-syntactic-keywords'.
  2247. Example:
  2248. (string-to-syntax "()")
  2249. => (4 . 41)
  2250. ** Emacs' reader supports CL read syntax for integers in bases
  2251. other than 10.
  2252. *** `#BINTEGER' or `#bINTEGER' reads INTEGER in binary (radix 2).
  2253. INTEGER optionally contains a sign.
  2254. #b1111
  2255. => 15
  2256. #b-1111
  2257. => -15
  2258. *** `#OINTEGER' or `#oINTEGER' reads INTEGER in octal (radix 8).
  2259. #o666
  2260. => 438
  2261. *** `#XINTEGER' or `#xINTEGER' reads INTEGER in hexadecimal (radix 16).
  2262. #xbeef
  2263. => 48815
  2264. *** `#RADIXrINTEGER' reads INTEGER in radix RADIX, 2 <= RADIX <= 36.
  2265. #2R-111
  2266. => -7
  2267. #25rah
  2268. => 267
  2269. ** The function `documentation-property' now evaluates the value of
  2270. the given property to obtain a string if it doesn't refer to etc/DOC
  2271. and isn't a string.
  2272. ** If called for a symbol, the function `documentation' now looks for
  2273. a `function-documentation' property of that symbol. If it has a non-nil
  2274. value, the documentation is taken from that value. If the value is
  2275. not a string, it is evaluated to obtain a string.
  2276. ** The last argument of `define-key-after' defaults to t for convenience.
  2277. ** The new function `replace-regexp-in-string' replaces all matches
  2278. for a regexp in a string.
  2279. ** `mouse-position' now runs the abnormal hook
  2280. `mouse-position-function'.
  2281. ** The function string-to-number now returns a float for numbers
  2282. that don't fit into a Lisp integer.
  2283. ** The variable keyword-symbols-constants-flag has been removed.
  2284. Keywords are now always considered constants.
  2285. ** The new function `delete-and-extract-region' deletes text and
  2286. returns it.
  2287. ** The function `clear-this-command-keys' now also clears the vector
  2288. returned by function `recent-keys'.
  2289. ** Variables `beginning-of-defun-function' and `end-of-defun-function'
  2290. can be used to define handlers for the functions that find defuns.
  2291. Major modes can define these locally instead of rebinding C-M-a
  2292. etc. if the normal conventions for defuns are not appropriate for the
  2293. mode.
  2294. ** easy-mmode-define-minor-mode now takes an additional BODY argument
  2295. and is renamed `define-minor-mode'.
  2296. ** If an abbrev has a hook function which is a symbol, and that symbol
  2297. has a non-nil `no-self-insert' property, the return value of the hook
  2298. function specifies whether an expansion has been done or not. If it
  2299. returns nil, abbrev-expand also returns nil, meaning "no expansion has
  2300. been performed."
  2301. When abbrev expansion is done by typing a self-inserting character,
  2302. and the abbrev has a hook with the `no-self-insert' property, and the
  2303. hook function returns non-nil meaning expansion has been done,
  2304. then the self-inserting character is not inserted.
  2305. ** The function `intern-soft' now accepts a symbol as first argument.
  2306. In this case, that exact symbol is looked up in the specified obarray,
  2307. and the function's value is nil if it is not found.
  2308. ** The new macro `with-syntax-table' can be used to evaluate forms
  2309. with the syntax table of the current buffer temporarily set to a
  2310. specified table.
  2311. (with-syntax-table TABLE &rest BODY)
  2312. Evaluate BODY with syntax table of current buffer set to a copy of
  2313. TABLE. The current syntax table is saved, BODY is evaluated, and the
  2314. saved table is restored, even in case of an abnormal exit. Value is
  2315. what BODY returns.
  2316. ** Regular expressions now support intervals \{n,m\} as well as
  2317. Perl's shy-groups \(?:...\) and non-greedy *? +? and ?? operators.
  2318. Also back-references like \2 are now considered as an error if the
  2319. corresponding subgroup does not exist (or is not closed yet).
  2320. Previously it would have been silently turned into `2' (ignoring the `\').
  2321. ** The optional argument BUFFER of function file-local-copy has been
  2322. removed since it wasn't used by anything.
  2323. ** The file name argument of function `file-locked-p' is now required
  2324. instead of being optional.
  2325. ** The new built-in error `text-read-only' is signaled when trying to
  2326. modify read-only text.
  2327. ** New functions and variables for locales.
  2328. The new variable `locale-coding-system' specifies how to encode and
  2329. decode strings passed to low-level message functions like strerror and
  2330. time functions like strftime. The new variables
  2331. `system-messages-locale' and `system-time-locale' give the system
  2332. locales to be used when invoking these two types of functions.
  2333. The new function `set-locale-environment' sets the language
  2334. environment, preferred coding system, and locale coding system from
  2335. the system locale as specified by the LC_ALL, LC_CTYPE, and LANG
  2336. environment variables. Normally, it is invoked during startup and need
  2337. not be invoked thereafter. It uses the new variables
  2338. `locale-language-names', `locale-charset-language-names', and
  2339. `locale-preferred-coding-systems' to make its decisions.
  2340. ** syntax tables now understand nested comments.
  2341. To declare a comment syntax as allowing nesting, just add an `n'
  2342. modifier to either of the characters of the comment end and the comment
  2343. start sequences.
  2344. ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p'
  2345. because `bitmap' is more in line with the usual X terminology.
  2346. ** New function `propertize'
  2347. The new function `propertize' can be used to conveniently construct
  2348. strings with text properties.
  2349. - Function: propertize STRING &rest PROPERTIES
  2350. Value is a copy of STRING with text properties assigned as specified
  2351. by PROPERTIES. PROPERTIES is a sequence of pairs PROPERTY VALUE, with
  2352. PROPERTY being the name of a text property and VALUE being the
  2353. specified value of that property. Example:
  2354. (propertize "foo" 'face 'bold 'read-only t)
  2355. ** push and pop macros.
  2356. Simple versions of the push and pop macros of Common Lisp
  2357. are now defined in Emacs Lisp. These macros allow only symbols
  2358. as the place that holds the list to be changed.
  2359. (push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value.
  2360. (pop LISTNAME) return first elt of LISTNAME, and remove it
  2361. (thus altering the value of LISTNAME).
  2362. ** New dolist and dotimes macros.
  2363. Simple versions of the dolist and dotimes macros of Common Lisp
  2364. are now defined in Emacs Lisp.
  2365. (dolist (VAR LIST [RESULT]) BODY...)
  2366. Execute body once for each element of LIST,
  2367. using the variable VAR to hold the current element.
  2368. Then return the value of RESULT, or nil if RESULT is omitted.
  2369. (dotimes (VAR COUNT [RESULT]) BODY...)
  2370. Execute BODY with VAR bound to successive integers running from 0,
  2371. inclusive, to COUNT, exclusive.
  2372. Then return the value of RESULT, or nil if RESULT is omitted.
  2373. ** Regular expressions now support Posix character classes such as
  2374. [:alpha:], [:space:] and so on. These must be used within a character
  2375. class--for instance, [-[:digit:].+] matches digits or a period
  2376. or a sign.
  2377. [:digit:] matches 0 through 9
  2378. [:cntrl:] matches ASCII control characters
  2379. [:xdigit:] matches 0 through 9, a through f and A through F.
  2380. [:blank:] matches space and tab only
  2381. [:graph:] matches graphic characters--everything except ASCII control chars,
  2382. space, and DEL.
  2383. [:print:] matches printing characters--everything except ASCII control chars
  2384. and DEL.
  2385. [:alnum:] matches letters and digits.
  2386. (But at present, for multibyte characters,
  2387. it matches anything that has word syntax.)
  2388. [:alpha:] matches letters.
  2389. (But at present, for multibyte characters,
  2390. it matches anything that has word syntax.)
  2391. [:ascii:] matches ASCII (unibyte) characters.
  2392. [:nonascii:] matches non-ASCII (multibyte) characters.
  2393. [:lower:] matches anything lower-case.
  2394. [:punct:] matches punctuation.
  2395. (But at present, for multibyte characters,
  2396. it matches anything that has non-word syntax.)
  2397. [:space:] matches anything that has whitespace syntax.
  2398. [:upper:] matches anything upper-case.
  2399. [:word:] matches anything that has word syntax.
  2400. ** Emacs now has built-in hash tables.
  2401. The following functions are defined for hash tables:
  2402. - Function: make-hash-table ARGS
  2403. The argument list ARGS consists of keyword/argument pairs. All arguments
  2404. are optional. The following arguments are defined:
  2405. :test TEST
  2406. TEST must be a symbol specifying how to compare keys. Default is `eql'.
  2407. Predefined are `eq', `eql' and `equal'. If TEST is not predefined,
  2408. it must have been defined with `define-hash-table-test'.
  2409. :size SIZE
  2410. SIZE must be an integer > 0 giving a hint to the implementation how
  2411. many elements will be put in the hash table. Default size is 65.
  2412. :rehash-size REHASH-SIZE
  2413. REHASH-SIZE specifies by how much to grow a hash table once it becomes
  2414. full. If REHASH-SIZE is an integer, add that to the hash table's old
  2415. size to get the new size. Otherwise, REHASH-SIZE must be a float >
  2416. 1.0, and the new size is computed by multiplying REHASH-SIZE with the
  2417. old size. Default rehash size is 1.5.
  2418. :rehash-threshold THRESHOLD
  2419. THRESHOLD must be a float > 0 and <= 1.0 specifying when to resize the
  2420. hash table. It is resized when the ratio of (number of entries) /
  2421. (size of hash table) is >= THRESHOLD. Default threshold is 0.8.
  2422. :weakness WEAK
  2423. WEAK must be either nil, one of the symbols `key, `value',
  2424. `key-or-value', `key-and-value', or t, meaning the same as
  2425. `key-and-value'. Entries are removed from weak tables during garbage
  2426. collection if their key and/or value are not referenced elsewhere
  2427. outside of the hash table. Default are non-weak hash tables.
  2428. - Function: makehash &optional TEST
  2429. Similar to make-hash-table, but only TEST can be specified.
  2430. - Function: hash-table-p TABLE
  2431. Returns non-nil if TABLE is a hash table object.
  2432. - Function: copy-hash-table TABLE
  2433. Returns a copy of TABLE. Only the table itself is copied, keys and
  2434. values are shared.
  2435. - Function: hash-table-count TABLE
  2436. Returns the number of entries in TABLE.
  2437. - Function: hash-table-rehash-size TABLE
  2438. Returns the rehash size of TABLE.
  2439. - Function: hash-table-rehash-threshold TABLE
  2440. Returns the rehash threshold of TABLE.
  2441. - Function: hash-table-rehash-size TABLE
  2442. Returns the size of TABLE.
  2443. - Function: hash-table-test TABLE
  2444. Returns the test TABLE uses to compare keys.
  2445. - Function: hash-table-weakness TABLE
  2446. Returns the weakness specified for TABLE.
  2447. - Function: clrhash TABLE
  2448. Clear TABLE.
  2449. - Function: gethash KEY TABLE &optional DEFAULT
  2450. Look up KEY in TABLE and return its associated VALUE or DEFAULT if
  2451. not found.
  2452. - Function: puthash KEY VALUE TABLE
  2453. Associate KEY with VALUE in TABLE. If KEY is already associated with
  2454. another value, replace the old value with VALUE.
  2455. - Function: remhash KEY TABLE
  2456. Remove KEY from TABLE if it is there.
  2457. - Function: maphash FUNCTION TABLE
  2458. Call FUNCTION for all elements in TABLE. FUNCTION must take two
  2459. arguments KEY and VALUE.
  2460. - Function: sxhash OBJ
  2461. Return a hash code for Lisp object OBJ.
  2462. - Function: define-hash-table-test NAME TEST-FN HASH-FN
  2463. Define a new hash table test named NAME. If NAME is specified as
  2464. a test in `make-hash-table', the table created will use TEST-FN for
  2465. comparing keys, and HASH-FN to compute hash codes for keys. Test
  2466. and hash function are stored as symbol property `hash-table-test'
  2467. of NAME with a value of (TEST-FN HASH-FN).
  2468. TEST-FN must take two arguments and return non-nil if they are the same.
  2469. HASH-FN must take one argument and return an integer that is the hash
  2470. code of the argument. The function should use the whole range of
  2471. integer values for hash code computation, including negative integers.
  2472. Example: The following creates a hash table whose keys are supposed to
  2473. be strings that are compared case-insensitively.
  2474. (defun case-fold-string= (a b)
  2475. (compare-strings a nil nil b nil nil t))
  2476. (defun case-fold-string-hash (a)
  2477. (sxhash (upcase a)))
  2478. (define-hash-table-test 'case-fold 'case-fold-string=
  2479. 'case-fold-string-hash))
  2480. (make-hash-table :test 'case-fold)
  2481. ** The Lisp reader handles circular structure.
  2482. It now works to use the #N= and #N# constructs to represent
  2483. circular structures. For example, #1=(a . #1#) represents
  2484. a cons cell which is its own cdr.
  2485. ** The Lisp printer handles circular structure.
  2486. If you bind print-circle to a non-nil value, the Lisp printer outputs
  2487. #N= and #N# constructs to represent circular and shared structure.
  2488. ** If the second argument to `move-to-column' is anything but nil or
  2489. t, that means replace a tab with spaces if necessary to reach the
  2490. specified column, but do not add spaces at the end of the line if it
  2491. is too short to reach that column.
  2492. ** perform-replace has a new feature: the REPLACEMENTS argument may
  2493. now be a cons cell (FUNCTION . DATA). This means to call FUNCTION
  2494. after each match to get the replacement text. FUNCTION is called with
  2495. two arguments: DATA, and the number of replacements already made.
  2496. If the FROM-STRING contains any upper-case letters,
  2497. perform-replace also turns off `case-fold-search' temporarily
  2498. and inserts the replacement text without altering case in it.
  2499. ** The function buffer-size now accepts an optional argument
  2500. to specify which buffer to return the size of.
  2501. ** The calendar motion commands now run the normal hook
  2502. calendar-move-hook after moving point.
  2503. ** The new variable small-temporary-file-directory specifies a
  2504. directory to use for creating temporary files that are likely to be
  2505. small. (Certain Emacs features use this directory.) If
  2506. small-temporary-file-directory is nil, they use
  2507. temporary-file-directory instead.
  2508. ** The variable `inhibit-modification-hooks', if non-nil, inhibits all
  2509. the hooks that track changes in the buffer. This affects
  2510. `before-change-functions' and `after-change-functions', as well as
  2511. hooks attached to text properties and overlay properties.
  2512. ** assq-delete-all is a new function that deletes all the
  2513. elements of an alist which have a car `eq' to a particular value.
  2514. ** make-temp-file provides a more reliable way to create a temporary file.
  2515. make-temp-file is used like make-temp-name, except that it actually
  2516. creates the file before it returns. This prevents a timing error,
  2517. ensuring that no other job can use the same name for a temporary file.
  2518. ** New exclusive-open feature in `write-region'
  2519. The optional seventh arg is now called MUSTBENEW. If non-nil, it insists
  2520. on a check for an existing file with the same name. If MUSTBENEW
  2521. is `excl', that means to get an error if the file already exists;
  2522. never overwrite. If MUSTBENEW is neither nil nor `excl', that means
  2523. ask for confirmation before overwriting, but do go ahead and
  2524. overwrite the file if the user gives confirmation.
  2525. If the MUSTBENEW argument in `write-region' is `excl',
  2526. that means to use a special feature in the `open' system call
  2527. to get an error if the file exists at that time.
  2528. The error reported is `file-already-exists'.
  2529. ** Function `format' now handles text properties.
  2530. Text properties of the format string are applied to the result string.
  2531. If the result string is longer than the format string, text properties
  2532. ending at the end of the format string are extended to the end of the
  2533. result string.
  2534. Text properties from string arguments are applied to the result
  2535. string where arguments appear in the result string.
  2536. Example:
  2537. (let ((s1 "hello, %s")
  2538. (s2 "world"))
  2539. (put-text-property 0 (length s1) 'face 'bold s1)
  2540. (put-text-property 0 (length s2) 'face 'italic s2)
  2541. (format s1 s2))
  2542. results in a bold-face string with an italic `world' at the end.
  2543. ** Messages can now be displayed with text properties.
  2544. Text properties are handled as described above for function `format'.
  2545. The following example displays a bold-face message with an italic
  2546. argument in it.
  2547. (let ((msg "hello, %s!")
  2548. (arg "world"))
  2549. (put-text-property 0 (length msg) 'face 'bold msg)
  2550. (put-text-property 0 (length arg) 'face 'italic arg)
  2551. (message msg arg))
  2552. ** Sound support
  2553. Emacs supports playing sound files on GNU/Linux and the free BSDs
  2554. (Voxware driver and native BSD driver, aka as Luigi's driver).
  2555. Currently supported file formats are RIFF-WAVE (*.wav) and Sun Audio
  2556. (*.au). You must configure Emacs with the option `--with-sound=yes'
  2557. to enable sound support.
  2558. Sound files can be played by calling (play-sound SOUND). SOUND is a
  2559. list of the form `(sound PROPERTY...)'. The function is only defined
  2560. when sound support is present for the system on which Emacs runs. The
  2561. functions runs `play-sound-functions' with one argument which is the
  2562. sound to play, before playing the sound.
  2563. The following sound properties are supported:
  2564. - `:file FILE'
  2565. FILE is a file name. If FILE isn't an absolute name, it will be
  2566. searched relative to `data-directory'.
  2567. - `:data DATA'
  2568. DATA is a string containing sound data. Either :file or :data
  2569. may be present, but not both.
  2570. - `:volume VOLUME'
  2571. VOLUME must be an integer in the range 0..100 or a float in the range
  2572. 0..1. This property is optional.
  2573. - `:device DEVICE'
  2574. DEVICE is a string specifying the system device on which to play the
  2575. sound. The default device is system-dependent.
  2576. Other properties are ignored.
  2577. An alternative interface is called as
  2578. (play-sound-file FILE &optional VOLUME DEVICE).
  2579. ** `multimedia' is a new Finder keyword and Custom group.
  2580. ** keywordp is a new predicate to test efficiently for an object being
  2581. a keyword symbol.
  2582. ** Changes to garbage collection
  2583. *** The function garbage-collect now additionally returns the number
  2584. of live and free strings.
  2585. *** There is a new variable `strings-consed' holding the number of
  2586. strings that have been consed so far.
  2587. * Lisp-level Display features added after release 2.6 of the Emacs
  2588. Lisp Manual
  2589. ** The user-option `resize-mini-windows' controls how Emacs resizes
  2590. mini-windows.
  2591. ** The function `pos-visible-in-window-p' now has a third optional
  2592. argument, PARTIALLY. If a character is only partially visible, nil is
  2593. returned, unless PARTIALLY is non-nil.
  2594. ** On window systems, `glyph-table' is no longer used.
  2595. ** Help strings in menu items are now used to provide `help-echo' text.
  2596. ** The function `image-size' can be used to determine the size of an
  2597. image.
  2598. - Function: image-size SPEC &optional PIXELS FRAME
  2599. Return the size of an image as a pair (WIDTH . HEIGHT).
  2600. SPEC is an image specification. PIXELS non-nil means return sizes
  2601. measured in pixels, otherwise return sizes measured in canonical
  2602. character units (fractions of the width/height of the frame's default
  2603. font). FRAME is the frame on which the image will be displayed.
  2604. FRAME nil or omitted means use the selected frame.
  2605. ** The function `image-mask-p' can be used to determine if an image
  2606. has a mask bitmap.
  2607. - Function: image-mask-p SPEC &optional FRAME
  2608. Return t if image SPEC has a mask bitmap.
  2609. FRAME is the frame on which the image will be displayed. FRAME nil
  2610. or omitted means use the selected frame.
  2611. ** The function `find-image' can be used to find a usable image
  2612. satisfying one of a list of specifications.
  2613. ** The STRING argument of `put-image' and `insert-image' is now
  2614. optional.
  2615. ** Image specifications may contain the property `:ascent center' (see
  2616. below).
  2617. * New Lisp-level Display features in Emacs 21.1
  2618. ** The function tty-suppress-bold-inverse-default-colors can be used
  2619. to make Emacs avoid displaying text with bold black foreground on TTYs.
  2620. Some terminals, notably PC consoles, emulate bold text by displaying
  2621. text in brighter colors. On such a console, a bold black foreground
  2622. is displayed in a gray color. If this turns out to be hard to read on
  2623. your monitor---the problem occurred with the mode line on
  2624. laptops---you can instruct Emacs to ignore the text's boldness, and to
  2625. just display it black instead.
  2626. This situation can't be detected automatically. You will have to put
  2627. a line like
  2628. (tty-suppress-bold-inverse-default-colors t)
  2629. in your `.emacs'.
  2630. ** New face implementation.
  2631. Emacs faces have been reimplemented from scratch. They don't use XLFD
  2632. font names anymore and face merging now works as expected.
  2633. *** New faces.
  2634. Each face can specify the following display attributes:
  2635. 1. Font family or fontset alias name.
  2636. 2. Relative proportionate width, aka character set width or set
  2637. width (swidth), e.g. `semi-compressed'.
  2638. 3. Font height in 1/10pt
  2639. 4. Font weight, e.g. `bold'.
  2640. 5. Font slant, e.g. `italic'.
  2641. 6. Foreground color.
  2642. 7. Background color.
  2643. 8. Whether or not characters should be underlined, and in what color.
  2644. 9. Whether or not characters should be displayed in inverse video.
  2645. 10. A background stipple, a bitmap.
  2646. 11. Whether or not characters should be overlined, and in what color.
  2647. 12. Whether or not characters should be strike-through, and in what
  2648. color.
  2649. 13. Whether or not a box should be drawn around characters, its
  2650. color, the width of the box lines, and 3D appearance.
  2651. Faces are frame-local by nature because Emacs allows to define the
  2652. same named face (face names are symbols) differently for different
  2653. frames. Each frame has an alist of face definitions for all named
  2654. faces. The value of a named face in such an alist is a Lisp vector
  2655. with the symbol `face' in slot 0, and a slot for each of the face
  2656. attributes mentioned above.
  2657. There is also a global face alist `face-new-frame-defaults'. Face
  2658. definitions from this list are used to initialize faces of newly
  2659. created frames.
  2660. A face doesn't have to specify all attributes. Those not specified
  2661. have a nil value. Faces specifying all attributes are called
  2662. `fully-specified'.
  2663. *** Face merging.
  2664. The display style of a given character in the text is determined by
  2665. combining several faces. This process is called `face merging'. Any
  2666. aspect of the display style that isn't specified by overlays or text
  2667. properties is taken from the `default' face. Since it is made sure
  2668. that the default face is always fully-specified, face merging always
  2669. results in a fully-specified face.
  2670. *** Face realization.
  2671. After all face attributes for a character have been determined by
  2672. merging faces of that character, that face is `realized'. The
  2673. realization process maps face attributes to what is physically
  2674. available on the system where Emacs runs. The result is a `realized
  2675. face' in form of an internal structure which is stored in the face
  2676. cache of the frame on which it was realized.
  2677. Face realization is done in the context of the charset of the
  2678. character to display because different fonts and encodings are used
  2679. for different charsets. In other words, for characters of different
  2680. charsets, different realized faces are needed to display them.
  2681. Except for composite characters, faces are always realized for a
  2682. specific character set and contain a specific font, even if the face
  2683. being realized specifies a fontset. The reason is that the result of
  2684. the new font selection stage is better than what can be done with
  2685. statically defined font name patterns in fontsets.
  2686. In unibyte text, Emacs' charsets aren't applicable; function
  2687. `char-charset' reports ASCII for all characters, including those >
  2688. 0x7f. The X registry and encoding of fonts to use is determined from
  2689. the variable `face-default-registry' in this case. The variable is
  2690. initialized at Emacs startup time from the font the user specified for
  2691. Emacs.
  2692. Currently all unibyte text, i.e. all buffers with
  2693. `enable-multibyte-characters' nil are displayed with fonts of the same
  2694. registry and encoding `face-default-registry'. This is consistent
  2695. with the fact that languages can also be set globally, only.
  2696. **** Clearing face caches.
  2697. The Lisp function `clear-face-cache' can be called to clear face caches
  2698. on all frames. If called with a non-nil argument, it will also unload
  2699. unused fonts.
  2700. *** Font selection.
  2701. Font selection tries to find the best available matching font for a
  2702. given (charset, face) combination. This is done slightly differently
  2703. for faces specifying a fontset, or a font family name.
  2704. If the face specifies a fontset name, that fontset determines a
  2705. pattern for fonts of the given charset. If the face specifies a font
  2706. family, a font pattern is constructed. Charset symbols have a
  2707. property `x-charset-registry' for that purpose that maps a charset to
  2708. an XLFD registry and encoding in the font pattern constructed.
  2709. Available fonts on the system on which Emacs runs are then matched
  2710. against the font pattern. The result of font selection is the best
  2711. match for the given face attributes in this font list.
  2712. Font selection can be influenced by the user.
  2713. The user can specify the relative importance he gives the face
  2714. attributes width, height, weight, and slant by setting
  2715. face-font-selection-order (faces.el) to a list of face attribute
  2716. names. The default is (:width :height :weight :slant), and means
  2717. that font selection first tries to find a good match for the font
  2718. width specified by a face, then---within fonts with that width---tries
  2719. to find a best match for the specified font height, etc.
  2720. Setting `face-font-family-alternatives' allows the user to specify
  2721. alternative font families to try if a family specified by a face
  2722. doesn't exist.
  2723. Setting `face-font-registry-alternatives' allows the user to specify
  2724. all alternative font registry names to try for a face specifying a
  2725. registry.
  2726. Please note that the interpretations of the above two variables are
  2727. slightly different.
  2728. Setting face-ignored-fonts allows the user to ignore specific fonts.
  2729. **** Scalable fonts
  2730. Emacs can make use of scalable fonts but doesn't do so by default,
  2731. since the use of too many or too big scalable fonts may crash XFree86
  2732. servers.
  2733. To enable scalable font use, set the variable
  2734. `scalable-fonts-allowed'. A value of nil, the default, means never use
  2735. scalable fonts. A value of t means any scalable font may be used.
  2736. Otherwise, the value must be a list of regular expressions. A
  2737. scalable font may then be used if it matches a regular expression from
  2738. that list. Example:
  2739. (setq scalable-fonts-allowed '("muleindian-2$"))
  2740. allows the use of scalable fonts with registry `muleindian-2'.
  2741. *** Functions and variables related to font selection.
  2742. - Function: x-family-fonts &optional FAMILY FRAME
  2743. Return a list of available fonts of family FAMILY on FRAME. If FAMILY
  2744. is omitted or nil, list all families. Otherwise, FAMILY must be a
  2745. string, possibly containing wildcards `?' and `*'.
  2746. If FRAME is omitted or nil, use the selected frame. Each element of
  2747. the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT SLANT FIXED-P
  2748. FULL REGISTRY-AND-ENCODING]. FAMILY is the font family name.
  2749. POINT-SIZE is the size of the font in 1/10 pt. WIDTH, WEIGHT, and
  2750. SLANT are symbols describing the width, weight and slant of the font.
  2751. These symbols are the same as for face attributes. FIXED-P is non-nil
  2752. if the font is fixed-pitch. FULL is the full name of the font, and
  2753. REGISTRY-AND-ENCODING is a string giving the registry and encoding of
  2754. the font. The result list is sorted according to the current setting
  2755. of the face font sort order.
  2756. - Function: x-font-family-list
  2757. Return a list of available font families on FRAME. If FRAME is
  2758. omitted or nil, use the selected frame. Value is a list of conses
  2759. (FAMILY . FIXED-P) where FAMILY is a font family, and FIXED-P is
  2760. non-nil if fonts of that family are fixed-pitch.
  2761. - Variable: font-list-limit
  2762. Limit for font matching. If an integer > 0, font matching functions
  2763. won't load more than that number of fonts when searching for a
  2764. matching font. The default is currently 100.
  2765. *** Setting face attributes.
  2766. For the most part, the new face implementation is interface-compatible
  2767. with the old one. Old face attribute related functions are now
  2768. implemented in terms of the new functions `set-face-attribute' and
  2769. `face-attribute'.
  2770. Face attributes are identified by their names which are keyword
  2771. symbols. All attributes can be set to `unspecified'.
  2772. The following attributes are recognized:
  2773. `:family'
  2774. VALUE must be a string specifying the font family, e.g. ``courier'',
  2775. or a fontset alias name. If a font family is specified, wild-cards `*'
  2776. and `?' are allowed.
  2777. `:width'
  2778. VALUE specifies the relative proportionate width of the font to use.
  2779. It must be one of the symbols `ultra-condensed', `extra-condensed',
  2780. `condensed', `semi-condensed', `normal', `semi-expanded', `expanded',
  2781. `extra-expanded', or `ultra-expanded'.
  2782. `:height'
  2783. VALUE must be either an integer specifying the height of the font to use
  2784. in 1/10 pt, a floating point number specifying the amount by which to
  2785. scale any underlying face, or a function, which is called with the old
  2786. height (from the underlying face), and should return the new height.
  2787. `:weight'
  2788. VALUE specifies the weight of the font to use. It must be one of the
  2789. symbols `ultra-bold', `extra-bold', `bold', `semi-bold', `normal',
  2790. `semi-light', `light', `extra-light', `ultra-light'.
  2791. `:slant'
  2792. VALUE specifies the slant of the font to use. It must be one of the
  2793. symbols `italic', `oblique', `normal', `reverse-italic', or
  2794. `reverse-oblique'.
  2795. `:foreground', `:background'
  2796. VALUE must be a color name, a string.
  2797. `:underline'
  2798. VALUE specifies whether characters in FACE should be underlined. If
  2799. VALUE is t, underline with foreground color of the face. If VALUE is
  2800. a string, underline with that color. If VALUE is nil, explicitly
  2801. don't underline.
  2802. `:overline'
  2803. VALUE specifies whether characters in FACE should be overlined. If
  2804. VALUE is t, overline with foreground color of the face. If VALUE is a
  2805. string, overline with that color. If VALUE is nil, explicitly don't
  2806. overline.
  2807. `:strike-through'
  2808. VALUE specifies whether characters in FACE should be drawn with a line
  2809. striking through them. If VALUE is t, use the foreground color of the
  2810. face. If VALUE is a string, strike-through with that color. If VALUE
  2811. is nil, explicitly don't strike through.
  2812. `:box'
  2813. VALUE specifies whether characters in FACE should have a box drawn
  2814. around them. If VALUE is nil, explicitly don't draw boxes. If
  2815. VALUE is t, draw a box with lines of width 1 in the foreground color
  2816. of the face. If VALUE is a string, the string must be a color name,
  2817. and the box is drawn in that color with a line width of 1. Otherwise,
  2818. VALUE must be a property list of the form `(:line-width WIDTH
  2819. :color COLOR :style STYLE)'. If a keyword/value pair is missing from
  2820. the property list, a default value will be used for the value, as
  2821. specified below. WIDTH specifies the width of the lines to draw; it
  2822. defaults to 1. COLOR is the name of the color to draw in, default is
  2823. the foreground color of the face for simple boxes, and the background
  2824. color of the face for 3D boxes. STYLE specifies whether a 3D box
  2825. should be draw. If STYLE is `released-button', draw a box looking
  2826. like a released 3D button. If STYLE is `pressed-button' draw a box
  2827. that appears like a pressed button. If STYLE is nil, the default if
  2828. the property list doesn't contain a style specification, draw a 2D
  2829. box.
  2830. `:inverse-video'
  2831. VALUE specifies whether characters in FACE should be displayed in
  2832. inverse video. VALUE must be one of t or nil.
  2833. `:stipple'
  2834. If VALUE is a string, it must be the name of a file of pixmap data.
  2835. The directories listed in the `x-bitmap-file-path' variable are
  2836. searched. Alternatively, VALUE may be a list of the form (WIDTH
  2837. HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA
  2838. is a string containing the raw bits of the bitmap. VALUE nil means
  2839. explicitly don't use a stipple pattern.
  2840. For convenience, attributes `:family', `:width', `:height', `:weight',
  2841. and `:slant' may also be set in one step from an X font name:
  2842. `:font'
  2843. Set font-related face attributes from VALUE. VALUE must be a valid
  2844. XLFD font name. If it is a font name pattern, the first matching font
  2845. is used--this is for compatibility with the behavior of previous
  2846. versions of Emacs.
  2847. For compatibility with Emacs 20, keywords `:bold' and `:italic' can
  2848. be used to specify that a bold or italic font should be used. VALUE
  2849. must be t or nil in that case. A value of `unspecified' is not allowed."
  2850. Please see also the documentation of `set-face-attribute' and
  2851. `defface'.
  2852. `:inherit'
  2853. VALUE is the name of a face from which to inherit attributes, or a list
  2854. of face names. Attributes from inherited faces are merged into the face
  2855. like an underlying face would be, with higher priority than underlying faces.
  2856. *** Face attributes and X resources
  2857. The following X resource names can be used to set face attributes
  2858. from X resources:
  2859. Face attribute X resource class
  2860. -----------------------------------------------------------------------
  2861. :family attributeFamily . Face.AttributeFamily
  2862. :width attributeWidth Face.AttributeWidth
  2863. :height attributeHeight Face.AttributeHeight
  2864. :weight attributeWeight Face.AttributeWeight
  2865. :slant attributeSlant Face.AttributeSlant
  2866. foreground attributeForeground Face.AttributeForeground
  2867. :background attributeBackground . Face.AttributeBackground
  2868. :overline attributeOverline Face.AttributeOverline
  2869. :strike-through attributeStrikeThrough Face.AttributeStrikeThrough
  2870. :box attributeBox Face.AttributeBox
  2871. :underline attributeUnderline Face.AttributeUnderline
  2872. :inverse-video attributeInverse Face.AttributeInverse
  2873. :stipple attributeStipple Face.AttributeStipple
  2874. or attributeBackgroundPixmap
  2875. Face.AttributeBackgroundPixmap
  2876. :font attributeFont Face.AttributeFont
  2877. :bold attributeBold Face.AttributeBold
  2878. :italic attributeItalic . Face.AttributeItalic
  2879. :font attributeFont Face.AttributeFont
  2880. *** Text property `face'.
  2881. The value of the `face' text property can now be a single face
  2882. specification or a list of such specifications. Each face
  2883. specification can be
  2884. 1. A symbol or string naming a Lisp face.
  2885. 2. A property list of the form (KEYWORD VALUE ...) where each
  2886. KEYWORD is a face attribute name, and VALUE is an appropriate value
  2887. for that attribute. Please see the doc string of `set-face-attribute'
  2888. for face attribute names.
  2889. 3. Conses of the form (FOREGROUND-COLOR . COLOR) or
  2890. (BACKGROUND-COLOR . COLOR) where COLOR is a color name. This is
  2891. for compatibility with previous Emacs versions.
  2892. ** Support functions for colors on text-only terminals.
  2893. The function `tty-color-define' can be used to define colors for use
  2894. on TTY and MSDOS frames. It maps a color name to a color number on
  2895. the terminal. Emacs defines a couple of common color mappings by
  2896. default. You can get defined colors with a call to
  2897. `defined-colors'. The function `tty-color-clear' can be
  2898. used to clear the mapping table.
  2899. ** Unified support for colors independent of frame type.
  2900. The new functions `defined-colors', `color-defined-p', `color-values',
  2901. and `display-color-p' work for any type of frame. On frames whose
  2902. type is neither x nor w32, these functions transparently map X-style
  2903. color specifications to the closest colors supported by the frame
  2904. display. Lisp programs should use these new functions instead of the
  2905. old `x-defined-colors', `x-color-defined-p', `x-color-values', and
  2906. `x-display-color-p'. (The old function names are still available for
  2907. compatibility; they are now aliases of the new names.) Lisp programs
  2908. should no more look at the value of the variable window-system to
  2909. modify their color-related behavior.
  2910. The primitives `color-gray-p' and `color-supported-p' also work for
  2911. any frame type.
  2912. ** Platform-independent functions to describe display capabilities.
  2913. The new functions `display-mouse-p', `display-popup-menus-p',
  2914. `display-graphic-p', `display-selections-p', `display-screens',
  2915. `display-pixel-width', `display-pixel-height', `display-mm-width',
  2916. `display-mm-height', `display-backing-store', `display-save-under',
  2917. `display-planes', `display-color-cells', `display-visual-class', and
  2918. `display-grayscale-p' describe the basic capabilities of a particular
  2919. display. Lisp programs should call these functions instead of testing
  2920. the value of the variables `window-system' or `system-type', or calling
  2921. platform-specific functions such as `x-display-pixel-width'.
  2922. The new function `display-images-p' returns non-nil if a particular
  2923. display can display image files.
  2924. ** The minibuffer prompt is now actually inserted in the minibuffer.
  2925. This makes it possible to scroll through the prompt, if you want to.
  2926. To disallow this completely (like previous versions of emacs), customize
  2927. the variable `minibuffer-prompt-properties', and turn on the
  2928. `Inviolable' option.
  2929. The function `minibuffer-prompt-end' returns the current position of the
  2930. end of the minibuffer prompt, if the minibuffer is current.
  2931. Otherwise, it returns `(point-min)'.
  2932. ** New `field' abstraction in buffers.
  2933. There is now code to support an abstraction called `fields' in emacs
  2934. buffers. A field is a contiguous region of text with the same `field'
  2935. property (which can be a text property or an overlay).
  2936. Many emacs functions, such as forward-word, forward-sentence,
  2937. forward-paragraph, beginning-of-line, etc., stop moving when they come
  2938. to the boundary between fields; beginning-of-line and end-of-line will
  2939. not let the point move past the field boundary, but other movement
  2940. commands continue into the next field if repeated. Stopping at field
  2941. boundaries can be suppressed programmatically by binding
  2942. `inhibit-field-text-motion' to a non-nil value around calls to these
  2943. functions.
  2944. Now that the minibuffer prompt is inserted into the minibuffer, it is in
  2945. a separate field from the user-input part of the buffer, so that common
  2946. editing commands treat the user's text separately from the prompt.
  2947. The following functions are defined for operating on fields:
  2948. - Function: constrain-to-field NEW-POS OLD-POS &optional ESCAPE-FROM-EDGE ONLY-IN-LINE INHIBIT-CAPTURE-PROPERTY
  2949. Return the position closest to NEW-POS that is in the same field as OLD-POS.
  2950. A field is a region of text with the same `field' property.
  2951. If NEW-POS is nil, then the current point is used instead, and set to the
  2952. constrained position if that is different.
  2953. If OLD-POS is at the boundary of two fields, then the allowable
  2954. positions for NEW-POS depends on the value of the optional argument
  2955. ESCAPE-FROM-EDGE: If ESCAPE-FROM-EDGE is nil, then NEW-POS is
  2956. constrained to the field that has the same `field' char-property
  2957. as any new characters inserted at OLD-POS, whereas if ESCAPE-FROM-EDGE
  2958. is non-nil, NEW-POS is constrained to the union of the two adjacent
  2959. fields. Additionally, if two fields are separated by another field with
  2960. the special value `boundary', then any point within this special field is
  2961. also considered to be `on the boundary'.
  2962. If the optional argument ONLY-IN-LINE is non-nil and constraining
  2963. NEW-POS would move it to a different line, NEW-POS is returned
  2964. unconstrained. This useful for commands that move by line, like
  2965. C-n or C-a, which should generally respect field boundaries
  2966. only in the case where they can still move to the right line.
  2967. If the optional argument INHIBIT-CAPTURE-PROPERTY is non-nil, and OLD-POS has
  2968. a non-nil property of that name, then any field boundaries are ignored.
  2969. Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil.
  2970. - Function: delete-field &optional POS
  2971. Delete the field surrounding POS.
  2972. A field is a region of text with the same `field' property.
  2973. If POS is nil, the value of point is used for POS.
  2974. - Function: field-beginning &optional POS ESCAPE-FROM-EDGE
  2975. Return the beginning of the field surrounding POS.
  2976. A field is a region of text with the same `field' property.
  2977. If POS is nil, the value of point is used for POS.
  2978. If ESCAPE-FROM-EDGE is non-nil and POS is at the beginning of its
  2979. field, then the beginning of the *previous* field is returned.
  2980. - Function: field-end &optional POS ESCAPE-FROM-EDGE
  2981. Return the end of the field surrounding POS.
  2982. A field is a region of text with the same `field' property.
  2983. If POS is nil, the value of point is used for POS.
  2984. If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field,
  2985. then the end of the *following* field is returned.
  2986. - Function: field-string &optional POS
  2987. Return the contents of the field surrounding POS as a string.
  2988. A field is a region of text with the same `field' property.
  2989. If POS is nil, the value of point is used for POS.
  2990. - Function: field-string-no-properties &optional POS
  2991. Return the contents of the field around POS, without text-properties.
  2992. A field is a region of text with the same `field' property.
  2993. If POS is nil, the value of point is used for POS.
  2994. ** Image support.
  2995. Emacs can now display images. Images are inserted into text by giving
  2996. strings or buffer text a `display' text property containing one of
  2997. (AREA IMAGE) or IMAGE. The display of the `display' property value
  2998. replaces the display of the characters having that property.
  2999. If the property value has the form (AREA IMAGE), AREA must be one of
  3000. `(margin left-margin)', `(margin right-margin)' or `(margin nil)'. If
  3001. AREA is `(margin nil)', IMAGE will be displayed in the text area of a
  3002. window, otherwise it will be displayed in the left or right marginal
  3003. area.
  3004. IMAGE is an image specification.
  3005. *** Image specifications
  3006. Image specifications are lists of the form `(image PROPS)' where PROPS
  3007. is a property list whose keys are keyword symbols. Each
  3008. specifications must contain a property `:type TYPE' with TYPE being a
  3009. symbol specifying the image type, e.g. `xbm'. Properties not
  3010. described below are ignored.
  3011. The following is a list of properties all image types share.
  3012. `:ascent ASCENT'
  3013. ASCENT must be a number in the range 0..100, or the symbol `center'.
  3014. If it is a number, it specifies the percentage of the image's height
  3015. to use for its ascent.
  3016. If not specified, ASCENT defaults to the value 50 which means that the
  3017. image will be centered with the base line of the row it appears in.
  3018. If ASCENT is `center' the image is vertically centered around a
  3019. centerline which is the vertical center of text drawn at the position
  3020. of the image, in the manner specified by the text properties and
  3021. overlays that apply to the image.
  3022. `:margin MARGIN'
  3023. MARGIN must be either a number >= 0 specifying how many pixels to put
  3024. as margin around the image, or a pair (X . Y) with X specifying the
  3025. horizontal margin and Y specifying the vertical margin. Default is 0.
  3026. `:relief RELIEF'
  3027. RELIEF is analogous to the `:relief' attribute of faces. Puts a relief
  3028. around an image.
  3029. `:conversion ALGO'
  3030. Apply an image algorithm to the image before displaying it.
  3031. ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
  3032. edge-detection algorithm to the image.
  3033. ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
  3034. apply a general edge-detection algorithm. MATRIX must be either a
  3035. nine-element list or a nine-element vector of numbers. A pixel at
  3036. position x/y in the transformed image is computed from original pixels
  3037. around that position. MATRIX specifies, for each pixel in the
  3038. neighborhood of x/y, a factor with which that pixel will influence the
  3039. transformed pixel; element 0 specifies the factor for the pixel at
  3040. x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
  3041. below.
  3042. (x-1/y-1 x/y-1 x+1/y-1
  3043. x-1/y x/y x+1/y
  3044. x-1/y+1 x/y+1 x+1/y+1)
  3045. The resulting pixel is computed from the color intensity of the color
  3046. resulting from summing up the RGB values of surrounding pixels,
  3047. multiplied by the specified factors, and dividing that sum by the sum
  3048. of the factors' absolute values.
  3049. Laplace edge-detection currently uses a matrix of
  3050. (1 0 0
  3051. 0 0 0
  3052. 9 9 -1)
  3053. Emboss edge-detection uses a matrix of
  3054. ( 2 -1 0
  3055. -1 0 1
  3056. 0 1 -2)
  3057. ALGO `disabled' means transform the image so that it looks
  3058. ``disabled''.
  3059. `:mask MASK'
  3060. If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
  3061. the image, so that the background of a frame is visible behind the
  3062. image. If BG is not specified, or if BG is t, determine the
  3063. background color of the image by looking at the 4 corners of the
  3064. image, assuming the most frequently occurring color from the corners is
  3065. the background color of the image. Otherwise, BG must be a list `(RED
  3066. GREEN BLUE)' specifying the color to assume for the background of the
  3067. image.
  3068. If MASK is nil, remove a mask from the image, if it has one. Images
  3069. in some formats include a mask which can be removed by specifying
  3070. `:mask nil'.
  3071. `:file FILE'
  3072. Load image from FILE. If FILE is not absolute after expanding it,
  3073. search for the image in `data-directory'. Some image types support
  3074. building images from data. When this is done, no `:file' property
  3075. may be present in the image specification.
  3076. `:data DATA'
  3077. Get image data from DATA. (As of this writing, this is not yet
  3078. supported for image type `postscript'). Either :file or :data may be
  3079. present in an image specification, but not both. All image types
  3080. support strings as DATA, some types allow additional types of DATA.
  3081. *** Supported image types
  3082. **** XBM, image type `xbm'.
  3083. XBM images don't require an external library. Additional image
  3084. properties supported are:
  3085. `:foreground FG'
  3086. FG must be a string specifying the image foreground color, or nil
  3087. meaning to use the default. Default is the frame's foreground color.
  3088. `:background BG'
  3089. BG must be a string specifying the image background color, or nil
  3090. meaning to use the default. Default is the frame's background color.
  3091. XBM images can be constructed from data instead of file. In this
  3092. case, the image specification must contain the following properties
  3093. instead of a `:file' property.
  3094. `:width WIDTH'
  3095. WIDTH specifies the width of the image in pixels.
  3096. `:height HEIGHT'
  3097. HEIGHT specifies the height of the image in pixels.
  3098. `:data DATA'
  3099. DATA must be either
  3100. 1. a string large enough to hold the bitmap data, i.e. it must
  3101. have a size >= (WIDTH + 7) / 8 * HEIGHT
  3102. 2. a bool-vector of size >= WIDTH * HEIGHT
  3103. 3. a vector of strings or bool-vectors, one for each line of the
  3104. bitmap.
  3105. 4. a string that's an in-memory XBM file. Neither width nor
  3106. height may be specified in this case because these are defined
  3107. in the file.
  3108. **** XPM, image type `xpm'
  3109. XPM images require the external library `libXpm', package
  3110. `xpm-3.4k.tar.gz', version 3.4k or later. Make sure the library is
  3111. found when Emacs is configured by supplying appropriate paths via
  3112. `--x-includes' and `--x-libraries'.
  3113. Additional image properties supported are:
  3114. `:color-symbols SYMBOLS'
  3115. SYMBOLS must be a list of pairs (NAME . COLOR), with NAME being the
  3116. name of color as it appears in an XPM file, and COLOR being an X color
  3117. name.
  3118. XPM images can be built from memory instead of files. In that case,
  3119. add a `:data' property instead of a `:file' property.
  3120. The XPM library uses libz in its implementation so that it is able
  3121. to display compressed images.
  3122. **** PBM, image type `pbm'
  3123. PBM images don't require an external library. Color, gray-scale and
  3124. mono images are supported. Additional image properties supported for
  3125. mono images are:
  3126. `:foreground FG'
  3127. FG must be a string specifying the image foreground color, or nil
  3128. meaning to use the default. Default is the frame's foreground color.
  3129. `:background FG'
  3130. BG must be a string specifying the image background color, or nil
  3131. meaning to use the default. Default is the frame's background color.
  3132. **** JPEG, image type `jpeg'
  3133. Support for JPEG images requires the external library `libjpeg',
  3134. package `jpegsrc.v6a.tar.gz', or later. There are no additional image
  3135. properties defined.
  3136. **** TIFF, image type `tiff'
  3137. Support for TIFF images requires the external library `libtiff',
  3138. package `tiff-v3.4-tar.gz', or later. There are no additional image
  3139. properties defined.
  3140. **** GIF, image type `gif'
  3141. Support for GIF images requires the external library `libungif', package
  3142. `libungif-4.1.0', or later.
  3143. Additional image properties supported are:
  3144. `:index INDEX'
  3145. INDEX must be an integer >= 0. Load image number INDEX from a
  3146. multi-image GIF file. If INDEX is too large, the image displays
  3147. as a hollow box.
  3148. This could be used to implement limited support for animated GIFs.
  3149. For example, the following function displays a multi-image GIF file
  3150. at point-min in the current buffer, switching between sub-images
  3151. every 0.1 seconds.
  3152. (defun show-anim (file max)
  3153. "Display multi-image GIF file FILE which contains MAX subimages."
  3154. (display-anim (current-buffer) file 0 max t))
  3155. (defun display-anim (buffer file idx max first-time)
  3156. (when (= idx max)
  3157. (setq idx 0))
  3158. (let ((img (create-image file nil nil :index idx)))
  3159. (save-excursion
  3160. (set-buffer buffer)
  3161. (goto-char (point-min))
  3162. (unless first-time (delete-char 1))
  3163. (insert-image img "x"))
  3164. (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil)))
  3165. **** PNG, image type `png'
  3166. Support for PNG images requires the external library `libpng',
  3167. package `libpng-1.0.2.tar.gz', or later. There are no additional image
  3168. properties defined.
  3169. **** Ghostscript, image type `postscript'.
  3170. Additional image properties supported are:
  3171. `:pt-width WIDTH'
  3172. WIDTH is width of the image in pt (1/72 inch). WIDTH must be an
  3173. integer. This is a required property.
  3174. `:pt-height HEIGHT'
  3175. HEIGHT specifies the height of the image in pt (1/72 inch). HEIGHT
  3176. must be a integer. This is an required property.
  3177. `:bounding-box BOX'
  3178. BOX must be a list or vector of 4 integers giving the bounding box of
  3179. the PS image, analogous to the `BoundingBox' comment found in PS
  3180. files. This is an required property.
  3181. Part of the Ghostscript interface is implemented in Lisp. See
  3182. lisp/gs.el.
  3183. *** Lisp interface.
  3184. The variable `image-types' contains a list of those image types
  3185. which are supported in the current configuration.
  3186. Images are stored in an image cache and removed from the cache when
  3187. they haven't been displayed for `image-cache-eviction-delay seconds.
  3188. The function `clear-image-cache' can be used to clear the image cache
  3189. manually. Images in the cache are compared with `equal', i.e. all
  3190. images with `equal' specifications share the same image.
  3191. *** Simplified image API, image.el
  3192. The new Lisp package image.el contains functions that simplify image
  3193. creation and putting images into text. The function `create-image'
  3194. can be used to create images. The macro `defimage' can be used to
  3195. define an image based on available image types. The functions
  3196. `put-image' and `insert-image' can be used to insert an image into a
  3197. buffer.
  3198. ** Display margins.
  3199. Windows can now have margins which are used for special text
  3200. and images.
  3201. To give a window margins, either set the buffer-local variables
  3202. `left-margin-width' and `right-margin-width', or call
  3203. `set-window-margins'. The function `window-margins' can be used to
  3204. obtain the current settings. To make `left-margin-width' and
  3205. `right-margin-width' take effect, you must set them before displaying
  3206. the buffer in a window, or use `set-window-buffer' to force an update
  3207. of the display margins.
  3208. You can put text in margins by giving it a `display' text property
  3209. containing a pair of the form `(LOCATION . VALUE)', where LOCATION is
  3210. one of `left-margin' or `right-margin' or nil. VALUE can be either a
  3211. string, an image specification or a stretch specification (see later
  3212. in this file).
  3213. ** Help display
  3214. Emacs displays short help messages in the echo area, when the mouse
  3215. moves over a tool-bar item or a piece of text that has a text property
  3216. `help-echo'. This feature also applies to strings in the mode line
  3217. that have a `help-echo' property.
  3218. If the value of the `help-echo' property is a function, that function
  3219. is called with three arguments WINDOW, OBJECT and POSITION. WINDOW is
  3220. the window in which the help was found.
  3221. If OBJECT is a buffer, POS is the position in the buffer where the
  3222. `help-echo' text property was found.
  3223. If OBJECT is an overlay, that overlay has a `help-echo' property, and
  3224. POS is the position in the overlay's buffer under the mouse.
  3225. If OBJECT is a string (an overlay string or a string displayed with
  3226. the `display' property), POS is the position in that string under the
  3227. mouse.
  3228. If the value of the `help-echo' property is neither a function nor a
  3229. string, it is evaluated to obtain a help string.
  3230. For tool-bar and menu-bar items, their key definition is used to
  3231. determine the help to display. If their definition contains a
  3232. property `:help FORM', FORM is evaluated to determine the help string.
  3233. For tool-bar items without a help form, the caption of the item is
  3234. used as help string.
  3235. The hook `show-help-function' can be set to a function that displays
  3236. the help string differently. For example, enabling a tooltip window
  3237. causes the help display to appear there instead of in the echo area.
  3238. ** Vertical fractional scrolling.
  3239. The display of text in windows can be scrolled smoothly in pixels.
  3240. This is useful, for example, for making parts of large images visible.
  3241. The function `window-vscroll' returns the current value of vertical
  3242. scrolling, a non-negative fraction of the canonical character height.
  3243. The function `set-window-vscroll' can be used to set the vertical
  3244. scrolling value. Here is an example of how these function might be
  3245. used.
  3246. (global-set-key [A-down]
  3247. #'(lambda ()
  3248. (interactive)
  3249. (set-window-vscroll (selected-window)
  3250. (+ 0.5 (window-vscroll)))))
  3251. (global-set-key [A-up]
  3252. #'(lambda ()
  3253. (interactive)
  3254. (set-window-vscroll (selected-window)
  3255. (- (window-vscroll) 0.5)))))
  3256. ** New hook `fontification-functions'.
  3257. Functions from `fontification-functions' are called from redisplay
  3258. when it encounters a region of text that is not yet fontified. This
  3259. variable automatically becomes buffer-local when set. Each function
  3260. is called with one argument, POS.
  3261. At least one of the hook functions should fontify one or more
  3262. characters starting at POS in the current buffer. It should mark them
  3263. as fontified by giving them a non-nil value of the `fontified' text
  3264. property. It may be reasonable for these functions to check for the
  3265. `fontified' property and not put it back on, but they do not have to.
  3266. ** Tool bar support.
  3267. Emacs supports a tool bar at the top of a frame under X. The frame
  3268. parameter `tool-bar-lines' (X resource "toolBar", class "ToolBar")
  3269. controls how may lines to reserve for the tool bar. A zero value
  3270. suppresses the tool bar. If the value is non-zero and
  3271. `auto-resize-tool-bars' is non-nil the tool bar's size will be changed
  3272. automatically so that all tool bar items are visible.
  3273. *** Tool bar item definitions
  3274. Tool bar items are defined using `define-key' with a prefix-key
  3275. `tool-bar'. For example `(define-key global-map [tool-bar item1] ITEM)'
  3276. where ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
  3277. CAPTION is the caption of the item, If it's not a string, it is
  3278. evaluated to get a string. The caption is currently not displayed in
  3279. the tool bar, but it is displayed if the item doesn't have a `:help'
  3280. property (see below).
  3281. BINDING is the tool bar item's binding. Tool bar items with keymaps as
  3282. binding are currently ignored.
  3283. The following properties are recognized:
  3284. `:enable FORM'.
  3285. FORM is evaluated and specifies whether the tool bar item is enabled
  3286. or disabled.
  3287. `:visible FORM'
  3288. FORM is evaluated and specifies whether the tool bar item is displayed.
  3289. `:filter FUNCTION'
  3290. FUNCTION is called with one parameter, the same list BINDING in which
  3291. FUNCTION is specified as the filter. The value FUNCTION returns is
  3292. used instead of BINDING to display this item.
  3293. `:button (TYPE SELECTED)'
  3294. TYPE must be one of `:radio' or `:toggle'. SELECTED is evaluated
  3295. and specifies whether the button is selected (pressed) or not.
  3296. `:image IMAGES'
  3297. IMAGES is either a single image specification or a vector of four
  3298. image specifications. If it is a vector, this table lists the
  3299. meaning of each of the four elements:
  3300. Index Use when item is
  3301. ----------------------------------------
  3302. 0 enabled and selected
  3303. 1 enabled and deselected
  3304. 2 disabled and selected
  3305. 3 disabled and deselected
  3306. If IMAGE is a single image specification, a Laplace edge-detection
  3307. algorithm is used on that image to draw the image in disabled state.
  3308. `:help HELP-STRING'.
  3309. Gives a help string to display for the tool bar item. This help
  3310. is displayed when the mouse is moved over the item.
  3311. The function `toolbar-add-item' is a convenience function for adding
  3312. toolbar items generally, and `tool-bar-add-item-from-menu' can be used
  3313. to define a toolbar item with a binding copied from an item on the
  3314. menu bar.
  3315. The default bindings use a menu-item :filter to derive the tool-bar
  3316. dynamically from variable `tool-bar-map' which may be set
  3317. buffer-locally to override the global map.
  3318. *** Tool-bar-related variables.
  3319. If `auto-resize-tool-bar' is non-nil, the tool bar will automatically
  3320. resize to show all defined tool bar items. It will never grow larger
  3321. than 1/4 of the frame's size.
  3322. If `auto-raise-tool-bar-buttons' is non-nil, tool bar buttons will be
  3323. raised when the mouse moves over them.
  3324. You can add extra space between tool bar items by setting
  3325. `tool-bar-button-margin' to a positive integer specifying a number of
  3326. pixels, or a pair of integers (X . Y) specifying horizontal and
  3327. vertical margins . Default is 1.
  3328. You can change the shadow thickness of tool bar buttons by setting
  3329. `tool-bar-button-relief' to an integer. Default is 3.
  3330. *** Tool-bar clicks with modifiers.
  3331. You can bind commands to clicks with control, shift, meta etc. on
  3332. a tool bar item. If
  3333. (define-key global-map [tool-bar shell]
  3334. '(menu-item "Shell" shell
  3335. :image (image :type xpm :file "shell.xpm")))
  3336. is the original tool bar item definition, then
  3337. (define-key global-map [tool-bar S-shell] 'some-command)
  3338. makes a binding to run `some-command' for a shifted click on the same
  3339. item.
  3340. ** Mode line changes.
  3341. *** Mouse-sensitive mode line.
  3342. The mode line can be made mouse-sensitive by displaying strings there
  3343. that have a `local-map' text property. There are three ways to display
  3344. a string with a `local-map' property in the mode line.
  3345. 1. The mode line spec contains a variable whose string value has
  3346. a `local-map' text property.
  3347. 2. The mode line spec contains a format specifier (e.g. `%12b'), and
  3348. that format specifier has a `local-map' property.
  3349. 3. The mode line spec contains a list containing `:eval FORM'. FORM
  3350. is evaluated. If the result is a string, and that string has a
  3351. `local-map' property.
  3352. The same mechanism is used to determine the `face' and `help-echo'
  3353. properties of strings in the mode line. See `bindings.el' for an
  3354. example.
  3355. *** If a mode line element has the form `(:eval FORM)', FORM is
  3356. evaluated and the result is used as mode line element.
  3357. *** You can suppress mode-line display by setting the buffer-local
  3358. variable mode-line-format to nil.
  3359. *** A headerline can now be displayed at the top of a window.
  3360. This mode line's contents are controlled by the new variable
  3361. `header-line-format' and `default-header-line-format' which are
  3362. completely analogous to `mode-line-format' and
  3363. `default-mode-line-format'. A value of nil means don't display a top
  3364. line.
  3365. The appearance of top mode lines is controlled by the face
  3366. `header-line'.
  3367. The function `coordinates-in-window-p' returns `header-line' for a
  3368. position in the header-line.
  3369. ** Text property `display'
  3370. The `display' text property is used to insert images into text,
  3371. replace text with other text, display text in marginal area, and it is
  3372. also used to control other aspects of how text displays. The value of
  3373. the `display' property should be a display specification, as described
  3374. below, or a list or vector containing display specifications.
  3375. *** Replacing text, displaying text in marginal areas
  3376. To replace the text having the `display' property with some other
  3377. text, use a display specification of the form `(LOCATION STRING)'.
  3378. If LOCATION is `(margin left-margin)', STRING is displayed in the left
  3379. marginal area, if it is `(margin right-margin)', it is displayed in
  3380. the right marginal area, and if LOCATION is `(margin nil)' STRING
  3381. is displayed in the text. In the latter case you can also use the
  3382. simpler form STRING as property value.
  3383. *** Variable width and height spaces
  3384. To display a space of fractional width or height, use a display
  3385. specification of the form `(LOCATION STRETCH)'. If LOCATION is
  3386. `(margin left-margin)', the space is displayed in the left marginal
  3387. area, if it is `(margin right-margin)', it is displayed in the right
  3388. marginal area, and if LOCATION is `(margin nil)' the space is
  3389. displayed in the text. In the latter case you can also use the
  3390. simpler form STRETCH as property value.
  3391. The stretch specification STRETCH itself is a list of the form `(space
  3392. PROPS)', where PROPS is a property list which can contain the
  3393. properties described below.
  3394. The display of the fractional space replaces the display of the
  3395. characters having the `display' property.
  3396. - :width WIDTH
  3397. Specifies that the space width should be WIDTH times the normal
  3398. character width. WIDTH can be an integer or floating point number.
  3399. - :relative-width FACTOR
  3400. Specifies that the width of the stretch should be computed from the
  3401. first character in a group of consecutive characters that have the
  3402. same `display' property. The computation is done by multiplying the
  3403. width of that character by FACTOR.
  3404. - :align-to HPOS
  3405. Specifies that the space should be wide enough to reach HPOS. The
  3406. value HPOS is measured in units of the normal character width.
  3407. Exactly one of the above properties should be used.
  3408. - :height HEIGHT
  3409. Specifies the height of the space, as HEIGHT, measured in terms of the
  3410. normal line height.
  3411. - :relative-height FACTOR
  3412. The height of the space is computed as the product of the height
  3413. of the text having the `display' property and FACTOR.
  3414. - :ascent ASCENT
  3415. Specifies that ASCENT percent of the height of the stretch should be
  3416. used for the ascent of the stretch, i.e. for the part above the
  3417. baseline. The value of ASCENT must be a non-negative number less or
  3418. equal to 100.
  3419. You should not use both `:height' and `:relative-height' together.
  3420. *** Images
  3421. A display specification for an image has the form `(LOCATION
  3422. . IMAGE)', where IMAGE is an image specification. The image replaces,
  3423. in the display, the characters having this display specification in
  3424. their `display' text property. If LOCATION is `(margin left-margin)',
  3425. the image will be displayed in the left marginal area, if it is
  3426. `(margin right-margin)' it will be displayed in the right marginal
  3427. area, and if LOCATION is `(margin nil)' the image will be displayed in
  3428. the text. In the latter case you can also use the simpler form IMAGE
  3429. as display specification.
  3430. *** Other display properties
  3431. - (space-width FACTOR)
  3432. Specifies that space characters in the text having that property
  3433. should be displayed FACTOR times as wide as normal; FACTOR must be an
  3434. integer or float.
  3435. - (height HEIGHT)
  3436. Display text having this property in a font that is smaller or larger.
  3437. If HEIGHT is a list of the form `(+ N)', where N is an integer, that
  3438. means to use a font that is N steps larger. If HEIGHT is a list of
  3439. the form `(- N)', that means to use a font that is N steps smaller. A
  3440. ``step'' is defined by the set of available fonts; each size for which
  3441. a font is available counts as a step.
  3442. If HEIGHT is a number, that means to use a font that is HEIGHT times
  3443. as tall as the frame's default font.
  3444. If HEIGHT is a symbol, it is called as a function with the current
  3445. height as argument. The function should return the new height to use.
  3446. Otherwise, HEIGHT is evaluated to get the new height, with the symbol
  3447. `height' bound to the current specified font height.
  3448. - (raise FACTOR)
  3449. FACTOR must be a number, specifying a multiple of the current
  3450. font's height. If it is positive, that means to display the characters
  3451. raised. If it is negative, that means to display them lower down. The
  3452. amount of raising or lowering is computed without taking account of the
  3453. `height' subproperty.
  3454. *** Conditional display properties
  3455. All display specifications can be conditionalized. If a specification
  3456. has the form `(when CONDITION . SPEC)', the specification SPEC applies
  3457. only when CONDITION yields a non-nil value when evaluated. During the
  3458. evaluation, `object' is bound to the string or buffer having the
  3459. conditional display property; `position' and `buffer-position' are
  3460. bound to the position within `object' and the buffer position where
  3461. the display property was found, respectively. Both positions can be
  3462. different when object is a string.
  3463. The normal specification consisting of SPEC only is equivalent to
  3464. `(when t . SPEC)'.
  3465. ** New menu separator types.
  3466. Emacs now supports more than one menu separator type. Menu items with
  3467. item names consisting of dashes only (including zero dashes) are
  3468. treated like before. In addition, the following item names are used
  3469. to specify other menu separator types.
  3470. - `--no-line' or `--space', or `--:space', or `--:noLine'
  3471. No separator lines are drawn, but a small space is inserted where the
  3472. separator occurs.
  3473. - `--single-line' or `--:singleLine'
  3474. A single line in the menu's foreground color.
  3475. - `--double-line' or `--:doubleLine'
  3476. A double line in the menu's foreground color.
  3477. - `--single-dashed-line' or `--:singleDashedLine'
  3478. A single dashed line in the menu's foreground color.
  3479. - `--double-dashed-line' or `--:doubleDashedLine'
  3480. A double dashed line in the menu's foreground color.
  3481. - `--shadow-etched-in' or `--:shadowEtchedIn'
  3482. A single line with 3D sunken appearance. This is the form
  3483. displayed for item names consisting of dashes only.
  3484. - `--shadow-etched-out' or `--:shadowEtchedOut'
  3485. A single line with 3D raised appearance.
  3486. - `--shadow-etched-in-dash' or `--:shadowEtchedInDash'
  3487. A single dashed line with 3D sunken appearance.
  3488. - `--shadow-etched-out-dash' or `--:shadowEtchedOutDash'
  3489. A single dashed line with 3D raise appearance.
  3490. - `--shadow-double-etched-in' or `--:shadowDoubleEtchedIn'
  3491. Two lines with 3D sunken appearance.
  3492. - `--shadow-double-etched-out' or `--:shadowDoubleEtchedOut'
  3493. Two lines with 3D raised appearance.
  3494. - `--shadow-double-etched-in-dash' or `--:shadowDoubleEtchedInDash'
  3495. Two dashed lines with 3D sunken appearance.
  3496. - `--shadow-double-etched-out-dash' or `--:shadowDoubleEtchedOutDash'
  3497. Two dashed lines with 3D raised appearance.
  3498. Under LessTif/Motif, the last four separator types are displayed like
  3499. the corresponding single-line separators.
  3500. ** New frame parameters for scroll bar colors.
  3501. The new frame parameters `scroll-bar-foreground' and
  3502. `scroll-bar-background' can be used to change scroll bar colors.
  3503. Their value must be either a color name, a string, or nil to specify
  3504. that scroll bars should use a default color. For toolkit scroll bars,
  3505. default colors are toolkit specific. For non-toolkit scroll bars, the
  3506. default background is the background color of the frame, and the
  3507. default foreground is black.
  3508. The X resource name of these parameters are `scrollBarForeground'
  3509. (class ScrollBarForeground) and `scrollBarBackground' (class
  3510. `ScrollBarBackground').
  3511. Setting these parameters overrides toolkit specific X resource
  3512. settings for scroll bar colors.
  3513. ** You can set `redisplay-dont-pause' to a non-nil value to prevent
  3514. display updates from being interrupted when input is pending.
  3515. ** Changing a window's width may now change its window start if it
  3516. starts on a continuation line. The new window start is computed based
  3517. on the window's new width, starting from the start of the continued
  3518. line as the start of the screen line with the minimum distance from
  3519. the original window start.
  3520. ** The variable `hscroll-step' and the functions
  3521. `hscroll-point-visible' and `hscroll-window-column' have been removed
  3522. now that proper horizontal scrolling is implemented.
  3523. ** Windows can now be made fixed-width and/or fixed-height.
  3524. A window is fixed-size if its buffer has a buffer-local variable
  3525. `window-size-fixed' whose value is not nil. A value of `height' makes
  3526. windows fixed-height, a value of `width' makes them fixed-width, any
  3527. other non-nil value makes them both fixed-width and fixed-height.
  3528. The following code makes all windows displaying the current buffer
  3529. fixed-width and fixed-height.
  3530. (set (make-local-variable 'window-size-fixed) t)
  3531. A call to enlarge-window on a window gives an error if that window is
  3532. fixed-width and it is tried to change the window's width, or if the
  3533. window is fixed-height, and it is tried to change its height. To
  3534. change the size of a fixed-size window, bind `window-size-fixed'
  3535. temporarily to nil, for example
  3536. (let ((window-size-fixed nil))
  3537. (enlarge-window 10))
  3538. Likewise, an attempt to split a fixed-height window vertically,
  3539. or a fixed-width window horizontally results in a error.
  3540. ** The cursor-type frame parameter is now supported on MS-DOS
  3541. terminals. When Emacs starts, it by default changes the cursor shape
  3542. to a solid box, as it does on Unix. The `cursor-type' frame parameter
  3543. overrides this as it does on Unix, except that the bar cursor is
  3544. horizontal rather than vertical (since the MS-DOS display doesn't
  3545. support a vertical-bar cursor).
  3546. ----------------------------------------------------------------------
  3547. This file is part of GNU Emacs.
  3548. GNU Emacs is free software: you can redistribute it and/or modify
  3549. it under the terms of the GNU General Public License as published by
  3550. the Free Software Foundation, either version 3 of the License, or
  3551. (at your option) any later version.
  3552. GNU Emacs is distributed in the hope that it will be useful,
  3553. but WITHOUT ANY WARRANTY; without even the implied warranty of
  3554. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3555. GNU General Public License for more details.
  3556. You should have received a copy of the GNU General Public License
  3557. along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  3558. Local variables:
  3559. mode: outline
  3560. paragraph-separate: "[ ]*$"
  3561. end: