Commit graph

13 commits

Author SHA1 Message Date
Charlie Gordon
5039815fdd fix some mode probe issues
* perform generic test on extension in text_mode_probe
* allow mode force in language modes by returning 1 instead of 0 in probe
2014-02-06 00:22:17 +00:00
Charlie Gordon
a7853b3dff add support for end of line types
* support 3 types of end of line: Unix, Dos and old style Mac
* detect eol type automatically in detect_charset
* set buffer eol_type together with charset
* transparently convert eol sequence to \n upon reading buffers
  characters in eb_nextc().
* transparently convert \n to eol sequence in eb_encode_uchar()
* handle eol types in convert-file-buffer-coding-system: either preserve
  current value or force it via charset suffix -unix, -doc and -mac
* change read_charset() to accept eol_type suffix
* add eol_type and eol_char to CharsetDecodeState
* change charset methods to take CharsetDecodeState instead of charset pointers
* display eol_type in mode line if not unix
2014-02-05 00:56:48 +00:00
Charlie Gordon
fbb37ca1cb cosmetic changes in org mode
* start messages with capital letter
* factorize code for boundary error message
2014-01-29 23:24:00 +00:00
Charlie Gordon
e967914b5a improve consistency in new/delete methodology
* use qe_mallocz for all structures
* prevent spurious uses of malloc/free/realloc
* pass pointers to pointers to all deletion functions
* use consistent patterns for list deletions
* add more dependencies in Makefiles
2014-01-23 12:56:22 +00:00
Charlie Gordon
890af446cf simplify colorize_line functions: always pass NUL terminated line
* added ustrstart, ustrstr and ustristr utility functions
* simplified org_mode_colorize
2014-01-20 18:04:00 +00:00
Charlie Gordon
6830a827dc changed styles for org levels 2014-01-16 14:34:14 +00:00
Charlie Gordon
02da1bb7a1 add generic styles buffer from shell color mode
* styles_buffer hold static style info for each character in the buffer
* new buffer flags to create styles buffers with 1, 2 or 4 bytes per char
* copy static styles to the kill_ring and pasted them style enabled buffers
* preserve static styles in convert-buffer-file-coding-system
* display style bytes in bufed list
* add commands set-region-color, set-region-style, drop-styles
2014-01-15 19:44:24 +00:00
Charlie Gordon
e4011802e3 fix memory leak 2014-01-11 18:43:49 +00:00
Charlie Gordon
9e18c57f81 improve org-mode
* org_scan_chunk: no longer checks for space before chunk
* org_colorize_line: better check for heading line
* org_colorize_line: check for chunks after white space
* simplify do_org_todo
* add new functions:
  - do_org_mark_element (M-h)
  - do_org_mark_subtree (C-c @)
2014-01-11 15:38:28 +00:00
Charlie Gordon
327f2a2812 improve org mode, add new functions
* simplify org_next/prev_heading:
  - always return valid offset
  - level = 0 if not heading found
  - pointer to level can be NULL
* add new functions:
  - do_outline_next_vsible_heading      (C-c C-n)
  - do_outline_previous_vsible_heading  (C-c C-p)
  - do_outline_up_heading               (C-c C-u)
  - do_org_backward_same_level          (C-c C-b)
  - do_org_forward_same_level           (C-c C-f)
  - do_org_goto                         (C-c C-j)
  - org-insert-heading-respect-content  (C-enter)
  - org-insert-todo-heading-respect-content
* add flags in do_org_insert_heading
2014-01-10 14:00:08 +00:00
Charlie Gordon
de81442a78 improve org mode, add new functions
* improve colorizer:
  - handle blocks (with coloring for lisp src)
  - handle TeX escapes, macros
  - handle properties, wiki syntax for rich text
* simplify header line handling, and other such utility functions
* fix org-insert-heading, org-promote/demote, org-promote/demote-substree
* fix org-meta-return
* add org-move-subtree-up/down
* remove standard init_mode function
2014-01-10 01:25:14 +00:00
Charlie Gordon
9a58b44917 new character based APIs for buffers
* add eb_skip_chars
* rename eb_delete_nextc to eb_delete_uchar
* deprecate eb_line_pad
* use char based buffer API in orgmode
2014-01-08 16:26:44 +00:00
Charlie Gordon
857ec565ae org-mode: new mode for Org files by Francois Revol (orgmode.org)
* first version with very basic support.
2014-01-07 18:26:07 +00:00