aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJim Blandy1993-01-26 01:58:16 +0000
committerJim Blandy1993-01-26 01:58:16 +0000
commitdbc4e1c12940079cad7b24e1654a0badcda8d6fc (patch)
treee0fbea5b15bd13d2839c8b59b624cec80f31bfd8 /lisp/progmodes
parent72766144811cd7258b2a59e56f6e3657537ea508 (diff)
downloademacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.tar.gz
emacs-dbc4e1c12940079cad7b24e1654a0badcda8d6fc.zip
JimB's changes since January 18th
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/c-mode.el10
-rw-r--r--lisp/progmodes/fortran.el6
-rw-r--r--lisp/progmodes/simula.el2
3 files changed, 10 insertions, 8 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el
index 7bdfbdf8031..b39182f02af 100644
--- a/lisp/progmodes/c-mode.el
+++ b/lisp/progmodes/c-mode.el
@@ -322,11 +322,13 @@ preserving the comment indentation or line-starting decorations."
322 (paragraph-start 322 (paragraph-start
323 ;; Lines containing just a comment start or just an end 323 ;; Lines containing just a comment start or just an end
324 ;; should not be filled into paragraphs they are next to. 324 ;; should not be filled into paragraphs they are next to.
325 (concat paragraph-start 325 (concat
326 "\\|^[ \t]*/\\*[ \t]*$\\|^[ \t]*\\*/[ \t]*$\\|^[^ \t/*]")) 326 paragraph-start
327 "\\|^[ \t]*/\\*[ \t]*$\\|^[ \t]*\\*/[ \t]*$\\|^[ \t/*]*$"))
327 (paragraph-separate 328 (paragraph-separate
328 (concat paragraph-separate 329 (concat
329 "\\|^[ \t]*/\\*[ \t]*$\\|^[ \t]*\\*/[ \t]*$\\|^[^ \t/*]")) 330 paragraph-separate
331 "\\|^[ \t]*/\\*[ \t]*$\\|^[ \t]*\\*/[ \t]*$\\|^[ \t/*]*$"))
330 (chars-to-delete 0)) 332 (chars-to-delete 0))
331 (save-restriction 333 (save-restriction
332 ;; Don't fill the comment together with the code following it. 334 ;; Don't fill the comment together with the code following it.
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 96addc99e42..5a0aa4511f8 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -39,7 +39,7 @@
39;;; This file may be used with GNU Emacs version 18.xx if the following 39;;; This file may be used with GNU Emacs version 18.xx if the following
40;;; variable and function substutions are made. 40;;; variable and function substutions are made.
41;;; Replace: 41;;; Replace:
42;;; unread-command-event with unread-command-char 42;;; unread-command-events with unread-command-char
43;;; frame-width with screen-width 43;;; frame-width with screen-width
44;;; auto-fill-function with auto-fill-hook 44;;; auto-fill-function with auto-fill-hook
45 45
@@ -469,7 +469,7 @@ Any other key combination is executed normally."
469 (if (or (= (setq c (read-char)) ??) ;insert char if not equal to `?' 469 (if (or (= (setq c (read-char)) ??) ;insert char if not equal to `?'
470 (= c help-char)) 470 (= c help-char))
471 (fortran-abbrev-help) 471 (fortran-abbrev-help)
472 (setq unread-command-event c)))) 472 (setq unread-command-events (list c)))))
473 473
474(defun fortran-abbrev-help () 474(defun fortran-abbrev-help ()
475 "List the currently defined abbrevs in Fortran mode." 475 "List the currently defined abbrevs in Fortran mode."
@@ -535,7 +535,7 @@ See also `fortran-window-create'."
535 (progn (message "Type SPC to continue editing.") 535 (progn (message "Type SPC to continue editing.")
536 (let ((char (read-char))) 536 (let ((char (read-char)))
537 (or (equal char (string-to-char " ")) 537 (or (equal char (string-to-char " "))
538 (setq unread-command-event char)))))) 538 (setq unread-command-events (list char)))))))
539 (fortran-window-create))) 539 (fortran-window-create)))
540 540
541(defun fortran-split-line () 541(defun fortran-split-line ()
diff --git a/lisp/progmodes/simula.el b/lisp/progmodes/simula.el
index 4873ce1a1dc..7649c0ca048 100644
--- a/lisp/progmodes/simula.el
+++ b/lisp/progmodes/simula.el
@@ -401,7 +401,7 @@ The relative indentation among the lines of the statement are preserved."
401 (case-fold-search t) 401 (case-fold-search t)
402 ;; don't mix a label with an assignment operator := :- 402 ;; don't mix a label with an assignment operator := :-
403 ;; therefore look at next typed character... 403 ;; therefore look at next typed character...
404 (next-char (setq unread-command-event (read-char))) 404 (next-char (setq unread-command-events (list (read-char))))
405 (com-char last-command-char)) 405 (com-char last-command-char))
406 (unwind-protect 406 (unwind-protect
407 ;; Problem: find out if character just read is a command char 407 ;; Problem: find out if character just read is a command char