lisp/gnus/gnus-spec.el (gnus-parse-complex-format): Try to maximize compatibility
[emacs.git] / etc / TODO
1 Emacs TODO List                                                   -*-outline-*-
2
3 Copyright (C) 2001-2013 Free Software Foundation, Inc.
4 See the end of the file for license conditions.
5
6
7 If you are ready to start working on any of these TODO items, we
8 appreciate your help; please write to emacs-devel@gnu.org so we can be
9 aware that the problem is being addressed, and talk with you how to do
10 it best.  Also to check that it hasn't been done already, since we
11 don't always remember to update this file!  It is best to consult
12 the latest version of this file in the Emacs source code repository.
13
14 Since Emacs is an FSF-copyrighted package, please be prepared to sign
15 legal papers to transfer the copyright on your work to the FSF.
16 For more details on this, see the section "Copyright Assignment"
17 in etc/CONTRIBUTE.  That file also contains some more practical
18 details about getting involved.
19
20 As well as the issues listed here, there are bug reports at
21 <http://debbugs.gnu.org>.  Bugs tagged "easy" ought to be suitable for
22 beginners to work on, but unfortunately we are not very good at using
23 this tag.  Bugs tagged "help" are ones where assistance is required,
24 but may be difficult to fix.  Bugs with severity "important" or higher
25 are the ones we consider more important, but these also may be
26 difficult to fix.  Bugs with severity "minor" may be simpler, but this
27 is not always true.
28
29 * Tentative plan for Emacs-24
30
31 ** concurrency: including it as an "experimental" compile-time option
32   sounds good.  Of course there might still be big questions around
33   "which form of concurrency" we'll want.
34 ** Overhaul of customize: sounds wonderful.
35 ** better support for dynamic embedded graphics: I like this idea (my
36   mpc.el code could use it for the volume widget), though I wonder if the
37   resulting efficiency will be sufficient.
38 ** Spread Semantic.
39 ** Improve the "code snippets" support: consolidate skeleton.el, tempo.el,
40   and expand.el (any other?) and then advertise/use/improve it.
41 ** Improve VC: yes, there's a lot of work to be done there :-(
42
43 ** Random things that cross my mind right now that I'd like to see (some of
44 them from my local hacks), but it's not obvious at all whether they'll
45 make it.
46 *** multiple inheritance for keymaps (to get rid of the
47   fix_submap_inheritance hack and to more cleanly express the
48   relationship between minibuffer-local-*-map): I've had this locally
49   for a long time, but the details of the semantics is somewhat ... delicate.
50 *** prog-mode could/should provide a better fill-paragraph default
51   that uses syntax-tables to recognize string/comment boundaries.
52 *** provide more completion-at-point-functions.  Make existing
53   in-buffer completion use completion-at-point.
54 *** "functional" function-key-map that would make it easy to add (and
55   remove) mappings like "FOO-mouse-4 -> FOO-scroll-down",
56   "FOO-tab -> ?\FOO-\t", "uppercase -> lowercase", "[fringe KEY...] ->
57   [KEY]", "H-FOO -> M-FOO", "C-x C-y FOO -> H-FOO", ...
58
59
60 * Simple tasks. These don't require much Emacs knowledge, they are
61 suitable for anyone from beginners to experts.
62
63 ** Convert modes that use view-mode to be derived from special-mode instead.
64
65 ** Major modes should have a menu entry.  Examples of modes that do
66 not have one at the moment and probably should: text-mode, inferior-lisp-mode.
67
68 ** Check if all items on the mode-line have a suitable tooltip for all modes.
69
70 ** edebug and debugger-mode should have a toolbar.
71 It can use the same icons as gud.
72
73 ** Check what minor modes don't use define-minor-mode and convert them
74 to use it.
75
76 ** Convert all defvars with leading `*' in the doc-strings into defcustoms
77 of appropriate :type and :group.
78
79 ** Remove any leading `*'s from defcustom doc-strings.  [done?]
80
81 ** Remove unnecessary autoload cookies from defcustoms.
82 This needs a bit of care, since often people have become used to
83 expecting such variables to always be defined, eg when they modify
84 things in their .emacs.
85
86 ** See if other files can use generated-autoload-file (see eg ps-print).
87
88 ** Write more tests.  Pick a fixed bug from the database, write a test
89 case to make sure it stays fixed.  Or pick your favorite programming
90 major-mode, and write a test for its indentation.  Or a version
91 control backend, and write a test for its status parser.  Etc.
92 See test/automated for examples.
93
94 * Small but important fixes needed in existing features:
95
96 ** Flymake's customization mechanism needs to be both simpler (fewer
97 levels of indirection) and better documented, so it is easier to
98 understand.  I find it quite hard to figure out what compilation
99 command it will use.
100
101 I suggest totally rewriting that part of Flymake, using the simplest
102 mechanism that suffices for the specific needs.  That will be easy
103 for users to customize.
104
105 ** Compute the list of active keymaps *after* reading the first event.
106
107 ** Distribute a bar cursor of width > 1 evenly between the two glyphs
108    on each side of the bar (what to do at the edges?).
109
110 ** revert-buffer should eliminate overlays and the mark.
111    For related problems consult the thread starting with
112    http://lists.gnu.org/archive/html/emacs-devel/2005-11/msg01346.html
113
114 ** erase-buffer should perhaps disregard read-only properties of text.
115
116 ** Fix the kill/yank treatment of invisible text.  At the moment,
117   invisible text is placed in the kill-ring, so that the contents of
118   the ring may not correspond to the text as displayed to the user.
119   It ought to be possible to omit text which is invisible (due to a
120   text-property, overlay, or selective display) from the kill-ring.
121
122 ** Change the way define-minor-mode handles autoloading.
123   It should not generate :require.  Or :require in defcustom
124   should not be recorded in the user's custom-set-variables call.
125
126 ** Feature to change cursor shape when Emacs is idle (for more than
127   a specified time).
128
129 ** The buttons at the top of a custom buffer should not omit
130   variables whose values are currently hidden.
131
132 ** Clean up the variables in browse-url.  Perhaps use a shell command string to
133   specify the browser instead of the mushrooming set of functions.
134   See also ESR's proposal for a BROWSER environment variable
135   <URL:http://www.catb.org/~esr/BROWSER/browse-url.patch>.
136
137 ** Enhance scroll-bar to handle tall line (similar to line-move).
138
139 ** In Custom buffers, put the option that turns a mode on or off first,
140   using a heuristic of some kind?
141
142 ** Define recompute-arg and recompute-arg-if for fix_command to use.
143   See rms message of 11 Dec 05.
144
145 ** Height returned by frame-parameter ... and height given to
146    make-frame does not mean the same thing.  The former includes menu and
147    tool bar lines, the latter don't.  frame-parameter should return height
148    without menu and tool bar lines.
149
150 ** In Emacs Info, examples of using Customize should be clickable
151    and they should create Custom buffers.
152
153 ** The toolbar should show keyboard equivalents in its tooltips.
154
155 ** Add function to redraw the tool bar.
156
157 ** Redesign the load-history data structure so it can cope better
158   with evaluating definitions of the same function from different files,
159   recording which file the latest definition came from.
160
161 ** make back_comment use syntax-ppss or equivalent.
162
163 ** Consider improving src/sysdep.c's search for a fqdn.
164 http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg00782.html
165
166 ** Find a proper fix for rcirc multiline nick adding.
167 http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg00684.html
168
169 ** Implement `network-interface-list' and `network-interface-info'
170 on MS-Windows.  Hint: the information is present in the Registry,
171 under the keys
172 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage\
173 and
174 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<device>\
175 where <device> is the network device found under the first key.
176
177 ** Check for any included packages that define obsolete bug-reporting commands.
178 Change them to use report-emacs-bug.
179
180 ** Allow fringe indicators to display a tooltip (provide a help-echo property?)
181
182 ** Add a defcustom that supplies a function to name numeric backup files,
183 like make-backup-file-name-function for non-numeric backup files.
184
185 ** `dired-mode' should specify the semantics of `buffer-modified-p' for
186 dired buffers and DTRT WRT `auto-revert-mode'.
187
188 ** Check uses of prin1 for error-handling.
189 http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00456.html
190
191 * Important features:
192 ** Extended text-properties (to make overlays "obsolete")
193 *** Several text-property planes
194 This would get us rid of font-lock-face property (and I'd be happy to
195 get rid of char-property-alias-alist as well) since font-lock would
196 simply use the `face' property in the `font-lock' plane.
197 Each property would come with an Elisp merge-function.  The merge
198 would be performed in add-text-properties.
199 *** zero-width text-properties.
200 ** Having tabs above a window to switch buffers in it.
201
202 ** "Perspectives" are named persistent window configurations.  We have
203 had the window configuration mechanism in GNU Emacs since the
204 beginning but we have never developed a good user interface to take
205 advantage of them.  Eclipse's user interface seems to be good.
206
207 Perspectives work well even if you do the equivalent of C-x 4 C-f
208 because of the distinction between view windows vs file windows.  In
209 Emacs this is more or less the "dedicated window" feature, but we have
210 never really made it work for this.
211
212 Perspectives also need to interact with the tabs.
213
214 ** Imenu could be extended into a file-structure browsing mechanism
215 using code like that of customize-groups.
216
217 ** Display something in the margin on lines that have compilation errors.
218
219 ** Compilation error navigation bar, parallel to the scroll bar,
220 indicating where in the buffer there are compilation errors.
221 Perhaps we could arrange to display these error indications on top
222 of the scroll bar itself.  That depends on to what extent toolkit
223 scroll bars are extensible.
224
225 ** Provide user-friendly ways to list all available font families,
226   list fonts, display a font as a sample, etc.  [fx is looking at
227   multilingual font selection for the Unicode branch of Emacs.]
228
229 ** Provide a convenient way to select a color with the mouse.
230
231 ** Rewrite the face code to be simpler, clearer and faster.
232
233 ** Program Enriched mode to read and save in RTF.  [Is there actually a
234   decent single definition of RTF?  Maybe see info at
235   http://latex2rtf.sourceforge.net/.]  This task seems to be addressed
236   by http://savannah.nongnu.org/projects/emacs-rtf/, which is still in
237   very early stages.
238
239 ** Implement primitive and higher-level functions to allow filling
240   properly with variable-pitch faces.
241
242 ** Implement a smoother vertical scroll facility, one that allows
243   C-v to scroll through a tall image.  The primitive operations
244   posn-at-point and posn-at-x-y should now make it doable in elisp.
245
246 ** Implement intelligent search/replace, going beyond query-replace
247   (see http://groups.csail.mit.edu/uid/projects/clustering/chi04.pdf).
248
249 ** Implement other text formatting properties.
250 *** Footnotes that can appear either in place or at the end of the page.
251 *** text property that says "don't break line in middle of this".
252    Don't break the line between two characters that have the
253    same value of this property.
254 *** Discretionary hyphens that are not visible when they are at end of line.
255
256 ** Internationalize Emacs's messages.
257
258 ** Set up a facility to save backtraces when errors happen during
259 specified filters, specified timers, and specified hooks.
260
261 ** Install mmc@maruska.dyndns.org's no-flicker change.
262
263 ** Add a "current vertical pixel level" value that goes with point,
264   so that motion commands can also move through tall images.
265   This value would be to point as window-vscroll is to window-start.
266
267 ** Address internationalization of symbols names essentially
268   as documentation, e.g. in command names and Custom.
269
270 ** Make the Lucid menu widget display multilingual text.  [This
271   probably needs to be done from actual Emacs buffers, either directly
272   in the menu or by rendering in an unmapped window and copying the
273   pixels.  The current code assumes a specific locale; that isn't good
274   enough even if X can render the arbitrary text] [The gtk
275   port now displays multilingual text in menus, but only insofar as
276   Emacs can encode it as utf-8 and gtk can display the result.]
277   Maybe making Lucid menus work like Gtk's (i.e. just force utf-8) is good
278   enough now that Emacs can encode most chars into utf-8.
279
280 ** Remove the limitation that window and frame widths and heights can
281   be only full columns/lines.
282
283 ** The GNUstep port needs some serious attention, ideally from someone
284 familiar with GNUstep and Objective C.
285
286 * Other features we would like:
287
288 ** Allow frames(terminals) created by emacsclient to inherit their environment
289 from the emacsclient process.
290 ** Remove the default toggling behavior of minor modes when called from elisp
291 rather than interactively.  This a trivial one-liner in easy-mode.el.
292
293 ** Give Tar mode all the features of Archive mode.
294
295 ** Create a category of errors called `process-error'
296   for some or all errors associated with using subprocesses.
297
298 ** Maybe reinterpret `parse-error' as a category of errors
299   and put some other errors under it.
300
301 ** A function to tell you the argument pattern of functions.
302   See `function-arity' in http://www.loveshack.ukfsn.org/emacs/fx-misc.el.
303
304 ** Make byte-compile warn when a doc string is too wide.
305
306 ** Make byte-optimization warnings issue accurate line numbers.
307
308 ** A function to check for customizable options that have been
309   set but not saved, and ask the user whether to save them.
310   This could go in kill-emacs-query-functions, to remind people
311   to save their changes. If the user says yes, show them
312   in a Custom buffer using customize-customized.
313
314 ** Record the sxhash of the default value for customized variables
315   and notify the user (maybe by adding a menu item or toolbar button,
316   as the detection can occur during autoload time) when the default
317   changes (meaning that new versions of the Lisp source with a changed
318   default value got installed) and offer ediff on the respective
319   customization buffers.
320
321 ** Emacs Lisp mode could put an overlay on the defun for every
322   function that has advice.  The overlay could have `after-text' like
323   " [Function has advice]".  It might look like (defun foo [Function
324   has advice] (x y) The overlay could also be a button that you could
325   use to view the advice.
326
327 ** Add a function to get the insertion-type of the markers in an overlay.
328
329 ** ange-ftp
330 *** understand sftp
331    This is hard to make work because sftp doesn't print status messages.
332
333 *** Use MLS for ange-ftp-insert-directory if a list of files is specified.
334
335 ** Ability to map a key, including all modified-combinations.
336    E.g map mouse-4 to wheel-up as well as M-mouse-4 -> M-wheel-up
337    M-C-mouse-4 -> M-C-wheel-up, H-S-C-M-s-double-mouse-4 ->
338    H-S-C-M-s-double-wheel-up, ...
339
340 ** Beefed-up syntax-tables.
341 *** recognize multi-character syntactic entities like `begin' and `end'.
342 *** nested string-delimiters (for PostScript's (foo(bar)baz) strings).
343 *** support for infix operators (with precedence).
344 *** support for the $ (paired delimiter) in parse-partial-sexp.
345 *** support for hook-chars whose effect on the parsing-state is specified
346         by elisp code.  Thus a char could both close a string and open a comment
347         at the same time and do it in a context-sensitive way.
348 *** ability to add mode-specific data to the partial-parse-state.
349
350 ** Add a way to convert a keyboard macro to equivalent Lisp code.
351
352 ** Have a command suggestion help system that recognizes patterns
353   of commands which could be replaced with a simpler common command.
354   It should not make more than one suggestion per 10 minutes.
355
356 ** Add a way to define input methods by computing them (when first used)
357   from other input methods.  Then redefine C-x 8 to use a
358   user-selected input method, with the default being the union of
359   latin-1-prefix and latin-1-postfix.
360
361 ** Switch the Windows port to using Unicode keyboard input (maybe).
362   Based on http://msdn2.microsoft.com/en-us/library/ms633586.aspx,
363   this boils down to (1) calling RegisterClassW function to register
364   Emacs windows, and (2) modifying ALL system messages to use Unicode.
365   In particular, WM_CHAR messages, which result from keyboard input,
366   will then come in encoded in UTF-16.
367
368   One advantage of switching to Unicode is to toss encoded-kbd usage,
369   which will solve the problem with binding non-ASCII keys with modifiers.
370
371   Problem: using this on Windows 9x/ME requires installing the
372   Microsoft Layer for Unicode (MSLU), which might not implement all
373   the required functionality that is available built-in on Windows XP
374   and later.  We should not make this change if it would pressure
375   users of unauthorized copies of older versions of Windows to
376   downgrade to versions that require activation.
377
378 ** Implement a clean way to use different major modes for
379   different parts of a buffer.  This could be useful in editing
380   Bison input files, for instance, or other kinds of text
381   where one language is embedded in another language.  See
382   http://www.loveshack.ukfsn.org/emacs/multi-mode.el and also
383   mmm-mode, as reference for approaches taken by others.
384
385 ** Arrange a way for an input method to return the first character
386   immediately, then replace it later.  So that C-s a with
387   input method latin-1-postfix would immediately search for an a.
388
389 ** Give start-process the ability to direct standard-error
390   output to a different filter.
391
392 ** Make desktop.el save the "frame configuration" of Emacs (in some
393   useful sense).
394
395 ** Give desktop.el a feature to switch between different named desktops.
396
397 ** Add a cpio mode, more or less like tar mode.
398
399 ** Save undo information in special temporary files, and reload it
400   when needed for undoing.  This could extend undo capacity.
401
402 ** Change the Windows NT menu code
403   so that it handles the deep_p argument and avoids
404   regenerating the whole menu bar menu tree except
405   when the user tries to use the menubar.
406
407   This requires the RIT to forward the WM_INITMENU message to
408   the main thread, and not return from that message until the main
409   thread has processed the MENU_BAR_ACTIVATE_EVENT and regenerated
410   the whole menu bar.  In the mean time, it should process other messages.
411
412 ** Get some major packages installed: W3 (development version needs
413   significant work), PSGML, _possibly_ ECB.
414   http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg01493.html
415   Check the assignments file for other packages which might go in and
416   have been missed.
417
418 ** Make keymaps a first-class Lisp object (this means a rewrite of
419   keymap.c).  What should it do apart from being opaque ?
420   multiple inheritance ?  faster where-is ?  no more fix_submap_inheritance ?
421   what else ?
422
423 ** Provide real menus on ttys.  The MS-DOS implementation can serve as
424   an example how to do part of this; see the XMenu* functions on msdos.c.
425
426 ** Implement popular parts of the rest of the CL functions as compiler
427   macros in cl-macs.  [Is this still relevant now that cl-lib exists?]
428
429 ** Make compiler warnings about functions that might be undefined at run time
430  smarter, so that they know which files are required by the file being
431  compiled and don't warn about functions defined in them.
432
433 ** Highlight rectangles (`mouse-track-rectangle-p' in XEmacs).  Already in CUA,
434   but it's a valuable feature worth making more general.
435
436 ** Eliminate the storm of warnings concerning char/unsigned char
437   mismatches that we get with GCC 4.x and proprietary compilers on
438   various systems.  They make it difficult to spot the important warnings.
439
440 ** Fix anything necessary to use `long long' EMACS_INTs with GCC.
441
442 ** Split out parts of lisp.h.
443
444 ** Update the FAQ.
445
446 ** Allow auto-compression-mode to use zlib calls if zlib is available.
447   [It's required for PNG, so may be linked anyhow.]
448
449 ** Add a --pristine startup flag which does -q --no-site-file plus
450   ignoring X resources (Doze equivalents?) and most of the
451   environment.  What should not be ignored needs consideration.
452   [Do the existing -Q and -D cover this, or is more needed?]
453
454 ** Improve the GC (generational, incremental).  (We may be able to use
455   the Boehm collector.)  [See the Boehm-GC branch in CVS for work on this.]
456
457 ** Check what hooks would help Emacspeak -- see the defadvising in W3.
458
459 ** Add definitions for symbol properties, for documentation purposes.
460
461 ** Add horizontal scroll bars.
462
463 ** Provide an optional feature which computes a scroll bar slider's
464   size and its position from lines instead of characters.
465
466 ** Allow unknown image types to be rendered via an external program
467   converting them to, say, PBM (in the same way as PostScript?). [does
468   doc-view.el do this, or could it be extended to do this?
469   Does ImageMagick obsolete this idea?]
470
471 ** Allow displaying an X window from an external program in a buffer,
472   e.g. to render graphics from Java applets.  [gerd and/or wmperry
473   thought this was feasible.]
474
475 ** Allow images (not just text) in the margin to be mouse-sensitive.
476   (Requires recursing through display properties).  Provide some way
477   to simulate mouse-clicks on marginal text without a mouse.
478
479 ** Implement Lisp functions to determine properly whether a character
480   is displayable (particularly needed in XFree 4, sigh).  Use it to
481   define useful glyphs that may be displayed as images or unicodes
482   (with ASCIIfied fallback via latin1-disp).  Examples include
483   box-drawing graphics in Custom buffers, W3 rules and tables, and
484   tree displays generally, mode-line mail indicator.  [See work done
485   already for Emacs 23 and consult fx.]
486
487 ** Do something to make rms happy with fx's dynamic loading, and use it
488   to implement things like auto-loaded buffer parsers and database
489   access in cases which need more than Lisp.
490
491 ** Extend ps-print to deal with multiple font sizes, images, and extra
492   encodings.
493
494 ** Provide portable undumping using mmap (per gerd design).
495
496 ** Make byte-compile avoid binding an expanded defsubst's args
497   when the body only calls primitives.
498
499 ** Use the XIE X extension, if available, for image display.
500
501 ** Make monochrome images display using the foreground and background
502   colors of the applicable faces.
503
504 ** Make `format-time-string' preserve text properties like `format'.
505
506 ** Optionally make the cursor a little thinner at the end of a line
507   or the end of the buffer.
508
509 ** Port the conservative stack marking code of Emacs' garbage collector
510   to more systems, so that we can completely get rid of GCPROs.  Note
511   that Boehm garbage collector provides this.
512
513 ** Reorder defcustom's in each package so that the more important
514   options come first in the Customize buffers.  This could be done by
515   either rearranging the file (since options are shown in the order
516   they appear in the *.el files), or by adding a few :set-after attributes.
517
518 ** Maybe document the features of libraries missing from the manual (or
519   ancillary manuals, including the Lisp manual in some cases).
520   This is not worth doing for all of these packages and we need not
521   aim for completeness, but some may be worth documenting.
522
523   Here's a list which is probably not complete/correct: align, allout,
524   artist, ansi-color, array, battery, calculator, cdl, cmuscheme,
525   completion, cua, delim-col, dirtrack, double, echistory, elide-head,
526   easymenu, expand, flow-ctrl, format [format-alist],
527   generic/generic-x [various modes], kermit, log-edit,
528   makesum, midnight [other than in Kill Buffer node],
529   mouse-copy [?], mouse-drag, mouse-sel, net-utils, rcompile,
530   snmp-mode [?], soundex [should be interactive?], strokes [start from
531   the web page], talk, thingatpt [interactive functions?], type-break,
532   vcursor, xscheme, zone-mode [?], mlconvert [?], iso-cvt,
533   feedmail [?], uce, gametree, meese, page-ext,
534   refbib, refer, scribe, sgml-mode, spell, texinfo, underline,
535   cmacexp, hideif, mantemp [obsolete?], pcomplete, xml,
536   cvs-status (should be described in PCL-CVS manual); other progmodes,
537   probably in separate manual.
538
539 ** Convert the XPM bitmaps to PPM, replace the PBMs with them and scrap
540   the XPMs so that the color versions work generally.  (Requires care
541   with the color used for the transparent regions.)
542
543 ** Convenient access to the `values' variable.  It would be nice to have an
544   interface that would show you the printed reps of the elements of the
545   list in a menu, let you select one of the values, and put it into some
546   other variable, without changing the value of `values'.
547
548 ** (Controlled by a flag) make open and close syntax match exactly,
549   i.e. `(' doesn't match `]'.
550
551 ** Specify parameter ID-FORMAT in all calls to `file-attributes' and
552   `directory-files-and-attributes' where attributes UID or GID are used.
553   Whenever possible, use value 'string.
554   When done, change meaning of default value from 'integer to 'string.
555   If value 'integer is used nowhere, remove the parameter ID-FORMAT from
556   the definition of `file-attributes' and `directory-files-and-attributes'
557   and from the calls.
558
559 ** Make language-info-alist customizable.  Currently a user can customize
560   only the variable `current-language-environment'.
561
562 ** Improve language environment handling so that Emacs can fit
563   better to a users locale.  Currently Emacs uses utf-8 language
564   environment for all utf-8 locales, thus a user in ja_JP.UTF-8 locale
565   are also put in utf-8 lang. env.  In such a case, it is
566   better to use Japanese lang. env. but prefer utf-8 coding system.
567
568 ** Enhance locale handling:  handle language, territory and charset
569   orthogonally and de-emphasize language environments.  Use the locale
570   to set up more things, such as fontsets, the default Ispell
571   dictionary, diary format, calendar holidays and display, quoting
572   characters and phrase boundaries, sentence endings, collation for
573   sorting (at least for unicodes), HTTP Accept-language, patterns for
574   directory listings and compilation messages, yes-or-no replies,
575   common menu items when the toolkit supports it ...  `locale-info'
576   needs extending for LC_COLLATE &c.  [fx started on this.]
577
578 ** Eliminate the current restriction on header printing by ps-print.
579   Currently, a header can contain only single 1-byte charset in
580   addition to ASCII.
581
582 ** In ps-print, provide an user friendly interface to specify fonts.
583
584 ** Enhance word boundary detection for such a script that doesn't use
585   space at word boundary (e.g. Thai).
586
587 ** Implement interface programs with major Japanese conversion server
588   in lib-src so that they can be used from the input method
589   "japanese".  Currently, most Japanese users are using external
590   packages (e.g. tamago, anthy) or an input method via XIM.
591
592 ** Let LEIM handle the Mode_switch key like XIM does (i.e. a toggle like C-\
593    but which can also be used as a modifier).
594
595 ** Improve Help buffers: Change the face of previously visited links (like
596    Info, but also with regard to namespace), and give the value of
597    lisp expressions, e.g auto-mode-alist, the right face.
598
599 ** Possibly make `list-holidays' eval items in the calendar-holidays variable.
600    See thread
601    <http://lists.gnu.org/archive/html/emacs-devel/2006-02/msg01034.html>.
602    [rgm@gnu.org will look at this after 22.1]
603
604 ** Possibly make cal-dst use the system timezone database directly.
605    See thread
606    <http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-11/msg00060.html>
607
608 ** Possibly add a "close" button to the modeline.
609    The idea is to add an "X" of some kind, that when clicked deletes
610    the window associated with that modeline.
611    http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg02416.html
612
613 * Things to be done for specific packages or features
614
615 ** NeXTstep port
616
617 *** Bugs
618
619 **** The event loop does not redraw.
620      A problem is that redraw don't happen during resize,
621      because we can't break out from the NSapp loop during resize.
622      There was a special trick to detect mouse press in the lower right
623      corner and track mouse movements, but this did not work well, and was
624      not scalable to the new Lion "resize on every window edge" behavior.
625      [As of trunk r109635, 2012-08-15, the event loop no longer polls.]
626
627 **** (mouse-avoidance-mode 'banish) then minimize Emacs, will pop window back
628 up on top of all others
629
630 **** free_frame_resources, face colors
631
632 **** Numeric keysetting bug.
633
634 *** Mac-related
635
636 **** Open file:/// URLs.
637
638 **** Put frame autopositioning into C code somewhere -- if loc = same, offset.
639
640 **** Automap ctrl-mouse-1 to mouse-3.
641
642 **** Deal with Finder aliases somehow.
643
644 **** Ctrl-F2 won't pull up menus.
645
646 *** Other / Low Priority:
647
648 **** Better recognition of Unicode scripts / Greek / composition.
649
650 **** Undo for color-drag face customization.
651
652 ** Bidirectional editing
653
654 *** Support reordering structured text
655 Two important use cases: (1) comments and strings in program sources,
656 and (2) text with markup, like HTML or XML.
657
658 One idea is to invent a special text property that would instruct the
659 display engine to reorder only the parts of buffer text covered by
660 that property.  The display engine will then push its state onto the
661 iterator stack, restrict the bidi iterator to accessing only the
662 portion of buffer text covered by the property, reorder the text, then
663 pop its state from stack and continue as usual.  This will require
664 minor changes in the bidi_it structure.
665
666 This design requires Lisp-level code to put the text properties on the
667 relevant parts of the buffer text.  That could be done using JIT
668 fontifications, or as a preliminary processing when the file is
669 visited.  With HTML/XML, the code that puts text properties needs to
670 pay attention to the bidi directives embedded in the HTML/XML stream.
671
672 *** Allow the user to control the direction of the UI
673
674 **** Introduce user option to control direction of mode line.
675 One problem is the header line, which is produced by the same routines
676 as the mode line.  While it makes sense to have the mode-line
677 direction controlled by a single global variable, header lines are
678 buffer-specific, so they need a separate treatment in this regard.
679
680 **** User options to control direction of menu bar and tool bar.
681 For the tool bar, it's relatively easy: set it.paragraph_embedding
682 in redisplay_tool_bar according to the user variable, and make
683 f->desired_tool_bar_string multibyte with STRING_SET_MULTIBYTE.  Some
684 minor changes will be needed to set the right_box_line_p and
685 left_box_line_p flags correctly for the R2L tool bar.
686
687 However, it makes no sense to display the tool bar right to left if
688 the menu bar cannot be displayed in the same direction.
689
690 R2L menu bar is tricky for the same reasons as the mode line.  In
691 addition, toolkit builds create their menu bars in toolkit-specific
692 parts of code, bypassing xdisp.c, so those parts need to be enhanced
693 with toolkit-specific code to display the menu bar right to left.
694
695 ** ImageMagick support
696
697 *** image-type-header-regexps priorities the jpeg loader over the
698 ImageMagick one.  This is not wrong, but how should a user go about
699 preferring the ImageMagick loader?  The user might like zooming etc in jpegs.
700
701 Try (setq image-type-header-regexps nil) for a quick hack to prefer
702 ImageMagick over the jpg loader.
703
704 *** For some reason its unbearably slow to look at a page in a large
705 image bundle using the :index feature.  The ImageMagick "display"
706 command is also a bit slow, but nowhere near as slow as the Emacs
707 code.  It seems ImageMagick tries to unpack every page when loading the
708 bundle.  This feature is not the primary usecase in Emacs though.
709
710 ImageMagick 6.6.2-9 introduced a bugfix for single page djvu load.  It
711 is now much faster to use the :index feature, but still not very fast.
712
713 *** Try to cache the num pages calculation.  It can take a while to
714 calculate the number of pages, and if you need to do it for each page
715 view, page-flipping becomes uselessly slow.
716
717 *** Integrate with image-dired.
718
719 *** Integrate with docview.
720
721 *** Integrate with image-mode.
722 Some work has been done, e.g. M-x image-transform-fit-to-height will
723 fit the image to the height of the Emacs window.
724
725 *** Look for optimizations for handling images with low depth.
726 Currently the code seems to default to 24 bit RGB which is costly for
727 images with lower bit depth.
728
729 *** Decide what to do with some uncommitted imagemagick support
730 functions for image size etc.
731
732 ** nxml mode
733
734 *** High priority
735
736 **** Command to insert an element template, including all required
737 attributes and child elements.  When there's a choice of elements
738 possible, we could insert a comment, and put an overlay on that
739 comment that makes it behave like a button with a pop-up menu to
740 select the appropriate choice.
741
742 **** Command to tag a region.  With a schema should complete using legal
743 tags, but should work without a schema as well.
744
745 **** Provide a way to conveniently rename an element.  With a schema should
746 complete using legal tags, but should work without a schema as well.
747
748 *** Outlining
749
750 **** Implement C-c C-o C-q.
751
752 **** Install pre/post command hook for moving out of invisible section.
753
754 **** Put a modify hook on invisible sections that expands them.
755
756 **** Integrate dumb folding somehow.
757
758 **** An element should be able to be its own heading.
759
760 **** Optimize to avoid complete buffer scan on each command.
761
762 **** Make it work with HTML-style headings (i.e. level indicated by
763 name of heading element rather than depth of section nesting).
764
765 **** Recognize root element as a section provided it has a title, even
766 if it doesn't match section-element-name-regex.
767
768 **** Support for incremental search automatically making hidden text visible.
769
770 **** Allow title to be an attribute.
771
772 **** Command that says to recognize the tag at point as a section/heading.
773
774 **** Explore better ways to determine when an element is a section
775 or a heading.
776
777 **** rng-next-error needs to either ignore invisible portion or reveal it
778 (maybe use isearch oriented text properties).
779
780 **** Errors within hidden section should be highlighted by underlining the
781 ellipsis.
782
783 **** Make indirect buffers work.
784
785 **** How should nxml-refresh outline recover from non well-formed tags?
786
787 **** Hide tags in title elements?
788
789 **** Use overlays instead of text properties for holding outline state?
790 Necessary for indirect buffers to work?
791
792 **** Allow an outline to go in the speedbar.
793
794 **** Split up outlining manual section into subsections.
795
796 **** More detail in the manual about each outlining command.
797
798 **** More menu entries for hiding/showing?
799
800 **** Indication of many lines have been hidden?
801
802 *** Locating schemas
803
804 **** Should rng-validate-mode give the user an opportunity to specify a
805 schema if there is currently none? Or should it at least give a hint
806 to the user how to specify a non-vacuous schema?
807
808 **** Support for adding new schemas to schema-locating files.
809 Add documentElement and namespace elements.
810
811 **** C-c C-w should be able to report current type id.
812
813 **** Implement doctypePublicId.
814
815 **** Implement typeIdBase.
816
817 **** Implement typeIdProcessingInstruction.
818
819 **** Support xml:base.
820
821 **** Implement group.
822
823 **** Find preferred prefix from schema-locating files.  Get rid of
824 rng-preferred-prefix-alist.
825
826 **** Inserting document element with vacuous schema should complete using
827 document elements declared in schema locating files, and set schema
828 appropriately.
829
830 **** Add a ruleType attribute to the <include> element?
831
832 **** Allow processing instruction in prolog to contain the compact syntax
833 schema directly.
834
835 **** Use RDDL to locate a schema based on the namespace URI.
836
837 **** Should not prompt to add redundant association to schema locating file.
838
839 **** Command to reload current schema.
840
841 *** Schema-sensitive features
842
843 **** Should filter dynamic markup possibilities using schema validity, by
844 adding hook to nxml-mode.
845
846 **** Dynamic markup word should (at least optionally) be able to look in
847 other buffers that are using nxml-mode.
848
849 **** Should clicking on Invalid move to next error if already on an error?
850
851 **** Take advantage of a:documentation.  Needs change to schema format.
852
853 **** Provide feasible validation (as in Jing) toggle.
854
855 **** Save the validation state as a property on the error overlay to enable
856 more detailed diagnosis.
857
858 **** Provide an Error Summary buffer showing all the validation errors.
859
860 **** Pop-up menu.  What is useful?  Tag a region (should be grayed out if
861 the region is not balanced).  Suggestions based on error messages.
862
863 **** Have configurable list of namespace URIs so that we can provide
864 namespace URI completion on extension elements or with schema-less documents.
865
866 **** Allow validation to handle XInclude.
867
868 **** ID/IDREF support.
869
870 *** Completion
871
872 **** Make it work with icomplete.  Only use a function to complete when
873 some of the possible names have undeclared namespaces.
874
875 **** How should C-return in mixed text work?
876
877 **** When there's a vacuous schema, C-return after < will insert the end-tag.
878 Is this a bug or a feature?
879
880 **** After completing start-tag, ensure we don't get unhelpful message
881 from validation
882
883 **** Syntax table for completion.
884
885 **** Should complete start-tag name with a space if namespace attributes
886 are required.
887
888 **** When completing start-tag name with no prefix and it doesn't match
889 should try to infer namespace from local name.
890
891 **** Should completion pay attention to characters after point?  If so, how?
892
893 **** When completing start-tag name, add required atts if only one required
894 attribute.
895
896 **** When completing attribute name, add attribute value if only one value
897 is possible.
898
899 **** After attribute-value completion, insert space after close delimiter
900 if more attributes are required.
901
902 **** Complete on enumerated data values in elements.
903
904 **** When in context that allows only elements, should get tag
905 completion without having to type < first.
906
907 **** When immediately after start-tag name, and name is valid and not
908 prefix of any other name, should C-return complete on attribute names?
909
910 **** When completing attributes, more consistent to ignore all attributes
911 after point.
912
913 **** Inserting attribute value completions needs to be sensitive to what
914 delimiter is used so that it quotes the correct character.
915
916 **** Complete on encoding-names in XML decl.
917
918 **** Complete namespace declarations by searching for all namespaces
919 mentioned in the schema.
920
921 *** Well-formed XML support
922
923 **** Deal better with Mule-UCS
924
925 **** Deal with UTF-8 BOM when reading.
926
927 **** Complete entity names.
928
929 **** Provide some support for entity names for MathML.
930
931 **** Command to repeat the last tag.
932
933 **** Support for changing between character references and characters.
934 Need to check that context is one in which character references are
935 allowed.  xmltok prolog parsing will need to distinguish parameter
936 literals from other kinds of literal.
937
938 **** Provide a comment command to bind to M-; that works better than the
939 normal one.
940
941 **** Make indenting in a multi-line comment work.
942
943 **** Structure view.  Separate buffer displaying element tree.
944 Be able to navigate from structure view to document and vice-versa.
945
946 **** Flash matching >.
947
948 **** Smart selection command that selects increasingly large syntactically
949 coherent chunks of XML.  If point is in an attribute value, first
950 select complete value; then if command is repeated, select value plus
951 delimiters, then select attribute name as well, then complete
952 start-tag, then complete element, then enclosing element, etc.
953
954 **** ispell integration.
955
956 **** Block-level items in mixed content should be indented, e.g:
957   <para>This is list:
958     <ul>
959       <li>item</li>
960
961 **** Provide option to indent like this:
962     <para>This is a paragraph
963      occupying multiple lines.</para>
964
965 **** Option to add make a / that closes a start-tag electrically insert a
966 space for the XHTML guys.
967
968 **** C-M-q should work.
969
970 *** Datatypes
971
972 **** Figure out workaround for CJK characters with regexps.
973
974 **** Does category C contain Cn?
975
976 **** Do ENTITY datatype properly.
977
978 *** XML Parsing Library
979
980 **** Parameter entity parsing option, nil (never), t (always),
981 unless-standalone (unless standalone="yes" in XML declaration).
982
983 **** When a file is currently being edited, there should be an option to
984 use its buffer instead of the on-disk copy.
985
986 *** Handling all XML features
987
988 **** Provide better support for editing external general parsed entities.
989 Perhaps provide a way to force ignoring undefined entities; maybe turn
990 this on automatically with <?xml encoding=""?> (with no version
991 pseudo-att).
992
993 **** Handle internal general entity declarations containing elements.
994
995 **** Handle external general entity declarations.
996
997 **** Handle default attribute declarations in internal subset.
998
999 **** Handle parameter entities (including DTD).
1000
1001 *** RELAX NG
1002
1003 **** Do complete schema checking, at least optionally.
1004
1005 **** Detect include/external loops during schema parse.
1006
1007 **** Coding system detection for schemas.  Should use utf-8/utf-16 per the
1008 spec.  But also need to allow encodings other than UTF-8/16 to support
1009 CJK charsets that Emacs cannot represent in Unicode.
1010
1011 *** Catching XML errors
1012
1013 **** Check public identifiers.
1014
1015 **** Check default attribute values.
1016
1017 *** Performance
1018
1019 **** Explore whether overlay-recenter can cure overlays performance problems.
1020
1021 **** Cache schemas.  Need to have list of files and mtimes.
1022
1023 **** Make it possible to reduce rng-validate-chunk-size significantly,
1024 perhaps to 500 bytes, without bad performance impact: don't do
1025 redisplay on every chunk; pass continue functions on other uses of
1026 rng-do-some-validation.
1027
1028 **** Cache after first tag.
1029
1030 **** Introduce a new name class that is a choice between names (so that
1031 we can use member)
1032
1033 **** intern-choice should simplify after patterns with same 1st/2nd args
1034
1035 **** Large numbers of overlays slow things down dramatically.  Represent
1036 errors using text properties.  This implies we cannot incrementally
1037 keep track of the number of errors, in order to determine validity.
1038 Instead, when validation completes, scan for any characters with an
1039 error text property; this seems to be fast enough even with large
1040 buffers.  Problem with error at end of buffer, where there's no
1041 character; need special variable for this.  Need to merge face from
1042 font-lock with the error face: use :inherit attribute with list of two
1043 faces.  How do we avoid making rng-valid depend on nxml-mode?
1044
1045 *** Error recovery
1046
1047 **** Don't stop at newline in looking for close of start-tag.
1048
1049 **** Use indentation to guide recovery from mismatched end-tags
1050
1051 **** Don't keep parsing when currently not well-formed but previously
1052 well-formed
1053
1054 **** Try to recover from a bad start-tag by popping an open element if
1055 there was a mismatched end-tag unaccounted for.
1056
1057 **** Try to recover from a bad start-tag open on the hypothesis that there
1058 was an error in the namespace URI.
1059
1060 **** Better recovery from ill-formed XML declarations.
1061
1062 *** Usability improvements
1063
1064 **** Should print a "Parsing..." message during long movements.
1065
1066 **** Provide better position for reference to undefined pattern error.
1067
1068 **** Put Well-formed in the mode-line when validating against any-content.
1069
1070 **** Trim marking of illegal data for leading and trailing whitespace.
1071
1072 **** Show Invalid status as soon as we are sure it's invalid, rather than
1073 waiting for everything to be completely up to date.
1074
1075 **** When narrowed, Valid or Invalid status should probably consider only
1076 validity of narrowed region.
1077
1078 *** Bug fixes
1079
1080 **** Need to give an error for a document like: <foo/><![CDATA[  ]]>
1081
1082 **** Make nxml-forward-balanced-item work better for the prolog.
1083
1084 **** Make filling and indenting comments work in the prolog.
1085
1086 **** Should delete RNC Input buffers.
1087
1088 **** Figure out what regex use for NCName and use it consistently,
1089
1090 **** Should have not-well-formed tokens in ref.
1091
1092 **** Require version in XML declaration? Probably not because prevents
1093 use for external parsed entities.  At least forbid standalone without version.
1094
1095 **** Reject schema that compiles to rng-not-allowed-ipattern.
1096
1097 **** Move point backwards on schema parse error so that it's on the right token.
1098
1099 *** Internal
1100
1101 **** Use rng-quote-string consistently.
1102
1103 **** Use parsing library for XML to texinfo conversion.
1104
1105 **** Rename xmltok.el to nxml-token.el.  Use nxml-t- prefix instead of
1106 xmltok-.  Change nxml-t-type to nxml-t-token-type, nxml-t-start to
1107 nxml-t-token-start.
1108
1109 **** Can we set fill-prefix to nil and rely on indenting?
1110
1111 **** xmltok should make available replacement text of entities containing
1112 elements
1113
1114 **** In rng-valid, instead of using modification-hooks and
1115 insert-behind-hooks on dependent overlays, use same technique as nxml-mode.
1116
1117 **** Port to XEmacs.  Issues include: Unicode (XEmacs seems to be based on
1118 Mule-UCS); overlays/text properties vs extents; absence of
1119 fontification-functions hook.
1120
1121 *** Fontification
1122
1123 **** Allow face to depend on element qname, attribute qname, attribute
1124 value.  Use list with pairs of (R . F), where R specifies regexps and
1125 F specifies faces.  How can this list be made to depend on the document type?
1126
1127 *** Other
1128
1129 **** Support RELAX NG XML syntax (use XML parsing library).
1130
1131 **** Support W3C XML Schema (use XML parsing library).
1132
1133 **** Command to infer schema from current document (like trang).
1134
1135 *** Schemas
1136
1137 **** XSLT schema should take advantage of RELAX NG to express cooccurrence
1138 constraints on attributes (e.g. xsl:template).
1139
1140 *** Documentation
1141
1142 **** Move material from README to manual.
1143
1144 **** Document encodings.
1145
1146 *** Notes
1147
1148 **** How can we allow an error to be displayed on a different token from
1149 where it is detected?  In particular, for a missing closing ">" we
1150 will need to display it at the beginning of the following token.  At the
1151 moment, when we parse the following token the error overlay will get cleared.
1152
1153 **** How should rng-goto-next-error deal with narrowing?
1154
1155 **** Perhaps should merge errors having same start position even if they
1156 have different ends.
1157
1158 **** How to handle surrogates? One possibility is to be compatible with
1159 utf8.e: represent as sequence of 4 chars.  But utf-16 is incompatible
1160 with this.
1161
1162 **** Should we distinguish well-formedness errors from invalidity errors?
1163 (I think not: we may want to recover from a bad start-tag by implying
1164 an end-tag.)
1165
1166 **** Seems to be a bug with Emacs, where a mouse movement that causes
1167 help-echo text to appear counts as pending input but does not cause
1168 idle timer to be restarted.
1169
1170 **** Use XML to represent this file.
1171
1172 **** I had a TODO which said simply "split-string".  What did I mean?
1173
1174 **** Investigate performance on large files all on one line.
1175
1176 *** Issues for Emacs versions >= 22
1177
1178 **** Take advantage of UTF-8 CJK support.
1179
1180 **** Supply a next-error-function.
1181
1182 **** Investigate this NEWS item "Emacs now tries to set up buffer coding
1183 systems for HTML/XML files automatically."
1184
1185 **** Take advantage of the pointer text property.
1186
1187 **** Leverage char-displayable-p.
1188
1189 * Internal changes
1190
1191 ** Cleanup all the GC_ mark bit stuff -- there is no longer any distinction
1192    since the mark bit is no longer stored in the Lisp_Object itself.
1193
1194 ** Refine the `predicate' arg to read-file-name.
1195    Currently, it mixes up the predicate to apply when doing completion and the
1196    one to use when terminating the selection.
1197
1198 ** Merge ibuffer.el and buff-menu.el.
1199    More specifically do what's needed to make ibuffer.el the default,
1200    or just an extension of buff-menu.el.
1201
1202 ** Use pcomplete by default in shell-mode.
1203    This means to make it behave (by default) more like the current code.
1204    Use it also for read-shell-command, M-x compile, ...
1205
1206 ** Merge sendmail.el and messages.el.
1207    Probably not a complete merge, but at least arrange for messages.el to be
1208    a derived mode of sendmail.el.  Or arrange for messages.el to be split
1209    into a small core and "the rest" so that we use less resources as long as
1210    we stick to the features provided in sendmail.el.
1211
1212 ** Replace gmalloc.c with the modified Doug Lea code from the current
1213    GNU libc so that the special mmapping of buffers can be removed --
1214    that apparently loses under Solaris, at least. [fx has mostly done
1215    this.]
1216
1217 ** Rewrite make-docfile to be clean and maintainable.
1218    It might be better to replace it with Lisp, using the byte compiler.
1219    http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00037.html
1220
1221 ** Add an inferior-comint-minor-mode to capture the common set of operations
1222    offered by major modes that offer an associated inferior
1223    comint-derived mode.  I.e. basically make cmuscheme.el/inf-lisp.el generic.
1224    For use by sml-mode, python-mode, tex-mode, scheme-mode, lisp-mode,
1225    haskell-mode, tuareg-mode, ...
1226
1227 ** Add "link" button class
1228    Add a standard button-class named "link", and make all other link-like
1229    button classes inherit from it.  Set the default face of the "link" button
1230    class to the standard "link" face.
1231
1232 * Wishlist items:
1233
1234 ** Maybe replace etags.c with a Lisp implementation.
1235 http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00354.html
1236
1237 ** Maybe replace lib-src/rcs2log with a Lisp implementation.
1238 It wouldn't have to be a complete replacement, just enough
1239 for vc-rcs-update-changelog.
1240
1241 * Other known bugs:
1242
1243 ** `make-frame' forgets unhandled parameters, at least for X11 frames.
1244
1245 ** a two-char comment-starter whose two chars are symbol constituents will
1246 not be noticed if it appears within a word.
1247
1248 ** Fix unexelf.c to handle the .data.rel and .data.rel.local
1249    sections made by GCC 3.4 on IRIX.
1250
1251 \f
1252 This file is part of GNU Emacs.
1253
1254 GNU Emacs is free software: you can redistribute it and/or modify
1255 it under the terms of the GNU General Public License as published by
1256 the Free Software Foundation, either version 3 of the License, or
1257 (at your option) any later version.
1258
1259 GNU Emacs is distributed in the hope that it will be useful,
1260 but WITHOUT ANY WARRANTY; without even the implied warranty of
1261 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1262 GNU General Public License for more details.
1263
1264 You should have received a copy of the GNU General Public License
1265 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.