Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 329 lines (211 sloc) 11.177 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
2002-07-16 00:08 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-add-rule): `is-statement' added as a required
parameter.

2002-07-16 00:07 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-level): Added a message when the
indentation is fixed to a specific column.

2002-07-13 12:06 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-add-rule): Added docstring.

2002-07-12 09:42 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-rules): Added customize option for
removing all indentation from the offset rule via the extra offset
setting.

2002-07-12 09:37 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el: Added the commentary and installation hints.

2002-07-02 09:56 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-line): (/= ...) instead of (not (eq ...)).

2002-07-02 09:52 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-line): Modified the code so that the
indent level is only calculated once.

2002-07-01 04:54 UTC Mike Romberg <romberg@fsl.noaa.gov>

* xbase.el (xbase-indent-line): Don't indent if the current line
already is indented correctly. This prevents unneeded buffer saves
if a user hits C-i as a matter of habbit.

2002-06-28 12:46 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Updated font-lock-defaults so that the
#ifdef/#ifndef "argument" is displayed in the "varable" face.

2002-06-28 10:16 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-find-statement-backward): Now only looks for
rules that claim they are statements. Ignores non-statement rules.

2002-06-28 10:15 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-level): Added support for indentation
fixed at a specific column.

2002-06-28 10:12 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-rules, xbase-rule-statement-p)
(xbase-rule-statement-p): Added support for statement and
non-statement oriented rules. Seperated if...endif and friends out
from #if...#endif and friends.

2002-06-28 10:10 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode-syntax-table): Added "#" to the "w" class.

2002-06-28 09:59 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-directive-face): Now defaults to
font-lock-builtin-face instead of the keyword face.

2002-06-27 07:45 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-add-rule): Added.

2002-06-11 15:12 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-font-lock-statements): Removed duplicate mention
of "static".

2002-05-27 11:48 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-end-of-defun): Renamed `is-defun-p' back to
`defunp' now that I've had a fix from RMS for the indentation
problem.

2002-05-24 18:07 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el: Added joint copyright.

2002-05-24 15:34 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-end-of-defun): Renamed `defunp' to `is-defun-p'
so as to work around a bug in emacs' Common Lisp indentation
engine (no, this doesn't have aanything to do with `xbase-mode',
but it stops xbase.el being badly formatted). See
<URL:http://mail.gnu.org/pipermail/bug-gnu-emacs/2002-May/012763.html>
my report to the emacs developers.

2002-05-24 10:45 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-end-of-defun): Improved the doc-string.

2002-05-24 10:39 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-find-statement-backward): Removed `then' part of
loop. Not required.
(xbase-find-some-statement-backward): As above.

2002-05-24 09:46 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-find-matching-statement): Simplified the test of
the `while'.

2002-05-24 09:41 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-font-lock-logic): Added.
(xbase-logic-face): Added.
(xbase-mode): Added logic operators to the font lock defaults.

2002-05-24 09:33 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-end-of-defun): Don't `loop' when `while' will
do.

2002-05-23 10:32 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-end-of-defun): Added.
(xbase-mode): Added `end-of-defun-function' as a local variable.
Set it to the above. This means that `end-of-defun' will work in
xbase buffers.

2002-05-23 10:16 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Added `defun-prompt-regexp' as a local
variable. Set it to (xbase-rule-regexp 'xbase-defun). This means
that `beginning-of-defun' will work in xbase buffers.

2002-05-23 10:08 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-describe-line): Added.
(xbase-mode-map): Bound the above to "C-c C-l".

2002-05-23 09:56 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-line): Fixed `point' repositioning glitch
introduced earlier.

2002-05-23 09:41 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el: Added documentation strings to various functions.

2002-05-22 18:18 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-calculate-indent-with-offset): Really fixed the
error message (I'd forgotten to pass the value of `offset' to
`error' so that the format string would have the corrent
argument).

2002-05-22 17:52 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-calculate-indent-with-offset): Fixed error
message.

2002-05-22 16:58 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-line): Modified to use
`delete-horizontal-space'.

2002-05-22 14:55 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-font-lock-statements): Added various OO oriented
statements. Added DEFAULT.

