[m-rev.] diff: doc fixes

Markus Triska markus.triska at gmx.at
Wed Apr 11 07:04:57 AEST 2007


These patches:

 *) adapt the argument order of list.filter in the reference manual

 *) add a dot after each file name in the info menu. In particular,
    Emacs's info viewer (C-h i) needs them.

 *) change the installation instructions to use add-to-list, and
    remove unnecessary calls to expand-file-name


*** reference_manual.texi	04 Apr 2007 06:38:49 +0200	1.390
--- reference_manual.texi	10 Apr 2007 20:07:58 +0200	
***************
*** 4126,4146 ****
  For example, instead of
  
  @example
! list.filter([1,2,3], \=(2), List)
  @end example
  
  @noindent
  you must write either
  
  @example
! list.filter([1,2,3], (pred(X::in) is semidet :- X \= 2), List)
  @end example
  
  @noindent
  or
  
  @example
! list.filter([1,2,3], not_equal(2), List)
  @end example
  
  @noindent
--- 4126,4146 ----
  For example, instead of
  
  @example
! list.filter(\=(2), [1,2,3], List)
  @end example
  
  @noindent
  you must write either
  
  @example
! list.filter((pred(X::in) is semidet :- X \= 2), [1,2,3], List)
  @end example
  
  @noindent
  or
  
  @example
! list.filter(not_equal(2), [1,2,3], List)
  @end example
  
  @noindent
*** mercury.info.in	07 Sep 2006 10:32:19 +0200	1.3
--- mercury.info.in	10 Apr 2007 22:27:24 +0200	
***************
*** 12,22 ****
  
  * Menu:
  
! * Language Reference Manual: (mercury_ref)
! * User's Guide: (mercury_user_guide)
! * Library Reference Manual: (mercury_library)
! * Prolog to Mercury Transition Guide: (mercury_trans_guide)
! * Frequently Asked Questions: (mercury_faq)
  
  See also the Mercury WWW home page <http://www.mercury.csse.unimelb.edu.au>.
  
--- 12,22 ----
  
  * Menu:
  
! * Language Reference Manual: (mercury_ref).
! * User's Guide: (mercury_user_guide).
! * Library Reference Manual: (mercury_library).
! * Prolog to Mercury Transition Guide: (mercury_trans_guide).
! * Frequently Asked Questions: (mercury_faq).
  
  See also the Mercury WWW home page <http://www.mercury.csse.unimelb.edu.au>.

*** Mmakefile	10 Jan 2007 10:00:40 +0100	1.119
--- Mmakefile	10 Apr 2007 19:59:01 +0200	
***************
*** 494,501 ****
  	fi
  	@echo "-- and to add the following lines to the \`.emacs' file"
  	@echo "-- in your home directory:"
! 	@echo "	(setq load-path (cons (expand-file-name "
! 	@echo "		\"$(INSTALL_ELISP_DIR)\") load-path))"
  	@echo "	(autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)"
  
  .PHONY: install_main
--- 494,501 ----
  	fi
  	@echo "-- and to add the following lines to the \`.emacs' file"
  	@echo "-- in your home directory:"
! 	@echo "	(add-to-list 'load-path "
! 	@echo "		\"$(INSTALL_ELISP_DIR)\")"
  	@echo "	(autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)"
  
  .PHONY: install_main
*** bindist.Makefile.in	26 Apr 2006 07:43:41 +0200	1.34
--- bindist.Makefile.in	10 Apr 2007 19:58:42 +0200	
***************
*** 70,77 ****
  	@echo "-- and $(INSTALL_INFODIR) to your INFOPATH,"
  	@echo "-- and to add the following lines to the \`.emacs' file"
  	@echo "-- in your home directory:"
! 	@echo "	(setq load-path (cons (expand-file-name "
! 	@echo "		\"$(INSTALL_ELISP_DIR)\") load-path))"
  	@echo "	(autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)"
  
  .PHONY: install_bin
--- 70,77 ----
  	@echo "-- and $(INSTALL_INFODIR) to your INFOPATH,"
  	@echo "-- and to add the following lines to the \`.emacs' file"
  	@echo "-- in your home directory:"
! 	@echo "	(add-to-list 'load-path "
! 	@echo "		\"$(INSTALL_ELISP_DIR)\")"
  	@echo "	(autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)"
  
  .PHONY: install_bin

*** .INSTALL.in	29 Sep 2005 10:38:03 +0200	1.12
--- .INSTALL.in	10 Apr 2007 20:03:36 +0200	
***************
*** 88,95 ****
  #	   To use the emacs debugger interface ("M-x mdb"), you also need to
  #	   add the following lines to the `.emacs' file in your home directory:
  #
! #	   	(setq load-path (cons (expand-file-name
! #		  "/usr/local/mercury- at VERSION@/lib/mercury/elisp") load-path))
  #		(autoload 'mdb "gud" "Invoke the Mercury debugger" t)
  #
  # Step 5.  Run `make clean'.
--- 88,95 ----
  #	   To use the emacs debugger interface ("M-x mdb"), you also need to
  #	   add the following lines to the `.emacs' file in your home directory:
  #
! #	   	(add-to-list 'load-path
! #		  "/usr/local/mercury- at VERSION@/lib/mercury/elisp")
  #		(autoload 'mdb "gud" "Invoke the Mercury debugger" t)
  #
  # Step 5.  Run `make clean'.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list