Update eieio tests for recent eieio-core change.
[emacs.git] / etc / TODO
Commit [+]AuthorDateLineData
309920fa
EZ
Eli Zaretskii2006-06-03 12:52:35 +00001Emacs TODO List -*-outline-*-
2
7e09ef09 Paul Eggert2015-01-01 14:26:41 -08003Copyright (C) 2001-2015 Free Software Foundation, Inc.
5b87ad55
GM
Glenn Morris2007-02-11 01:18:25 +00004See the end of the file for license conditions.
5
19cc91fb Gerd Moellmann2000-11-24 21:07:19 +00006
2255d5b4
RS
Richard M. Stallman2002-05-01 16:36:11 +00007If you are ready to start working on any of these TODO items, we
8appreciate your help; please write to emacs-devel@gnu.org so we can be
9aware that the problem is being addressed, and talk with you how to do
6d4cb47e
GM
Glenn Morris2013-02-16 12:24:50 -080010it best. Also to check that it hasn't been done already, since we
11don't always remember to update this file! It is best to consult
12the latest version of this file in the Emacs source code repository.
13
14Since Emacs is an FSF-copyrighted package, please be prepared to sign
15legal papers to transfer the copyright on your work to the FSF.
16For more details on this, see the section "Copyright Assignment"
17in etc/CONTRIBUTE. That file also contains some more practical
18details about getting involved.
19
20As well as the issues listed here, there are bug reports at
21<http://debbugs.gnu.org>. Bugs tagged "easy" ought to be suitable for
22beginners to work on, but unfortunately we are not very good at using
23this tag. Bugs tagged "help" are ones where assistance is required,
24but may be difficult to fix. Bugs with severity "important" or higher
25are the ones we consider more important, but these also may be
26difficult to fix. Bugs with severity "minor" may be simpler, but this
27is not always true.
2255d5b4 Richard M. Stallman2002-05-01 16:36:11 +000028
6a19cde6
SM
Stefan Monnier2014-09-26 18:19:12 -040029* Speed up Elisp execution
30** Speed up function calls
31Change src/bytecode.c so that calls from byte-code functions to byte-code
32functions don't go through Ffuncall/funcall_lambda/exec_byte_code but instead
33stay within exec_byte_code.
34
35** Add new `switch' byte-code
36This byte-code would take one argument from the stack (the object to test)
37and one argument from the constant-pool (a switch table, implemented as an
38eq-hashtable) and would jump to the "label" contained in the hashtable.
39
40Then add a `case' special-form that can be compiled to this byte-code.
41This would behave just like cl-case, but instead of expanding to cond+eq it
42would be its own special form and would be compiled specially.
43
44Then change pcase to use `case' when applicable.
45
46Then change the byte-compiler to recognize (cond ((eq x 'foo) bar) ...)
47and turn it into a `case' for more efficient execution.
48
49** Improve the byte-compiler to recognize immutable (lexical) bindings
50and get rid of them if they're used only once and/or they're bound to
51a constant expression.
52
53Such things aren't present in hand-written code, but macro expansion and
54defsubst can often end up generating things like
55(funcall (lambda (arg) (body)) actual) which then get optimized to
56(let ((arg actual)) (body)) but should additionally get optimized further
57when `actual' is a constant/copyable expression.
58
59** Add an "indirect goto" byte-code and use it for local lambda expressions.
60E.g. when you have code like
61
62 (let ((foo (lambda (x) bar)))
63 (dosomething
64 (funcall foo toto)
65 (blabla (funcall foo titi))))
66
67turn those `funcalls' into jumps and their return into indirect jumps back.
68
69** Compile efficiently local recursive functions
70
71Similar to the previous point, we should be able to handle something like
72
73 (letrec ((loop () (blabla) (if (toto) (loop))))
74 (loop))
75
76which ideally should generate the same byte-code as
77
78 (while (progn (blabla) (toto)))
79
80* Things that were planned for Emacs-24
bbbab483 Stefan Monnier2010-03-07 15:08:38 -050081
bbbab483 Stefan Monnier2010-03-07 15:08:38 -050082** concurrency: including it as an "experimental" compile-time option
6a19cde6
SM
Stefan Monnier2014-09-26 18:19:12 -040083 sounds good. Of course there might still be big questions around "which form
84 of concurrency" we'll want.
bbbab483 Stefan Monnier2010-03-07 15:08:38 -050085** better support for dynamic embedded graphics: I like this idea (my
ce555168 Glenn Morris2012-08-04 11:07:50 -070086 mpc.el code could use it for the volume widget), though I wonder if the
bbbab483
SM
Stefan Monnier2010-03-07 15:08:38 -050087 resulting efficiency will be sufficient.
88** Spread Semantic.
89** Improve the "code snippets" support: consolidate skeleton.el, tempo.el,
90 and expand.el (any other?) and then advertise/use/improve it.
91** Improve VC: yes, there's a lot of work to be done there :-(
bbbab483
SM
Stefan Monnier2010-03-07 15:08:38 -050092
93** Random things that cross my mind right now that I'd like to see (some of
94them from my local hacks), but it's not obvious at all whether they'll
95make it.
38b8b326
GM
Glenn Morris2010-05-18 19:56:44 -070096*** prog-mode could/should provide a better fill-paragraph default
97 that uses syntax-tables to recognize string/comment boundaries.
bbbab483
SM
Stefan Monnier2010-03-07 15:08:38 -050098*** provide more completion-at-point-functions. Make existing
99 in-buffer completion use completion-at-point.
100*** "functional" function-key-map that would make it easy to add (and
101 remove) mappings like "FOO-mouse-4 -> FOO-scroll-down",
102 "FOO-tab -> ?\FOO-\t", "uppercase -> lowercase", "[fringe KEY...] ->
103 [KEY]", "H-FOO -> M-FOO", "C-x C-y FOO -> H-FOO", ...
104
5169b711
GM
Glenn Morris2015-02-20 19:54:02 -0500105* Things related to elpa.gnu.org.
106
107** Move idlwave to elpa.gnu.org.
108Need to sync up the Emacs and external versions.
109See <http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00008.html>
bbbab483 Stefan Monnier2010-03-07 15:08:38 -0500110
43fb42da
GM
Glenn Morris2015-02-20 20:38:43 -0500111** Move Org mode to elpa.gnu.org.
112See <http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00300.html>
113<http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00257.html>
114
115** Move verilog-mode to elpa.gnu.org.
116See <http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg01180.html>
117
118** Move vhdl-mode to elpa.gnu.org.
119See <http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg01180.html>
120
bbbab483 Stefan Monnier2010-03-07 15:08:38 -0500121* Simple tasks. These don't require much Emacs knowledge, they are
c884b4d7
DN
Dan Nicolaescu2008-01-19 20:13:59 +0000122suitable for anyone from beginners to experts.
123
bfb906ac
DN
Dan Nicolaescu2008-08-06 03:46:11 +0000124** Convert modes that use view-mode to be derived from special-mode instead.
125
50426c32 Eli Zaretskii2014-07-15 19:11:33 +0300126** Major modes should have a menu entry.
c884b4d7 Dan Nicolaescu2008-01-19 20:13:59 +0000127
479be3f4 Dan Nicolaescu2008-04-04 22:29:55 +0000128** Check if all items on the mode-line have a suitable tooltip for all modes.
c884b4d7 Dan Nicolaescu2008-01-19 20:13:59 +0000129
4e0ace23
DN
Dan Nicolaescu2008-03-08 20:21:40 +0000130** edebug and debugger-mode should have a toolbar.
131It can use the same icons as gud.
132
c884b4d7
DN
Dan Nicolaescu2008-01-19 20:13:59 +0000133** Check what minor modes don't use define-minor-mode and convert them
134to use it.
135
6d095958
GM
Glenn Morris2008-04-03 04:12:51 +0000136** Convert all defvars with leading `*' in the doc-strings into defcustoms
137of appropriate :type and :group.
138
98374c9a
XF
Xue Fuqiao2013-08-07 20:44:16 +0800139** Remove any leading `*'s from defcustom doc-strings.
140[done?] [A lot of them are in CC Mode.]
63e51ddd
GM
Glenn Morris2009-03-12 06:27:21 +0000141
142** Remove unnecessary autoload cookies from defcustoms.
143This needs a bit of care, since often people have become used to
144expecting such variables to always be defined, eg when they modify
145things in their .emacs.
146
115f44b6
GM
Glenn Morris2009-09-11 06:51:58 +0000147** See if other files can use generated-autoload-file (see eg ps-print).
148
0a1cb9ed
GM
Glenn Morris2012-01-17 19:38:59 -0800149** Write more tests. Pick a fixed bug from the database, write a test
150case to make sure it stays fixed. Or pick your favorite programming
151major-mode, and write a test for its indentation. Or a version
152control backend, and write a test for its status parser. Etc.
153See test/automated for examples.
154
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000155* Small but important fixes needed in existing features:
a9c1a157 Richard M. Stallman2002-03-16 07:08:29 +0000156
cc48343f
RS
Richard M. Stallman2008-03-23 17:13:42 +0000157** Flymake's customization mechanism needs to be both simpler (fewer
158levels of indirection) and better documented, so it is easier to
159understand. I find it quite hard to figure out what compilation
160command it will use.
161
162I suggest totally rewriting that part of Flymake, using the simplest
22bcf204 Paul Eggert2011-12-30 17:27:15 -0800163mechanism that suffices for the specific needs. That will be easy
cc48343f
RS
Richard M. Stallman2008-03-23 17:13:42 +0000164for users to customize.
165
046ece71
KS
Kim F. Storm2006-04-16 23:25:40 +0000166** Distribute a bar cursor of width > 1 evenly between the two glyphs
167 on each side of the bar (what to do at the edges?).
168
125fbe81 Richard M. Stallman2005-11-28 02:38:12 +0000169** revert-buffer should eliminate overlays and the mark.
045744c6
MR
Martin Rudalics2007-12-12 07:37:57 +0000170 For related problems consult the thread starting with
171 http://lists.gnu.org/archive/html/emacs-devel/2005-11/msg01346.html
125fbe81 Richard M. Stallman2005-11-28 02:38:12 +0000172
f98abf6d
RS
Richard M. Stallman2005-12-14 23:14:14 +0000173** erase-buffer should perhaps disregard read-only properties of text.
174
d3a403e5 Stefan Monnier2004-12-07 05:01:55 +0000175** Fix the kill/yank treatment of invisible text. At the moment,
b9e6b498 Glenn Morris2003-09-02 17:43:01 +0000176 invisible text is placed in the kill-ring, so that the contents of
2345130a
SM
Stefan Monnier2005-06-20 14:01:37 +0000177 the ring may not correspond to the text as displayed to the user.
178 It ought to be possible to omit text which is invisible (due to a
b9e6b498
GM
Glenn Morris2003-09-02 17:43:01 +0000179 text-property, overlay, or selective display) from the kill-ring.
180
af09dd78
RS
Richard M. Stallman2006-09-08 12:22:01 +0000181** Feature to change cursor shape when Emacs is idle (for more than
182 a specified time).
183
4e07258f
RS
Richard M. Stallman2005-02-03 07:39:01 +0000184** The buttons at the top of a custom buffer should not omit
185 variables whose values are currently hidden.
186
ec0cf966
RS
Richard M. Stallman2005-04-17 16:04:44 +0000187** Clean up the variables in browse-url. Perhaps use a shell command string to
188 specify the browser instead of the mushrooming set of functions.
189 See also ESR's proposal for a BROWSER environment variable
190 <URL:http://www.catb.org/~esr/BROWSER/browse-url.patch>.
191
528b6abc
RS
Richard M. Stallman2005-06-23 21:49:52 +0000192** Enhance scroll-bar to handle tall line (similar to line-move).
193
f98abf6d
RS
Richard M. Stallman2005-12-14 23:14:14 +0000194** In Custom buffers, put the option that turns a mode on or off first,
195 using a heuristic of some kind?
196
197** Define recompute-arg and recompute-arg-if for fix_command to use.
50426c32
EZ
Eli Zaretskii2014-07-15 19:11:33 +0300198 See rms message of 11 Dec 05 in
199 http://lists.gnu.org/archive/html/emacs-pretest-bug/2005-12/msg00165.html,
200 and the rest of that discussion.
f98abf6d Richard M. Stallman2005-12-14 23:14:14 +0000201
f98abf6d
RS
Richard M. Stallman2005-12-14 23:14:14 +0000202** In Emacs Info, examples of using Customize should be clickable
203 and they should create Custom buffers.
204
321e4870
RS
Richard M. Stallman2005-12-19 23:19:02 +0000205** The toolbar should show keyboard equivalents in its tooltips.
206
74561a26
RS
Richard M. Stallman2007-01-02 18:29:37 +0000207** Add function to redraw the tool bar.
208
5a893bff
RS
Richard M. Stallman2006-03-11 15:25:13 +0000209** Redesign the load-history data structure so it can cope better
210 with evaluating definitions of the same function from different files,
211 recording which file the latest definition came from.
046ece71 Kim F. Storm2006-04-16 23:25:40 +0000212
4b4d11cc
RS
Richard M. Stallman2006-12-20 12:57:41 +0000213** make back_comment use syntax-ppss or equivalent.
214
67ccd6cb
GM
Glenn Morris2007-04-22 01:56:17 +0000215** Consider improving src/sysdep.c's search for a fqdn.
216http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg00782.html
217
218** Find a proper fix for rcirc multiline nick adding.
219http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg00684.html
211fb124 Glenn Morris2007-04-19 17:07:43 +0000220
4af1faa3
GM
Glenn Morris2007-11-27 04:25:37 +0000221** Check for any included packages that define obsolete bug-reporting commands.
222Change them to use report-emacs-bug.
0372256b
XF
Xue Fuqiao2013-08-03 10:57:00 +0800223*** Related functions:
224**** gnus-bug
225**** report-calc-bug
226**** org-submit-bug-report
227**** lm-report-bug
228**** tramp-bug
229**** c-submit-bug-report
230**** ffap-bug and ffap-submit-bug (obsoleted)
231[Do all of them need changing?]
4af1faa3 Glenn Morris2007-11-27 04:25:37 +0000232
7a00b900
NR
Nick Roberts2008-01-08 08:32:10 +0000233** Allow fringe indicators to display a tooltip (provide a help-echo property?)
234
d73803e6
CY
Chong Yidong2008-04-08 01:24:07 +0000235** Add a defcustom that supplies a function to name numeric backup files,
236like make-backup-file-name-function for non-numeric backup files.
237
b1a345ee Martin Rudalics2008-08-23 08:11:51 +0000238** `dired-mode' should specify the semantics of `buffer-modified-p' for
8350f087 Paul Eggert2011-11-14 12:23:26 -0800239dired buffers and DTRT WRT `auto-revert-mode'.
b1a345ee Martin Rudalics2008-08-23 08:11:51 +0000240
48abcfcc
GM
Glenn Morris2008-09-20 19:50:42 +0000241** Check uses of prin1 for error-handling.
242http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00456.html
243
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000244* Important features:
1bf65cad
GM
Glenn Morris2013-11-17 11:34:36 -0800245
246** "Emacs as word processor"
247http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00515.html
248 rms writes:
48a2a0b4 Paul Eggert2013-11-26 12:22:17 -0800249 25 years ago I hoped we would extend Emacs to do WYSIWYG word
1bf65cad
GM
Glenn Morris2013-11-17 11:34:36 -0800250 processing. That is why we added text properties and variable
251 width fonts. However, more features are still needed to achieve this.
252
6a19cde6 Stefan Monnier2014-09-26 18:19:12 -0400253** Extend text-properties and overlays
7eca871a
SM
Stefan Monnier2010-05-24 16:48:46 -0400254*** Several text-property planes
255This would get us rid of font-lock-face property (and I'd be happy to
256get rid of char-property-alias-alist as well) since font-lock would
257simply use the `face' property in the `font-lock' plane.
6a19cde6
SM
Stefan Monnier2014-09-26 18:19:12 -0400258
259Basically `put-text-property' and friends would take an extra argument PLANE
260(maybe the best backward-compatible way to do that is to make it so that
261PROPERTY can be a cons cell (PLANE . PROP)). So font-lock would
262do (put-text-property start end '(font-lock . face) value).
263
264All the properties coming from the various planes would get merged via an Elisp
265function (so it can merge `face' differently than `keymap' or it could give
266different priorities to different planes (we could imagine enabling/disabling
267planes)). The merging would not happen lazily while looking up properties but
268instead it would take place eagerly in `add-text-properties'. This is based on
269the idea that it's much more frequent to lookup properties than to
270modify them. Also, when properties are looked up during redisplay, we
271generally can't run Elisp code, whereas we generally can do that when
272properties are added.
273
274*** Move overlays to intervals.c
275
276Currently overlays are implemented as (two) sorted singly linked lists (one
277for overlays_before some position and one for overlay_after that
278position, for some quirky definition of "before" and "after").
279The function `overlay-recenter' changes the position used for the split
280(and is called internally in various situations).
281
282Each overlay is itself implemented with two markers (which keep track of
283the overlay-start and overlay-end). Markers are implemented as
284a non-sorted singly linked list of markers. So every text
285insertion/deletion requires O(N) time, where N is the number of markers
286since we have to go down that list to update those markers that are
287affected by the modification.
288
289You can start in src/buffer.[ch], maybe grepping for overlays_before for
290a starting point.
291
292Text-properties, OTOH, are implemented with a (mostly) balanced binary
293tree. This is implemented in src/intervals.[ch].
294
295So we'd like to change overlays so that they don't use markers (and we
296don't keep them in two sorted singly-linked lists) any more. Instead,
297we'll store them inside the balanced binary tree used for
298text-properties. I think we can use the "augmented tree" approach
299described in https://en.wikipedia.org/wiki/Interval_tree.
300
301To ease up debugging during development, I'd guess the implementation
302would first add the new stuff, keeping the old stuff (i.e. add to
303Lisp_Overlay whichever fields are needed for the new code, while keeping
304the old ones, add needed overlay fields to the intervals tree, but keep
305the old fields, the overlays_before etc...). This way, you can add
306consistency checks that make sure the new code computes the same results
307as the old code. And once that works well, we can remove the old code
308and old fields.
309
cc48343f
RS
Richard M. Stallman2008-03-23 17:13:42 +0000310** Having tabs above a window to switch buffers in it.
311
312** "Perspectives" are named persistent window configurations. We have
313had the window configuration mechanism in GNU Emacs since the
314beginning but we have never developed a good user interface to take
315advantage of them. Eclipse's user interface seems to be good.
316
317Perspectives work well even if you do the equivalent of C-x 4 C-f
318because of the distinction between view windows vs file windows. In
319Emacs this is more or less the "dedicated window" feature, but we have
320never really made it work for this.
321
322Perspectives also need to interact with the tabs.
323
15fb690c
GM
Glenn Morris2013-10-29 23:27:20 -0700324** FFI (foreign function interface)
325See eg http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00246.html
326
c247c775
EZ
Eli Zaretskii2014-07-04 10:35:22 +0300327One way of doing this is to start with fx's dynamic loading, and use it
328to implement things like auto-loaded buffer parsers and database
329access in cases which need more than Lisp.
330
3cee0272
GM
Glenn Morris2014-01-22 21:09:55 -0500331** Replace unexec with a more portable form of dumping
332See eg http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01034.html
c247c775
EZ
Eli Zaretskii2014-07-04 10:35:22 +0300333 http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00452.html
334
335One way is to provide portable undumping using mmap (per gerd design).
3cee0272 Glenn Morris2014-01-22 21:09:55 -0500336
cc48343f
RS
Richard M. Stallman2008-03-23 17:13:42 +0000337** Imenu could be extended into a file-structure browsing mechanism
338using code like that of customize-groups.
339
88edf64c Glenn Morris2010-12-10 18:39:41 -0800340** Display something in the margin on lines that have compilation errors.
cc48343f
RS
Richard M. Stallman2008-03-23 17:13:42 +0000341
342** Compilation error navigation bar, parallel to the scroll bar,
343indicating where in the buffer there are compilation errors.
344Perhaps we could arrange to display these error indications on top
345of the scroll bar itself. That depends on to what extent toolkit
346scroll bars are extensible.
347
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000348** Provide user-friendly ways to list all available font families,
fe7a3057 Juanma Barranquero2011-11-20 20:35:27 +0100349 list fonts, display a font as a sample, etc. [fx is looking at
321e4870 Richard M. Stallman2005-12-19 23:19:02 +0000350 multilingual font selection for the Unicode branch of Emacs.]
5e101746 Richard M. Stallman2002-02-01 04:36:54 +0000351
3aa7c28e
RS
Richard M. Stallman2006-07-09 02:08:14 +0000352** Provide a convenient way to select a color with the mouse.
353
09d04fb3 Richard M. Stallman2005-11-13 17:01:38 +0000354** Rewrite the face code to be simpler, clearer and faster.
5e101746 Richard M. Stallman2002-02-01 04:36:54 +0000355
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000356** Program Enriched mode to read and save in RTF. [Is there actually a
c51b37fd Dave Love2003-10-06 16:36:56 +0000357 decent single definition of RTF? Maybe see info at
1b2105d9
EZ
Eli Zaretskii2005-12-16 12:49:13 +0000358 http://latex2rtf.sourceforge.net/.] This task seems to be addressed
359 by http://savannah.nongnu.org/projects/emacs-rtf/, which is still in
360 very early stages.
6165b6e3 Eli Zaretskii2000-10-16 06:04:04 +0000361
c247c775
EZ
Eli Zaretskii2014-07-04 10:35:22 +0300362 Another place to look is the Wikipedia article at
363 http://en.wikipedia.org/wiki/Rich_Text_Format
364
365 It currently points to the latest spec of RTF v1.9.1 at
366 http://www.microsoft.com/en-us/download/details.aspx?id=10725
367
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000368** Implement primitive and higher-level functions to allow filling
a9c1a157
RS
Richard M. Stallman2002-03-16 07:08:29 +0000369 properly with variable-pitch faces.
370
6ca1c497 Richard M. Stallman2004-10-13 01:55:57 +0000371** Implement intelligent search/replace, going beyond query-replace
cbdf1202 Chong Yidong2009-09-25 03:24:52 +0000372 (see http://groups.csail.mit.edu/uid/projects/clustering/chi04.pdf).
6ca1c497 Richard M. Stallman2004-10-13 01:55:57 +0000373
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +0000374** Implement other text formatting properties.
375*** Footnotes that can appear either in place or at the end of the page.
376*** text property that says "don't break line in middle of this".
6165b6e3
EZ
Eli Zaretskii2000-10-16 06:04:04 +0000377 Don't break the line between two characters that have the
378 same value of this property.
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000379*** Discretionary hyphens that are not visible when they are at end of line.
6165b6e3 Eli Zaretskii2000-10-16 06:04:04 +0000380
ec0cf966
RS
Richard M. Stallman2005-04-17 16:04:44 +0000381** Internationalize Emacs's messages.
382
4a7499a9
RS
Richard M. Stallman2006-08-23 10:49:26 +0000383** Set up a facility to save backtraces when errors happen during
384specified filters, specified timers, and specified hooks.
385
49322539
RS
Richard M. Stallman2005-11-27 03:24:25 +0000386** Install mmc@maruska.dyndns.org's no-flicker change.
387
07ff1e4b
RS
Richard M. Stallman2005-06-18 14:00:46 +0000388** Add a "current vertical pixel level" value that goes with point,
389 so that motion commands can also move through tall images.
390 This value would be to point as window-vscroll is to window-start.
391
ec0cf966
RS
Richard M. Stallman2005-04-17 16:04:44 +0000392** Address internationalization of symbols names essentially
393 as documentation, e.g. in command names and Custom.
a9c1a157 Richard M. Stallman2002-03-16 07:08:29 +0000394
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000395** Make the Lucid menu widget display multilingual text. [This
bf6394a6
DL
Dave Love2003-02-04 18:36:25 +0000396 probably needs to be done from actual Emacs buffers, either directly
397 in the menu or by rendering in an unmapped window and copying the
f677a3a3
SM
Stefan Monnier2005-03-18 21:07:27 +0000398 pixels. The current code assumes a specific locale; that isn't good
399 enough even if X can render the arbitrary text] [The gtk
7bea57c9
DL
Dave Love2003-06-23 18:36:25 +0000400 port now displays multilingual text in menus, but only insofar as
401 Emacs can encode it as utf-8 and gtk can display the result.]
f677a3a3
SM
Stefan Monnier2005-03-18 21:07:27 +0000402 Maybe making Lucid menus work like Gtk's (i.e. just force utf-8) is good
403 enough now that Emacs can encode most chars into utf-8.
a9c1a157 Richard M. Stallman2002-03-16 07:08:29 +0000404
6d4cb47e
GM
Glenn Morris2013-02-16 12:24:50 -0800405** The GNUstep port needs some serious attention, ideally from someone
406familiar with GNUstep and Objective C.
407
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +0000408* Other features we would like:
409
1e217552
GM
Glenn Morris2014-05-15 23:06:55 -0700410** A more modern printing interface. One that pops up a dialog that lets
411you choose printer, page style, etc.
412Integration with the Gtk print dialog is apparently difficult. See eg:
413http://lists.gnu.org/archive/html/emacs-devel/2009-03/msg00501.html
414http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00034.html
415
c3bb6fdb
SM
Stefan Monnier2007-10-20 02:04:43 +0000416** Allow frames(terminals) created by emacsclient to inherit their environment
417from the emacsclient process.
c247c775 Eli Zaretskii2014-07-04 10:35:22 +0300418
39eadb4a
RS
Richard M. Stallman2006-02-02 04:41:26 +0000419** Give Tar mode all the features of Archive mode.
420
9b8453da
RS
Richard M. Stallman2005-07-11 19:23:04 +0000421** Create a category of errors called `process-error'
422 for some or all errors associated with using subprocesses.
423
51f74c37
RS
Richard M. Stallman2005-07-11 19:28:21 +0000424** Maybe reinterpret `parse-error' as a category of errors
425 and put some other errors under it.
426
1a500a73
RS
Richard M. Stallman2005-11-27 01:40:27 +0000427** Make byte-compile warn when a doc string is too wide.
428
9f4ba075
CY
Chong Yidong2007-04-06 15:11:04 +0000429** Make byte-optimization warnings issue accurate line numbers.
430
8c9676fb
DK
David Kastrup2006-07-08 19:36:24 +0000431** Record the sxhash of the default value for customized variables
432 and notify the user (maybe by adding a menu item or toolbar button,
433 as the detection can occur during autoload time) when the default
434 changes (meaning that new versions of the Lisp source with a changed
435 default value got installed) and offer ediff on the respective
436 customization buffers.
437
e0402468 Richard M. Stallman2005-03-11 23:51:27 +0000438** Emacs Lisp mode could put an overlay on the defun for every
8c9676fb
DK
David Kastrup2006-07-08 19:36:24 +0000439 function that has advice. The overlay could have `after-text' like
440 " [Function has advice]". It might look like (defun foo [Function
441 has advice] (x y) The overlay could also be a button that you could
442 use to view the advice.
e0402468 Richard M. Stallman2005-03-11 23:51:27 +0000443
17e55b2a
RS
Richard M. Stallman2007-01-19 22:23:05 +0000444** Add a function to get the insertion-type of the markers in an overlay.
445
9c9c88db
SM
Stefan Monnier2004-08-19 22:29:36 +0000446** ange-ftp
447*** understand sftp
88edf64c Glenn Morris2010-12-10 18:39:41 -0800448 This is hard to make work because sftp doesn't print status messages.
1b2105d9 Eli Zaretskii2005-12-16 12:49:13 +0000449
9c9c88db
SM
Stefan Monnier2004-08-19 22:29:36 +0000450*** Use MLS for ange-ftp-insert-directory if a list of files is specified.
451
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +0000452** Ability to map a key, including all modified-combinations.
453 E.g map mouse-4 to wheel-up as well as M-mouse-4 -> M-wheel-up
454 M-C-mouse-4 -> M-C-wheel-up, H-S-C-M-s-double-mouse-4 ->
455 H-S-C-M-s-double-wheel-up, ...
a9c1a157 Richard M. Stallman2002-03-16 07:08:29 +0000456
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +0000457** Beefed-up syntax-tables.
458*** recognize multi-character syntactic entities like `begin' and `end'.
7877f373 Juanma Barranquero2011-11-16 18:47:25 +0100459*** nested string-delimiters (for PostScript's (foo(bar)baz) strings).
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +0000460*** support for infix operators (with precedence).
461*** support for the $ (paired delimiter) in parse-partial-sexp.
462*** support for hook-chars whose effect on the parsing-state is specified
463 by elisp code. Thus a char could both close a string and open a comment
464 at the same time and do it in a context-sensitive way.
465*** ability to add mode-specific data to the partial-parse-state.
466
2d1ef312
RS
Richard M. Stallman2004-11-01 07:48:44 +0000467** Add a way to convert a keyboard macro to equivalent Lisp code.
468
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000469** Have a command suggestion help system that recognizes patterns
a9c1a157
RS
Richard M. Stallman2002-03-16 07:08:29 +0000470 of commands which could be replaced with a simpler common command.
471 It should not make more than one suggestion per 10 minutes.
6165b6e3 Eli Zaretskii2000-10-16 06:04:04 +0000472
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000473** Add a way to define input methods by computing them (when first used)
30a2aafd
RS
Richard M. Stallman2002-06-21 10:29:11 +0000474 from other input methods. Then redefine C-x 8 to use a
475 user-selected input method, with the default being the union of
476 latin-1-prefix and latin-1-postfix.
477
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000478** Implement a clean way to use different major modes for
06382b71
RS
Richard M. Stallman2004-07-17 11:57:13 +0000479 different parts of a buffer. This could be useful in editing
480 Bison input files, for instance, or other kinds of text
1b2105d9
EZ
Eli Zaretskii2005-12-16 12:49:13 +0000481 where one language is embedded in another language. See
482 http://www.loveshack.ukfsn.org/emacs/multi-mode.el and also
8b5e9361 Glenn Morris2008-09-06 02:26:13 +0000483 mmm-mode, as reference for approaches taken by others.
a933dad1 Dave Love1999-10-03 12:39:42 +0000484
b76781cd
RS
Richard M. Stallman2005-10-25 20:13:44 +0000485** Arrange a way for an input method to return the first character
486 immediately, then replace it later. So that C-s a with
487 input method latin-1-postfix would immediately search for an a.
a933dad1 Dave Love1999-10-03 12:39:42 +0000488
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000489** Give start-process the ability to direct standard-error
a933dad1
DL
Dave Love1999-10-03 12:39:42 +0000490 output to a different filter.
491
88edf64c Glenn Morris2010-12-10 18:39:41 -0800492** Give desktop.el a feature to switch between different named desktops.
8ba148c7 Richard M. Stallman2002-04-28 03:29:39 +0000493
10bb671b
RS
Richard M. Stallman2005-07-09 16:16:54 +0000494** Add a cpio mode, more or less like tar mode.
495
06382b71
RS
Richard M. Stallman2004-07-17 11:57:13 +0000496** Save undo information in special temporary files, and reload it
497 when needed for undoing. This could extend undo capacity.
8e6abb85
RT
Reuben Thomas2014-05-28 13:54:58 +0100498 undo-tree, in ELPA, already does this; its saving code could be
499 integrated without requiring the use of undo-tree.
a933dad1 Dave Love1999-10-03 12:39:42 +0000500
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000501** Change the Windows NT menu code
a933dad1
DL
Dave Love1999-10-03 12:39:42 +0000502 so that it handles the deep_p argument and avoids
503 regenerating the whole menu bar menu tree except
504 when the user tries to use the menubar.
505
506 This requires the RIT to forward the WM_INITMENU message to
507 the main thread, and not return from that message until the main
0245b3ef Pavel Janík2002-06-12 20:52:40 +0000508 thread has processed the MENU_BAR_ACTIVATE_EVENT and regenerated
a933dad1 Dave Love1999-10-03 12:39:42 +0000509 the whole menu bar. In the mean time, it should process other messages.
d054101f Gerd Moellmann2000-03-02 09:49:52 +0000510
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000511** Get some major packages installed: W3 (development version needs
605d1fd9 Stefan Monnier2010-05-24 20:57:43 -0400512 significant work), PSGML, _possibly_ ECB.
590394eb
GM
Glenn Morris2007-10-06 01:52:18 +0000513 http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg01493.html
514 Check the assignments file for other packages which might go in and
515 have been missed.
516
261b01c6
RS
Richard M. Stallman2004-11-25 03:22:56 +0000517** Make compiler warnings about functions that might be undefined at run time
518 smarter, so that they know which files are required by the file being
519 compiled and don't warn about functions defined in them.
520
479a2815 Glenn Morris2012-05-01 15:31:18 -0400521** Split out parts of lisp.h.
eaf67bae Dave Love2000-10-30 17:23:45 +0000522
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000523** Update the FAQ.
eaf67bae Dave Love2000-10-30 17:23:45 +0000524
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000525** Allow auto-compression-mode to use zlib calls if zlib is available.
b04f7626 Dave Love2000-11-06 15:22:52 +0000526 [It's required for PNG, so may be linked anyhow.]
1265b539 Dave Love2000-11-14 10:29:20 +0000527
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000528** Improve the GC (generational, incremental). (We may be able to use
88edf64c Glenn Morris2010-12-10 18:39:41 -0800529 the Boehm collector.) [See the Boehm-GC branch in CVS for work on this.]
19cc91fb Gerd Moellmann2000-11-24 21:07:19 +0000530
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000531** Check what hooks would help Emacspeak -- see the defadvising in W3.
e2849090 Dave Love2000-12-07 12:17:57 +0000532
a5bd14d3
RS
Richard M. Stallman2006-06-19 22:00:00 +0000533** Add definitions for symbol properties, for documentation purposes.
534
eda0450a
MR
Martin Rudalics2014-09-03 18:13:17 +0200535** Temporarily remove scroll bars when they are not needed, typically
536 when a buffer can be fully displayed in its window.
00a18b59 Dave Love2001-01-09 11:22:36 +0000537
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000538** Provide an optional feature which computes a scroll bar slider's
e4ded23c Gerd Moellmann2001-01-15 20:17:27 +0000539 size and its position from lines instead of characters.
c0460c17 Dave Love2001-02-14 20:21:50 +0000540
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000541** Allow unknown image types to be rendered via an external program
590394eb Glenn Morris2007-10-06 01:52:18 +0000542 converting them to, say, PBM (in the same way as PostScript?). [does
6511485f
GM
Glenn Morris2013-02-08 20:57:36 -0500543 doc-view.el do this, or could it be extended to do this?
544 Does ImageMagick obsolete this idea?]
d1c3f6b6 Richard M. Stallman2002-10-29 18:21:10 +0000545
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000546** Allow displaying an X window from an external program in a buffer,
d1c3f6b6
RS
Richard M. Stallman2002-10-29 18:21:10 +0000547 e.g. to render graphics from Java applets. [gerd and/or wmperry
548 thought this was feasible.]
549
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000550** Allow images (not just text) in the margin to be mouse-sensitive.
d1c3f6b6
RS
Richard M. Stallman2002-10-29 18:21:10 +0000551 (Requires recursing through display properties). Provide some way
552 to simulate mouse-clicks on marginal text without a mouse.
553
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000554** Extend ps-print to deal with multiple font sizes, images, and extra
d1c3f6b6
RS
Richard M. Stallman2002-10-29 18:21:10 +0000555 encodings.
556
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000557** Use the XIE X extension, if available, for image display.
e641b454 Gerd Moellmann2001-10-13 20:45:55 +0000558
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000559** Make monochrome images display using the foreground and background
51fe665a
RS
Richard M. Stallman2003-04-14 10:16:05 +0000560 colors of the applicable faces.
561
ec68482b
RS
Richard M. Stallman2006-07-05 00:47:05 +0000562** Make `format-time-string' preserve text properties like `format'.
563
fda12b27
RS
Richard M. Stallman2005-11-07 01:28:15 +0000564** Optionally make the cursor a little thinner at the end of a line
565 or the end of the buffer.
566
e04d62b9 Glenn Morris2014-02-06 19:19:39 -0800567** Port the conservative stack marking code of Emacs's garbage collector
1b2105d9
EZ
Eli Zaretskii2005-12-16 12:49:13 +0000568 to more systems, so that we can completely get rid of GCPROs. Note
569 that Boehm garbage collector provides this.
5e101746 Richard M. Stallman2002-02-01 04:36:54 +0000570
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000571** Reorder defcustom's in each package so that the more important
5005a9c0
EZ
Eli Zaretskii2002-05-07 05:50:39 +0000572 options come first in the Customize buffers. This could be done by
573 either rearranging the file (since options are shown in the order
88edf64c Glenn Morris2010-12-10 18:39:41 -0800574 they appear in the *.el files), or by adding a few :set-after attributes.
5005a9c0 Eli Zaretskii2002-05-07 05:50:39 +0000575
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000576** Maybe document the features of libraries missing from the manual (or
5e101746
RS
Richard M. Stallman2002-02-01 04:36:54 +0000577 ancillary manuals, including the Lisp manual in some cases).
578 This is not worth doing for all of these packages and we need not
579 aim for completeness, but some may be worth documenting.
580
581 Here's a list which is probably not complete/correct: align, allout,
4899e078 Xue Fuqiao2013-11-23 22:19:32 +0800582 artist, ansi-color, array, calculator, cdl, cmuscheme,
a594a116 Xue Fuqiao2013-11-23 22:32:56 +0800583 completion, delim-col, dirtrack, double, echistory, elide-head,
5e101746 Richard M. Stallman2002-02-01 04:36:54 +0000584 easymenu, expand, flow-ctrl, format [format-alist],
903a72b3
GM
Glenn Morris2012-06-05 14:47:12 -0400585 generic/generic-x [various modes], kermit, log-edit,
586 makesum, midnight [other than in Kill Buffer node],
5e101746
RS
Richard M. Stallman2002-02-01 04:36:54 +0000587 mouse-copy [?], mouse-drag, mouse-sel, net-utils, rcompile,
588 snmp-mode [?], soundex [should be interactive?], strokes [start from
589 the web page], talk, thingatpt [interactive functions?], type-break,
903a72b3 Glenn Morris2012-06-05 14:47:12 -0400590 vcursor, xscheme, zone-mode [?], mlconvert [?], iso-cvt,
e04d62b9
GM
Glenn Morris2014-02-06 19:19:39 -0800591 feedmail [?], uce, gametree, page-ext,
592 refbib, refer, scribe, texinfo, underline,
903a72b3 Glenn Morris2012-06-05 14:47:12 -0400593 cmacexp, hideif, mantemp [obsolete?], pcomplete, xml,
5e101746
RS
Richard M. Stallman2002-02-01 04:36:54 +0000594 cvs-status (should be described in PCL-CVS manual); other progmodes,
595 probably in separate manual.
758830ba Juanma Barranquero2002-11-06 09:25:58 +0000596
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000597** Convert the XPM bitmaps to PPM, replace the PBMs with them and scrap
6772c8e1
GM
Glenn Morris2008-06-27 02:41:14 +0000598 the XPMs so that the color versions work generally. (Requires care
599 with the color used for the transparent regions.)
bf6394a6 Dave Love2003-02-04 18:36:25 +0000600
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000601** Convenient access to the `values' variable. It would be nice to have an
758830ba
JB
Juanma Barranquero2002-11-06 09:25:58 +0000602 interface that would show you the printed reps of the elements of the
603 list in a menu, let you select one of the values, and put it into some
604 other variable, without changing the value of `values'.
bf6394a6 Dave Love2003-02-04 18:36:25 +0000605
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000606** (Controlled by a flag) make open and close syntax match exactly,
c51b37fd
DL
Dave Love2003-10-06 16:36:56 +0000607 i.e. `(' doesn't match `]'.
608
ba1c68de Stefan Monnier2004-04-22 22:58:45 +0000609** Specify parameter ID-FORMAT in all calls to `file-attributes' and
9ac8c83b
LH
Lars Hansen2003-11-21 18:23:27 +0000610 `directory-files-and-attributes' where attributes UID or GID are used.
611 Whenever possible, use value 'string.
612 When done, change meaning of default value from 'integer to 'string.
613 If value 'integer is used nowhere, remove the parameter ID-FORMAT from
614 the definition of `file-attributes' and `directory-files-and-attributes'
615 and from the calls.
616
cf4c9271
KH
Kenichi Handa2004-07-14 00:03:11 +0000617** Make language-info-alist customizable. Currently a user can customize
618 only the variable `current-language-environment'.
619
620** Improve language environment handling so that Emacs can fit
621 better to a users locale. Currently Emacs uses utf-8 language
622 environment for all utf-8 locales, thus a user in ja_JP.UTF-8 locale
623 are also put in utf-8 lang. env. In such a case, it is
624 better to use Japanese lang. env. but prefer utf-8 coding system.
1f724d55 Kenichi Handa2004-07-05 01:58:59 +0000625
321e4870
RS
Richard M. Stallman2005-12-19 23:19:02 +0000626** Enhance locale handling: handle language, territory and charset
627 orthogonally and de-emphasize language environments. Use the locale
628 to set up more things, such as fontsets, the default Ispell
629 dictionary, diary format, calendar holidays and display, quoting
630 characters and phrase boundaries, sentence endings, collation for
631 sorting (at least for unicodes), HTTP Accept-language, patterns for
632 directory listings and compilation messages, yes-or-no replies,
633 common menu items when the toolkit supports it ... `locale-info'
634 needs extending for LC_COLLATE &c. [fx started on this.]
635
1f724d55
KH
Kenichi Handa2004-07-05 01:58:59 +0000636** Eliminate the current restriction on header printing by ps-print.
637 Currently, a header can contain only single 1-byte charset in
638 addition to ASCII.
639
640** In ps-print, provide an user friendly interface to specify fonts.
641
1f724d55
KH
Kenichi Handa2004-07-05 01:58:59 +0000642** Enhance word boundary detection for such a script that doesn't use
643 space at word boundary (e.g. Thai).
644
cf4c9271
KH
Kenichi Handa2004-07-14 00:03:11 +0000645** Implement interface programs with major Japanese conversion server
646 in lib-src so that they can be used from the input method
647 "japanese". Currently, most Japanese users are using external
648 packages (e.g. tamago, anthy) or an input method via XIM.
1f724d55 Kenichi Handa2004-07-05 01:58:59 +0000649
a53e64cc Stefan Monnier2006-02-02 15:12:24 +0000650** Let LEIM handle the Mode_switch key like XIM does (i.e. a toggle like C-\
8b5e9361 Glenn Morris2008-09-06 02:26:13 +0000651 but which can also be used as a modifier).
a53e64cc Stefan Monnier2006-02-02 15:12:24 +0000652
d59e3c42 Nick Roberts2005-12-23 02:01:02 +0000653** Improve Help buffers: Change the face of previously visited links (like
8b5e9361
GM
Glenn Morris2008-09-06 02:26:13 +0000654 Info, but also with regard to namespace), and give the value of
655 lisp expressions, e.g auto-mode-alist, the right face.
d59e3c42 Nick Roberts2005-12-23 02:01:02 +0000656
5a473319
GM
Glenn Morris2006-03-10 08:06:45 +0000657** Possibly make `list-holidays' eval items in the calendar-holidays variable.
658 See thread
659 <http://lists.gnu.org/archive/html/emacs-devel/2006-02/msg01034.html>.
660 [rgm@gnu.org will look at this after 22.1]
661
9e21382c
GM
Glenn Morris2006-11-10 09:14:46 +0000662** Possibly make cal-dst use the system timezone database directly.
663 See thread
664 <http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-11/msg00060.html>
665
590394eb
GM
Glenn Morris2007-10-06 01:52:18 +0000666** Possibly add a "close" button to the modeline.
667 The idea is to add an "X" of some kind, that when clicked deletes
668 the window associated with that modeline.
669 http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg02416.html
670
ae2cc2d8
GM
Glenn Morris2010-09-08 19:30:31 -0700671* Things to be done for specific packages or features
672
8521e69b
GM
Glenn Morris2010-10-11 21:01:55 -0700673** NeXTstep port
674
675*** Bugs
676
9c3dcdaa
JD
Jan Djärv2012-12-23 15:46:37 +0100677**** The event loop does not redraw.
678 A problem is that redraw don't happen during resize,
331ff3b9 Jan Djärv2012-07-31 21:23:33 +0200679 because we can't break out from the NSapp loop during resize.
9c3dcdaa
JD
Jan Djärv2012-12-23 15:46:37 +0100680 There was a special trick to detect mouse press in the lower right
681 corner and track mouse movements, but this did not work well, and was
331ff3b9 Jan Djärv2012-07-31 21:23:33 +0200682 not scalable to the new Lion "resize on every window edge" behavior.
6511485f Glenn Morris2013-02-08 20:57:36 -0500683 [As of trunk r109635, 2012-08-15, the event loop no longer polls.]
331ff3b9 Jan Djärv2012-07-31 21:23:33 +0200684
8521e69b Glenn Morris2010-10-11 21:01:55 -0700685**** (mouse-avoidance-mode 'banish) then minimize Emacs, will pop window back
9f7c9816 Juri Linkov2014-06-06 02:31:46 +0300686up on top of all others (probably fixed in bug#17439)
8521e69b
GM
Glenn Morris2010-10-11 21:01:55 -0700687
688**** free_frame_resources, face colors
689
690**** Numeric keysetting bug.
691
692*** Mac-related
693
694**** Open file:/// URLs.
695
696**** Put frame autopositioning into C code somewhere -- if loc = same, offset.
697
698**** Automap ctrl-mouse-1 to mouse-3.
699
700**** Deal with Finder aliases somehow.
701
702**** Ctrl-F2 won't pull up menus.
703
704*** Other / Low Priority:
705
fe7a3057 Juanma Barranquero2011-11-20 20:35:27 +0100706**** Better recognition of Unicode scripts / Greek / composition.
8521e69b
GM
Glenn Morris2010-10-11 21:01:55 -0700707
708**** Undo for color-drag face customization.
709
cc7245e4
EZ
Eli Zaretskii2011-06-18 16:28:53 +0300710** Bidirectional editing
711
9bb794c7
EZ
Eli Zaretskii2012-04-07 17:57:25 +0300712*** Support reordering structured text
713Two important use cases: (1) comments and strings in program sources,
714and (2) text with markup, like HTML or XML.
715
716One idea is to invent a special text property that would instruct the
717display engine to reorder only the parts of buffer text covered by
718that property. The display engine will then push its state onto the
719iterator stack, restrict the bidi iterator to accessing only the
720portion of buffer text covered by the property, reorder the text, then
721pop its state from stack and continue as usual. This will require
722minor changes in the bidi_it structure.
723
724This design requires Lisp-level code to put the text properties on the
725relevant parts of the buffer text. That could be done using JIT
726fontifications, or as a preliminary processing when the file is
727visited. With HTML/XML, the code that puts text properties needs to
728pay attention to the bidi directives embedded in the HTML/XML stream.
729
cc7245e4
EZ
Eli Zaretskii2011-06-18 16:28:53 +0300730*** Allow the user to control the direction of the UI
731
732**** Introduce user option to control direction of mode line.
9bb794c7
EZ
Eli Zaretskii2012-04-07 17:57:25 +0300733One problem is the header line, which is produced by the same routines
734as the mode line. While it makes sense to have the mode-line
cc7245e4
EZ
Eli Zaretskii2011-06-18 16:28:53 +0300735direction controlled by a single global variable, header lines are
736buffer-specific, so they need a separate treatment in this regard.
737
738**** User options to control direction of menu bar and tool bar.
739For the tool bar, it's relatively easy: set it.paragraph_embedding
740in redisplay_tool_bar according to the user variable, and make
741f->desired_tool_bar_string multibyte with STRING_SET_MULTIBYTE. Some
742minor changes will be needed to set the right_box_line_p and
743left_box_line_p flags correctly for the R2L tool bar.
744
745However, it makes no sense to display the tool bar right to left if
746the menu bar cannot be displayed in the same direction.
747
748R2L menu bar is tricky for the same reasons as the mode line. In
749addition, toolkit builds create their menu bars in toolkit-specific
750parts of code, bypassing xdisp.c, so those parts need to be enhanced
751with toolkit-specific code to display the menu bar right to left.
752
ae2cc2d8
GM
Glenn Morris2010-09-08 19:30:31 -0700753** ImageMagick support
754
755*** image-type-header-regexps priorities the jpeg loader over the
756ImageMagick one. This is not wrong, but how should a user go about
c80e3b4a Paul Eggert2011-12-04 00:02:42 -0800757preferring the ImageMagick loader? The user might like zooming etc in jpegs.
ae2cc2d8
GM
Glenn Morris2010-09-08 19:30:31 -0700758
759Try (setq image-type-header-regexps nil) for a quick hack to prefer
760ImageMagick over the jpg loader.
761
c247c775 Eli Zaretskii2014-07-04 10:35:22 +0300762*** For some reason it's unbearably slow to look at a page in a large
ae2cc2d8
GM
Glenn Morris2010-09-08 19:30:31 -0700763image bundle using the :index feature. The ImageMagick "display"
764command is also a bit slow, but nowhere near as slow as the Emacs
765code. It seems ImageMagick tries to unpack every page when loading the
766bundle. This feature is not the primary usecase in Emacs though.
767
768ImageMagick 6.6.2-9 introduced a bugfix for single page djvu load. It
769is now much faster to use the :index feature, but still not very fast.
770
771*** Try to cache the num pages calculation. It can take a while to
772calculate the number of pages, and if you need to do it for each page
773view, page-flipping becomes uselessly slow.
774
775*** Integrate with image-dired.
776
cc7245e4
EZ
Eli Zaretskii2011-06-18 16:28:53 +0300777*** Integrate with docview.
778
ae2cc2d8
GM
Glenn Morris2010-09-08 19:30:31 -0700779*** Integrate with image-mode.
780Some work has been done, e.g. M-x image-transform-fit-to-height will
781fit the image to the height of the Emacs window.
782
783*** Look for optimizations for handling images with low depth.
784Currently the code seems to default to 24 bit RGB which is costly for
785images with lower bit depth.
786
787*** Decide what to do with some uncommitted imagemagick support
788functions for image size etc.
789
3d91f789
GM
Glenn Morris2010-09-08 19:34:25 -0700790** nxml mode
791
792*** High priority
793
794**** Command to insert an element template, including all required
795attributes and child elements. When there's a choice of elements
796possible, we could insert a comment, and put an overlay on that
797comment that makes it behave like a button with a pop-up menu to
798select the appropriate choice.
799
800**** Command to tag a region. With a schema should complete using legal
801tags, but should work without a schema as well.
802
803**** Provide a way to conveniently rename an element. With a schema should
804complete using legal tags, but should work without a schema as well.
805
806*** Outlining
807
808**** Implement C-c C-o C-q.
809
810**** Install pre/post command hook for moving out of invisible section.
811
812**** Put a modify hook on invisible sections that expands them.
813
814**** Integrate dumb folding somehow.
815
816**** An element should be able to be its own heading.
817
818**** Optimize to avoid complete buffer scan on each command.
819
820**** Make it work with HTML-style headings (i.e. level indicated by
821name of heading element rather than depth of section nesting).
822
823**** Recognize root element as a section provided it has a title, even
824if it doesn't match section-element-name-regex.
825
826**** Support for incremental search automatically making hidden text visible.
827
828**** Allow title to be an attribute.
829
830**** Command that says to recognize the tag at point as a section/heading.
831
832**** Explore better ways to determine when an element is a section
833or a heading.
834
835**** rng-next-error needs to either ignore invisible portion or reveal it
836(maybe use isearch oriented text properties).
837
838**** Errors within hidden section should be highlighted by underlining the
839ellipsis.
840
841**** Make indirect buffers work.
842
843**** How should nxml-refresh outline recover from non well-formed tags?
844
845**** Hide tags in title elements?
846
847**** Use overlays instead of text properties for holding outline state?
848Necessary for indirect buffers to work?
849
850**** Allow an outline to go in the speedbar.
851
852**** Split up outlining manual section into subsections.
853
854**** More detail in the manual about each outlining command.
855
856**** More menu entries for hiding/showing?
857
858**** Indication of many lines have been hidden?
859
860*** Locating schemas
861
862**** Should rng-validate-mode give the user an opportunity to specify a
863schema if there is currently none? Or should it at least give a hint
864to the user how to specify a non-vacuous schema?
865
866**** Support for adding new schemas to schema-locating files.
867Add documentElement and namespace elements.
868
869**** C-c C-w should be able to report current type id.
870
871**** Implement doctypePublicId.
872
873**** Implement typeIdBase.
874
875**** Implement typeIdProcessingInstruction.
876
877**** Support xml:base.
878
879**** Implement group.
880
881**** Find preferred prefix from schema-locating files. Get rid of
882rng-preferred-prefix-alist.
883
884**** Inserting document element with vacuous schema should complete using
885document elements declared in schema locating files, and set schema
886appropriately.
887
888**** Add a ruleType attribute to the <include> element?
889
890**** Allow processing instruction in prolog to contain the compact syntax
891schema directly.
892
893**** Use RDDL to locate a schema based on the namespace URI.
894
895**** Should not prompt to add redundant association to schema locating file.
896
897**** Command to reload current schema.
898
899*** Schema-sensitive features
900
901**** Should filter dynamic markup possibilities using schema validity, by
902adding hook to nxml-mode.
903
904**** Dynamic markup word should (at least optionally) be able to look in
905other buffers that are using nxml-mode.
906
907**** Should clicking on Invalid move to next error if already on an error?
908
909**** Take advantage of a:documentation. Needs change to schema format.
910
911**** Provide feasible validation (as in Jing) toggle.
912
913**** Save the validation state as a property on the error overlay to enable
914more detailed diagnosis.
915
916**** Provide an Error Summary buffer showing all the validation errors.
917
e4769531 Paul Eggert2011-11-26 20:43:11 -0800918**** Pop-up menu. What is useful? Tag a region (should be grayed out if
3d91f789
GM
Glenn Morris2010-09-08 19:34:25 -0700919the region is not balanced). Suggestions based on error messages.
920
921**** Have configurable list of namespace URIs so that we can provide
922namespace URI completion on extension elements or with schema-less documents.
923
924**** Allow validation to handle XInclude.
925
926**** ID/IDREF support.
927
928*** Completion
929
930**** Make it work with icomplete. Only use a function to complete when
931some of the possible names have undeclared namespaces.
932
933**** How should C-return in mixed text work?
934
935**** When there's a vacuous schema, C-return after < will insert the end-tag.
936Is this a bug or a feature?
937
938**** After completing start-tag, ensure we don't get unhelpful message
939from validation
940
941**** Syntax table for completion.
942
943**** Should complete start-tag name with a space if namespace attributes
944are required.
945
946**** When completing start-tag name with no prefix and it doesn't match
947should try to infer namespace from local name.
948
949**** Should completion pay attention to characters after point? If so, how?
950
951**** When completing start-tag name, add required atts if only one required
952attribute.
953
954**** When completing attribute name, add attribute value if only one value
955is possible.
956
957**** After attribute-value completion, insert space after close delimiter
958if more attributes are required.
959
960**** Complete on enumerated data values in elements.
961
962**** When in context that allows only elements, should get tag
963completion without having to type < first.
964
965**** When immediately after start-tag name, and name is valid and not
966prefix of any other name, should C-return complete on attribute names?
967
968**** When completing attributes, more consistent to ignore all attributes
969after point.
970
971**** Inserting attribute value completions needs to be sensitive to what
972delimiter is used so that it quotes the correct character.
973
974**** Complete on encoding-names in XML decl.
975
976**** Complete namespace declarations by searching for all namespaces
977mentioned in the schema.
978
979*** Well-formed XML support
980
981**** Deal better with Mule-UCS
982
983**** Deal with UTF-8 BOM when reading.
984
985**** Complete entity names.
986
987**** Provide some support for entity names for MathML.
988
989**** Command to repeat the last tag.
990
991**** Support for changing between character references and characters.
992Need to check that context is one in which character references are
993allowed. xmltok prolog parsing will need to distinguish parameter
994literals from other kinds of literal.
995
996**** Provide a comment command to bind to M-; that works better than the
997normal one.
998
999**** Make indenting in a multi-line comment work.
1000
1001**** Structure view. Separate buffer displaying element tree.
1002Be able to navigate from structure view to document and vice-versa.
1003
1004**** Flash matching >.
1005
1006**** Smart selection command that selects increasingly large syntactically
1007coherent chunks of XML. If point is in an attribute value, first
1008select complete value; then if command is repeated, select value plus
1009delimiters, then select attribute name as well, then complete
1010start-tag, then complete element, then enclosing element, etc.
1011
1012**** ispell integration.
1013
1014**** Block-level items in mixed content should be indented, e.g:
1015 <para>This is list:
1016 <ul>
1017 <li>item</li>
1018
1019**** Provide option to indent like this:
1020 <para>This is a paragraph
1021 occupying multiple lines.</para>
1022
1023**** Option to add make a / that closes a start-tag electrically insert a
1024space for the XHTML guys.
1025
1026**** C-M-q should work.
1027
1028*** Datatypes
1029
1030**** Figure out workaround for CJK characters with regexps.
1031
1032**** Does category C contain Cn?
1033
1034**** Do ENTITY datatype properly.
1035
1036*** XML Parsing Library
1037
1038**** Parameter entity parsing option, nil (never), t (always),
1039unless-standalone (unless standalone="yes" in XML declaration).
1040
1041**** When a file is currently being edited, there should be an option to
1042use its buffer instead of the on-disk copy.
1043
1044*** Handling all XML features
1045
1046**** Provide better support for editing external general parsed entities.
1047Perhaps provide a way to force ignoring undefined entities; maybe turn
1048this on automatically with <?xml encoding=""?> (with no version
1049pseudo-att).
1050
1051**** Handle internal general entity declarations containing elements.
1052
1053**** Handle external general entity declarations.
1054
1055**** Handle default attribute declarations in internal subset.
1056
1057**** Handle parameter entities (including DTD).
1058
1059*** RELAX NG
1060
1061**** Do complete schema checking, at least optionally.
1062
1063**** Detect include/external loops during schema parse.
1064
1065**** Coding system detection for schemas. Should use utf-8/utf-16 per the
1066spec. But also need to allow encodings other than UTF-8/16 to support
1067CJK charsets that Emacs cannot represent in Unicode.
1068
1069*** Catching XML errors
1070
1071**** Check public identifiers.
1072
1073**** Check default attribute values.
1074
1075*** Performance
1076
1077**** Explore whether overlay-recenter can cure overlays performance problems.
1078
1079**** Cache schemas. Need to have list of files and mtimes.
1080
1081**** Make it possible to reduce rng-validate-chunk-size significantly,
1082perhaps to 500 bytes, without bad performance impact: don't do
1083redisplay on every chunk; pass continue functions on other uses of
1084rng-do-some-validation.
1085
1086**** Cache after first tag.
1087
1088**** Introduce a new name class that is a choice between names (so that
1089we can use member)
1090
1091**** intern-choice should simplify after patterns with same 1st/2nd args
1092
1093**** Large numbers of overlays slow things down dramatically. Represent
1094errors using text properties. This implies we cannot incrementally
1095keep track of the number of errors, in order to determine validity.
1096Instead, when validation completes, scan for any characters with an
1097error text property; this seems to be fast enough even with large
1098buffers. Problem with error at end of buffer, where there's no
1099character; need special variable for this. Need to merge face from
1100font-lock with the error face: use :inherit attribute with list of two
1101faces. How do we avoid making rng-valid depend on nxml-mode?
1102
1103*** Error recovery
1104
1105**** Don't stop at newline in looking for close of start-tag.
1106
1107**** Use indentation to guide recovery from mismatched end-tags
1108
1109**** Don't keep parsing when currently not well-formed but previously
1110well-formed
1111
1112**** Try to recover from a bad start-tag by popping an open element if
1113there was a mismatched end-tag unaccounted for.
1114
1115**** Try to recover from a bad start-tag open on the hypothesis that there
1116was an error in the namespace URI.
1117
1118**** Better recovery from ill-formed XML declarations.
1119
8350f087 Paul Eggert2011-11-14 12:23:26 -08001120*** Usability improvements
3d91f789
GM
Glenn Morris2010-09-08 19:34:25 -07001121
1122**** Should print a "Parsing..." message during long movements.
1123
1124**** Provide better position for reference to undefined pattern error.
1125
1126**** Put Well-formed in the mode-line when validating against any-content.
1127
1128**** Trim marking of illegal data for leading and trailing whitespace.
1129
1130**** Show Invalid status as soon as we are sure it's invalid, rather than
1131waiting for everything to be completely up to date.
1132
1133**** When narrowed, Valid or Invalid status should probably consider only
1134validity of narrowed region.
1135
1136*** Bug fixes
1137
1138**** Need to give an error for a document like: <foo/><![CDATA[ ]]>
1139
1140**** Make nxml-forward-balanced-item work better for the prolog.
1141
1142**** Make filling and indenting comments work in the prolog.
1143
1144**** Should delete RNC Input buffers.
1145
1146**** Figure out what regex use for NCName and use it consistently,
1147
1148**** Should have not-well-formed tokens in ref.
1149
1150**** Require version in XML declaration? Probably not because prevents
1151use for external parsed entities. At least forbid standalone without version.
1152
1153**** Reject schema that compiles to rng-not-allowed-ipattern.
1154
1155**** Move point backwards on schema parse error so that it's on the right token.
1156
1157*** Internal
1158
1159**** Use rng-quote-string consistently.
1160
1161**** Use parsing library for XML to texinfo conversion.
1162
1163**** Rename xmltok.el to nxml-token.el. Use nxml-t- prefix instead of
1164xmltok-. Change nxml-t-type to nxml-t-token-type, nxml-t-start to
1165nxml-t-token-start.
1166
1167**** Can we set fill-prefix to nil and rely on indenting?
1168
1169**** xmltok should make available replacement text of entities containing
1170elements
1171
1172**** In rng-valid, instead of using modification-hooks and
1173insert-behind-hooks on dependent overlays, use same technique as nxml-mode.
1174
1175**** Port to XEmacs. Issues include: Unicode (XEmacs seems to be based on
1176Mule-UCS); overlays/text properties vs extents; absence of
1177fontification-functions hook.
1178
1179*** Fontification
1180
1181**** Allow face to depend on element qname, attribute qname, attribute
1182value. Use list with pairs of (R . F), where R specifies regexps and
1183F specifies faces. How can this list be made to depend on the document type?
1184
1185*** Other
1186
1187**** Support RELAX NG XML syntax (use XML parsing library).
1188
1189**** Support W3C XML Schema (use XML parsing library).
1190
1191**** Command to infer schema from current document (like trang).
1192
1193*** Schemas
1194
1195**** XSLT schema should take advantage of RELAX NG to express cooccurrence
1196constraints on attributes (e.g. xsl:template).
1197
1198*** Documentation
1199
1200**** Move material from README to manual.
1201
1202**** Document encodings.
1203
1204*** Notes
1205
1206**** How can we allow an error to be displayed on a different token from
1207where it is detected? In particular, for a missing closing ">" we
1208will need to display it at the beginning of the following token. At the
1209moment, when we parse the following token the error overlay will get cleared.
1210
1211**** How should rng-goto-next-error deal with narrowing?
1212
1213**** Perhaps should merge errors having same start position even if they
1214have different ends.
1215
1216**** How to handle surrogates? One possibility is to be compatible with
1217utf8.e: represent as sequence of 4 chars. But utf-16 is incompatible
1218with this.
1219
1220**** Should we distinguish well-formedness errors from invalidity errors?
1221(I think not: we may want to recover from a bad start-tag by implying
1222an end-tag.)
1223
1224**** Seems to be a bug with Emacs, where a mouse movement that causes
1225help-echo text to appear counts as pending input but does not cause
1226idle timer to be restarted.
1227
1228**** Use XML to represent this file.
1229
1230**** I had a TODO which said simply "split-string". What did I mean?
1231
1232**** Investigate performance on large files all on one line.
1233
1234*** Issues for Emacs versions >= 22
1235
1236**** Take advantage of UTF-8 CJK support.
1237
1238**** Supply a next-error-function.
1239
1240**** Investigate this NEWS item "Emacs now tries to set up buffer coding
1241systems for HTML/XML files automatically."
1242
1243**** Take advantage of the pointer text property.
1244
1245**** Leverage char-displayable-p.
1246
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +00001247* Internal changes
1248
41a023e3 Glenn Morris2007-04-13 03:01:45 +00001249** Cleanup all the GC_ mark bit stuff -- there is no longer any distinction
dcbccc4d
CY
Chong Yidong2007-03-17 17:37:41 +00001250 since the mark bit is no longer stored in the Lisp_Object itself.
1251
12cdb1c1
SM
Stefan Monnier2007-05-23 17:28:25 +00001252** Refine the `predicate' arg to read-file-name.
1253 Currently, it mixes up the predicate to apply when doing completion and the
1254 one to use when terminating the selection.
1255
1d919365
SM
Stefan Monnier2006-12-27 16:31:01 +00001256** Merge ibuffer.el and buff-menu.el.
1257 More specifically do what's needed to make ibuffer.el the default,
1258 or just an extension of buff-menu.el.
1259
6ea71a44
GM
Glenn Morris2014-01-26 16:36:40 -08001260** Replace linum.el with nlinum.el
1261 http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00379.html
1262
1d919365
SM
Stefan Monnier2006-12-27 16:31:01 +00001263** Merge sendmail.el and messages.el.
1264 Probably not a complete merge, but at least arrange for messages.el to be
1265 a derived mode of sendmail.el. Or arrange for messages.el to be split
1266 into a small core and "the rest" so that we use less resources as long as
1267 we stick to the features provided in sendmail.el.
045744c6 Martin Rudalics2007-12-12 07:37:57 +00001268
ba1c68de Stefan Monnier2004-04-22 22:58:45 +00001269** Replace gmalloc.c with the modified Doug Lea code from the current
1d919365
SM
Stefan Monnier2006-12-27 16:31:01 +00001270 GNU libc so that the special mmapping of buffers can be removed --
1271 that apparently loses under Solaris, at least. [fx has mostly done
1272 this.]
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +00001273
1274** Rewrite make-docfile to be clean and maintainable.
acd97ed6
GM
Glenn Morris2012-06-28 00:05:15 -07001275 It might be better to replace it with Lisp, using the byte compiler.
1276 http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00037.html
ba1c68de
SM
Stefan Monnier2004-04-22 22:58:45 +00001277
1278** Add an inferior-comint-minor-mode to capture the common set of operations
1279 offered by major modes that offer an associated inferior
d3a403e5
SM
Stefan Monnier2004-12-07 05:01:55 +00001280 comint-derived mode. I.e. basically make cmuscheme.el/inf-lisp.el generic.
1281 For use by sml-mode, python-mode, tex-mode, scheme-mode, lisp-mode,
1282 haskell-mode, tuareg-mode, ...
ba1c68de Stefan Monnier2004-04-22 22:58:45 +00001283
f57dad5a
MB
Miles Bader2006-06-30 01:54:34 +00001284** Add "link" button class
1285 Add a standard button-class named "link", and make all other link-like
1286 button classes inherit from it. Set the default face of the "link" button
1287 class to the standard "link" face.
1288
acd97ed6
GM
Glenn Morris2012-06-28 00:05:15 -07001289* Wishlist items:
1290
1291** Maybe replace etags.c with a Lisp implementation.
1292http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00354.html
1293
1294** Maybe replace lib-src/rcs2log with a Lisp implementation.
1295It wouldn't have to be a complete replacement, just enough
1296for vc-rcs-update-changelog.
1297
2345130a
SM
Stefan Monnier2005-06-20 14:01:37 +00001298* Other known bugs:
1299
c3bb6fdb Stefan Monnier2007-10-20 02:04:43 +00001300** `make-frame' forgets unhandled parameters, at least for X11 frames.
48b8e4a0 Stefan Monnier2007-05-08 00:50:07 +00001301
2345130a
SM
Stefan Monnier2005-06-20 14:01:37 +00001302** a two-char comment-starter whose two chars are symbol constituents will
1303not be noticed if it appears within a word.
1304
5b87ad55
GM
Glenn Morris2007-02-11 01:18:25 +00001305\f
1306This file is part of GNU Emacs.
1307
ab73e885 Glenn Morris2008-05-15 07:32:14 +00001308GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 Glenn Morris2007-02-11 01:18:25 +00001309it under the terms of the GNU General Public License as published by
ab73e885
GM
Glenn Morris2008-05-15 07:32:14 +00001310the Free Software Foundation, either version 3 of the License, or
1311(at your option) any later version.
309920fa Eli Zaretskii2006-06-03 12:52:35 +00001312
5b87ad55
GM
Glenn Morris2007-02-11 01:18:25 +00001313GNU Emacs is distributed in the hope that it will be useful,
1314but WITHOUT ANY WARRANTY; without even the implied warranty of
1315MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1316GNU General Public License for more details.
309920fa Eli Zaretskii2006-06-03 12:52:35 +00001317
5b87ad55 Glenn Morris2007-02-11 01:18:25 +00001318You should have received a copy of the GNU General Public License
ab73e885 Glenn Morris2008-05-15 07:32:14 +00001319along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.