2002-05-22 14:37 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-variable-name-face): Added.
(xbase-constant-face): Added.
(xbase-mode): Reenabled font locking for #define names. Reenabled
font locking for .T., .F. and NIL. Also included SELF and SUPER.

2002-05-22 13:48 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode-syntax-table): Added support for "&&"
comments.

2002-05-22 13:37 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode-syntax-table): Changed to a `defvar' (was a
`defconst').

2002-05-22 13:36 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode-syntax-table): Set "_" to word class.
Added support for "/* .. */" and "//" comments.

2002-05-22 13:31 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode-syntax-table): Set "'" to be a string
delimiter.

2002-05-22 13:30 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-string-face): Removed.
(xbase-mode): Removed string entry from font lock rules, it's not
required.

2002-05-22 12:49 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-function-name-face): Added.
(xbase-mode): Reenabled highlighting of (defun) function names.

2002-05-22 12:47 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-*-face): Fixed invalid :type settings. They
should have been `face' but I'd used `facep'.

2002-05-22 12:33 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Statements, directives and commands were
being highlighted when they were part of a string. Fixed.

2002-05-22 12:02 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-keyword-face): Added.
(xbase-directive-face): Added.
(xbase-command-face): Added.
(xbase-string-face): Added.
(xbase-mode): Put font lock support for strings back in. Used the
above variables to control which faces are used for the various
font locking rules. Made full use of `regexp-opt' by getting it to
place the word markers in the resulting regular expression.
(xbase-font-lock-directives): Removed the preceeding "#" from each
entry in the list.
(xbase-mode): Added the "#" to the start of the use of
`xbase-font-lock-directives' when setting up the font lock rules.

2002-05-22 10:55 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-some-statement-indentation): Modified to handle
cases where there is nothing to match to. Now, when there is
nothing to be matched for finding the previous indentation level
the current level is used.

2002-05-22 10:47 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-rules): STATIC/INIT/EXIT functions and
procedures are now catered for.

2002-05-22 10:18 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-font-lock-commands): Added.
(xbase-mode): Changed value of `font-lock-defaults' to use the above.

2002-05-22 10:16 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-font-lock-keywords): Renamed to `xbase-font-lock-statements'.
(xbase-mode): Changed value of `font-lock-defaults' to use the above.

2002-05-22 10:11 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-calculate-offset): Removed.
(xbase-calculate-indent-with-offset): Added. This replaces
`xbase-calculate-offset'. The main difference is that a specific
column value is now supported as an "offset". This means that the
likes of TEXT/ENDTEXT can support having the intervening text at
column zero.
(xbase-some-statement-indentation): Added.
(xbase-previous-opening-statement-indentation) Changed to use the
above.
(xbase-previous-opening/interim-statement-indentation): Changed to
use the above.
(xbase-indent-level): Changed to use
`xbase-calculate-indent-with-offset'.
(xbase-indent-rules): Added TEXT/ENDTEXT support.

2002-05-22 09:04 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el: Major re-working of indentation code and font lock
code.

2002-05-20 17:50 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Removed `make-local-variable' declaration
for `xbase-indent-level', no such buffer local variable is
required.

2002-05-20 16:12 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Made sure that `indent-line-function' is
a buffer local variable before setting it to `xbase-indent-line'.

2002-05-20 14:39 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el: Renamed symbols using "select" in their name to
"do-case".

2002-05-20 10:13 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Changed `mode-name' from "xBase" to
"Xbase".

2002-05-20 10:09 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-label-regexp): Removed.

2002-05-20 10:08 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-*-regexp): Made all lower case.
(xbase-indent-level): Bind `case-fold-search' to t so that regular
expression matches are case insensitive.

2002-05-18 12:03 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-indent-level): Removed code that saved `point'
it wasn't necessary because `save-excursion' is being used.

2002-05-18 11:39 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Added autoload marker.

2002-05-18 11:38 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-mode): Actually use `xbase-mode-map'.
Set all values in one `setq'.

2002-05-18 11:37 UTC+0100 Dave Pearson <davep@davep.org>

* xbase.el (xbase-case-regexp): Added "otherwise".
Something went wrong with that request. Please try again.