unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs/lisp/org org.el ChangeLog
       [not found] <E1MhPCj-0000qh-TC@cvs.savannah.gnu.org>
@ 2009-09-01  6:49 ` Carsten Dominik
  2009-09-01 16:17   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-09-01  6:49 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs developers

Hi Stefan,

On Aug 29, 2009, at 4:46 PM, Stefan Monnier wrote:

> CVSROOT:	/sources/emacs
> Module name:	emacs
> Changes by:	Stefan Monnier <monnier>	09/08/29 14:46:57
>
> Modified files:
> 	lisp/org       : org.el ChangeLog
>
> Log message:
> 	Misc minor typos and comments.
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/org/org.el?cvsroot=emacs&r1=1.49&r2=1.50
> http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/org/ChangeLog?cvsroot=emacs&r1=1.77&r2=1.78
>
> Patches:
> Index: org.el
> ===================================================================
> RCS file: /sources/emacs/emacs/lisp/org/org.el,v
> retrieving revision 1.49
> retrieving revision 1.50
> diff -u -b -r1.49 -r1.50
> --- org.el	6 Aug 2009 09:14:14 -0000	1.49
> +++ org.el	29 Aug 2009 14:46:56 -0000	1.50
> @@ -13508,7 +13508,9 @@
> 	(while (setq b (find-buffer-visiting f)) (kill-buffer b))
> 	(with-temp-file f
> 	  (insert (mapconcat 'identity list "\n") "\n")))
> -    (let ((org-mode-hook nil) (default-major-mode 'fundamental-mode))
> +    (let ((org-mode-hook nil)
> +          ;; FIXME: What is this for??  --Stef
> +          (default-major-mode 'fundamental-mode))
>      (setq org-agenda-files list)
>      (customize-save-variable 'org-agenda-files org-agenda-files))))

I have trouble to remember, but I believe it was this:

I have my default-major-mode set to `org-mode'.

In the function where you placed your comment, I am calling
customize-save-variable.  IIRC, it happened to me that my custom
file did not have a .el extension, and that, when the custom file
was visited in order to write the modified variable, org-mode
was selected for that file and messed it up, somehow.

I don't know if this could still happen, but I believe
this was the issue, and to be safe I scoped a the default
value for default-major-mode into that call.

What do you want me to do about it?  Remove it and hope for the
best, or explain it in a commentary?

- Carsten

>
>
> Index: ChangeLog
> ===================================================================
> RCS file: /sources/emacs/emacs/lisp/org/ChangeLog,v
> retrieving revision 1.77
> retrieving revision 1.78
> diff -u -b -r1.77 -r1.78
> --- ChangeLog	28 Aug 2009 17:02:54 -0000	1.77
> +++ ChangeLog	29 Aug 2009 14:46:57 -0000	1.78
> @@ -45,7 +45,7 @@
> 	* org.el (org-ido-completing-read): Accept straight lists for
> 	completion as well as alists.
>
> -	* org-timer.el (org-timer-cancel-timers): Renamed from
> +	* org-timer.el (org-timer-cancel-timers): Rename from
> 	`org-timer-cancel-timers'.
>
> 	* org.el (org-cycle-internal-local): Fix problem with finding next
> @@ -772,7 +772,7 @@
>
> 2009-08-06  Carsten Dominik  <carsten.dominik@gmail.com>
>
> -	* org-exp.el (org-export-replace-src-segments-and-examples): FInd
> +	* org-exp.el (org-export-replace-src-segments-and-examples): Find
> 	indented blocks.
> 	(org-export-format-source-code-or-example): Fix indentation of
> 	blocks.
> @@ -868,7 +868,7 @@
> 	dependent.
>
> 	* org.el (org-hierarchical-todo-statistics): New option.
> -	(org-update-parent-todo-statistics): Modified to handle recursive
> +	(org-update-parent-todo-statistics): Modify to handle recursive
> 	statistics.
>
> 2009-08-06  Carsten Dominik  <carsten.dominik@gmail.com>
> @@ -1020,7 +1020,7 @@
> 	(org-export-normalize-links): Do not protect the description if it
> 	is explicitly given.
>
> -	* org-list.el (org-reset-checkbox-state-subtree): Moved here from
> +	* org-list.el (org-reset-checkbox-state-subtree): Move here from
> 	org-checklist.el.
> 	(org-reset-checkbox-state-subtree): Call
> 	`org-reset-checkbox-state-subtree'.
> @@ -1306,7 +1306,7 @@
> 	* org-agenda.el (org-agenda-get-progress): Fix regexp bug.
>
> 	* org.el (org-block-todo-from-children-or-siblings-or-parent):
> -	Renamed from org-block-todo-from-children-or-siblings, and
> +	Rename from org-block-todo-from-children-or-siblings, and
> 	enhanced to look for the parent's status as well.
>
> 	* org-agenda.el (org-agenda-log-mode-add-notes): New option.
> @@ -1547,7 +1547,7 @@
> 	* org-latex.el (org-export-latex-preprocess): Implement the
> 	centering markup.
>
> -	* org-exp.el (org-export-mark-blockquote-verse-center): Renamed
> +	* org-exp.el (org-export-mark-blockquote-verse-center): Rename
> 	from `org-export-mark-blockquote-and-verse'.
> 	(org-export-as-html): Implement the centering markup.
>
> @@ -1709,7 +1709,7 @@
>
> 	* org-agenda.el (org-agenda-fontify-priorities): New default value
> 	`cookies'.
> -	(org-agenda-fontify-priorities): Renamed from
> +	(org-agenda-fontify-priorities): Rename from
> 	org-fontify-priorities.
>
> 	* org.el (org-set-font-lock-defaults): Call
> @@ -1725,7 +1725,7 @@
> 	(org-export-html-validation-link): New variable.
> 	(org-export-as-html): Add validation link to exported page.
>
> -	* org.el (org-match-sparse-tree): Renamed from
> +	* org.el (org-match-sparse-tree): Rename from
> 	`org-tags-sparse-tree'.
> 	(org-tags-sparse-tree): New alias.
>
> @@ -2021,7 +2021,7 @@
>
> 	* org.el (org-todo): Return correct state type even if the blocker
> 	throws an error.
> -	(org-modifier-cursor-error): Renamed from
> +	(org-modifier-cursor-error): Rename from
> 	`org-shiftcursor-error'.
> 	(org-shiftmetaleft, org-shiftmetaright, org-shiftmetaup)
> 	(org-shiftmetadown): Call `org-modifier-cursor-error'.
> @@ -2134,14 +2134,14 @@
> 	* org-exp.el (org-get-current-options): Include the option for
> 	publishing time stamps.
>
> -	* org.el (org-toggle-heading): Renamed from
> +	* org.el (org-toggle-heading): Rename from
> 	`org-toggel-region-headings'.
> 	No longer needs a region defined, but will use it if there is one.
> -	(org-ctrl-c-star): Simplified, relying more on the internal
> +	(org-ctrl-c-star): Simplify, relying more on the internal
> 	workings of `org-toggle-heading'.
> -	(org-toggle-item): Renamed from `org-toggle-region-items'.
> +	(org-toggle-item): Rename from `org-toggle-region-items'.
> 	No longer needs a region defined, but will use it if there is one.
> -	(org-ctrl-c-minus): Simplified, relying more on the inernal
> +	(org-ctrl-c-minus): Simplify, relying more on the inernal
> 	workings of `org-toggle-item'.
>
> 	* org-export-latex.el (org-export-latex-preprocess): Fix bug in
> @@ -2292,12 +2292,12 @@
>
> 	* org-timer.el (org-timer-mode-line-string): New variable.
>
> -	* org-clock.el (org-clock-mode-line-map): Renamed from
> +	* org-clock.el (org-clock-mode-line-map): Rename from
> 	`org-clock-mode-map'.
> -	(org-clock-mode-line-timer): Renamed from `org-mode-line-timer'.
> -	(org-clock-update-mode-line): Renamed from `org-update-mode-line'.
> -	(org-clock-put-overlay): Renamed from `org-put-clock-overlay'.
> -	(org-clock-remove-overlays): Renamed from
> +	(org-clock-mode-line-timer): Rename from `org-mode-line-timer'.
> +	(org-clock-update-mode-line): Rename from `org-update-mode-line'.
> +	(org-clock-put-overlay): Rename from `org-put-clock-overlay'.
> +	(org-clock-remove-overlays): Rename from
> 	`org-remove-clock-overlays'.
>
> 	* org-timer.el (org-timer-pause-or-continue): Implement stopping
> @@ -2426,7 +2426,7 @@
>
> 	* org-exp.el (org-export-preprocess-string): Call
> 	`org-export-protect-colon-examples'.
> -	(org-export-protect-colon-examples): Renamed from
> +	(org-export-protect-colon-examples): Rename from
> 	`org-export-protect-examples', and scope limited to lines starting
> 	with a colon.
>
> @@ -2482,9 +2482,9 @@
> 	No longer call `org-export-protect-examples'.
> 	(org-export-target-internal-links): Take care of coderef targets.
> 	(org-export-last-code-line-counter-value): New variable.
> -	(org-export-replace-src-segments-and-examples): Renamed from
> +	(org-export-replace-src-segments-and-examples): Rename from
> 	`org-export-replace-src-segments', and modified.
> -	(org-export-format-source-code-or-example): Renamed from
> +	(org-export-format-source-code-or-example): Rename from
> 	`org-export-format-source-code'.
> 	(org-export-number-lines): New function.
> 	(org-export-as-ascii, org-export-as-html): Handle coderef links.
> @@ -2713,12 +2713,12 @@
> 	* org-agenda.el (org-agenda-goto-calendar): Remove duplicate let
> 	bindings of calendar variables.
>
> -	* org-table.el (org-table-find-row-type): Renamed from
> +	* org-table.el (org-table-find-row-type): Rename from
> 	`org-find-row-type'.
> -	(org-table-rewrite-old-row-references): Renamed from
> +	(org-table-rewrite-old-row-references): Rename from
> 	`org-rewrite-old-row-references'.
> -	(org-table-shift-refpart): Renamed from `org-shift-refpart'.
> -	(org-table-cleanup-narrow-column-properties): Renamed from
> +	(org-table-shift-refpart): Rename from `org-shift-refpart'.
> +	(org-table-cleanup-narrow-column-properties): Rename from
> 	`org-cleanup-narrow-column-properties'.
>
> 2008-12-07  Carsten Dominik  <carsten.dominik@gmail.com>
> @@ -3154,7 +3154,7 @@
> 	* org-attach.el (org-attach-expand-link, org-attach-expand): New
> 	functions.
>
> -	* org-agenda.el (org-agenda-get-progress): Renamed from
> +	* org-agenda.el (org-agenda-get-progress): Rename from
> 	`org-get-closed'.  Implement searching for state changes as well.
> 	(org-agenda-log-mode-items): New option.
> 	(org-agenda-log-mode): New option prefix argument, interpreted as
> @@ -3383,12 +3383,12 @@
>
> 2008-10-26  Bastien Guerry  <bzg@altern.org>
>
> -	* org-export-latex.el (org-export-latex-classes): Added
> +	* org-export-latex.el (org-export-latex-classes): Add
> 	\usepackage{graphicx} to the default list of packages.
>
> 2008-10-26  Carsten Dominik  <dominik@science.uva.nl>
>
> -	* org-agenda.el (org-agenda-filter): Renamed from
> +	* org-agenda.el (org-agenda-filter): Rename from
> 	`org-agenda-filter-tags'.
>
> 2008-10-26  Carsten Dominik  <dominik@science.uva.nl>
> @@ -3501,7 +3501,7 @@
> 	modifications, to make sure links are prepared before the LaTeX
> 	conversions do happen.
>
> -	* org-attach.el (org-attach-delete-all): Renamed from
> +	* org-attach.el (org-attach-delete-all): Rename from
> 	`org-attch-delete'.  Add a security query before deleting the
> 	entire directory.  New optional argument FORCE can overrule the
> 	security query.
> @@ -3577,14 +3577,14 @@
>
> 	* org-id.el (org-id-int-to-b36-one-digit)
> 	(org-id-b36-to-int-one-digit, org-id-int-to-b36)
> -	(org-id-b36-to-int, org-id-time-to-b36): Modified from b62 to
> +	(org-id-b36-to-int, org-id-time-to-b36): Modify from b62 to
> 	b36.
>
> 	* org-id.el (org-id-reverse-string): New function.
> 	(org-id-new): Use `org-id-reverse-string' to make sure the
> 	beginning chars of the ID are mutating fast.  This allows to use a
> 	directory structure to spread things better.
> -	(org-id-prefix): Changed default to nil.
> +	(org-id-prefix): Change default to nil.
>
> 	* org-list.el (org-move-item-down, org-move-item-up): Remember and
> 	restore the column of the cursor position.
> @@ -3788,7 +3788,7 @@
>
> 2008-10-12  Bastien Guerry  <bzg@altern.org>
>
> -	* org.el (org-additional-option-like-keywords): Added keywords for
> +	* org.el (org-additional-option-like-keywords): Add keywords for
> 	the _QUOTE, _VERSE and _SRC environments.
>
> 	* org-export-latex.el (org-export-latex-preprocess): Fix bug when
> @@ -3834,7 +3834,7 @@
> 	* org-gnus.el (org-gnus-store-link): Support for :to information
> 	in gnus links.
>
> -	* org-exp.el (org-export-as-html): Fixed typo in creator
> +	* org-exp.el (org-export-as-html): Fix typo in creator
> 	information.
> 	(org-export-protect-examples): New parameter indent.  Insert extra
> 	spaces only when this parameter is specified.
> @@ -3845,7 +3845,7 @@
> 	(org-remember-apply-template): Allow the file component to be a
> 	function.
>
> -	* org.el (org-goto-local-search-headings): Renamed from
> +	* org.el (org-goto-local-search-headings): Rename from
> 	`org-goto-local-search-forward-headings'.  Added the possibility
> 	to search backwards.
>
> @@ -3948,10 +3948,10 @@
> 	* org.el (org-narrow-to-subtree): Do not include the final newline
> 	into the narrowed region.
>
> -	* org-agenda.el (org-agenda-custom-commands-local-options): Fixed
> +	* org-agenda.el (org-agenda-custom-commands-local-options): Fix
> 	bug with user-define skipping condition.
>
> -	* org-agenda.el (org-agenda-get-restriction-and-command): Fixed  
> typo.
> +	* org-agenda.el (org-agenda-get-restriction-and-command): Fix typo.
>
> 	* org-exp.el (org-export-html-style-default): Automatic overflow
> 	handling for pre fields.
> @@ -4129,7 +4129,7 @@
> 	text property, so that the agenda knows where this entry comes
> 	from.
>
> -	* org-agenda.el (org-agenda-clock-in): Fixed bug in the
> +	* org-agenda.el (org-agenda-clock-in): Fix bug in the
> 	interaction between clocking-in from the agenda, and  automatic
> 	task state switching.
>
> @@ -4200,7 +4200,7 @@
> 	(org-columns-cleanup-item): Call `org-columns-compact-links'.
> 	(org-columns-display-here): Call `org-agenda-columns-cleanup-item'
> 	when in agenda.
> -	(org-columns-edit-value): Fixed bug with editing values from
> +	(org-columns-edit-value): Fix bug with editing values from
> 	agenda column view.
> 	(org-columns-redo): Also redo the agenda itself.
>
> @@ -4211,7 +4211,7 @@
>
> 	* org-colview.el (org-agenda-columns-cleanup-item): New function.
>
> -	* org-exp.el (org-export-ascii-preprocess): Renamed from
> +	* org-exp.el (org-export-ascii-preprocess): Rename from
> 	`org-export-ascii-clean-string'.
> 	(org-export-kill-licensed-text)
> 	(org-export-define-heading-targets)
> @@ -4239,7 +4239,7 @@
> 	* org-archive.el (org-archive-save-context-info): Fix bugs in
> 	customization setup and docstring.
>
> -	* org-exp.el (org-export-html-style): Changed the size of in the
> +	* org-exp.el (org-export-html-style): Change the size of in the
> 	<pre> element to 90%.
>
> 2008-06-17  Carsten Dominik  <dominik@science.uva.nl>
> @@ -4279,8 +4279,7 @@
>
> 	* org-exp.el (org-export-get-title-from-subtree)
> 	(org-export-as-ascii, org-export-as-html): Make sure the original
> -	region-beginning and region-end are used, even after moving
> -	point.
> +	region-beginning and region-end are used, even after moving point.
> 	(org-export-get-title-from-subtree): Also try the EXPORT_TITLE
> 	property.
>
> @@ -4293,12 +4292,11 @@
>
> 2008-06-17  Carsten Dominik  <dominik@science.uva.nl>
>
> -	* org.el (org-file-properties): Renamed from `org-local-properties'.
> +	* org.el (org-file-properties): Rename from `org-local-properties'.
> 	(org-scan-tags): Take file tags into account.
> 	(org-tags-match-list-sublevels): Default changed to t.
>
> -	* org-exp.el (org-export-as-html): Close paragraph after a
> -	footnote.
> +	* org-exp.el (org-export-as-html): Close paragraph after a footnote.
>
> 	* org.el (org-update-parent-todo-statistics): New function.
>
> @@ -4345,8 +4343,7 @@
> 2008-06-17  Carsten Dominik  <dominik@science.uva.nl>
>
> 	* org-exp.el (org-print-icalendar-entries): Make sure DTEND is
> -	shifted by one day if there is a date range without an end
> -	time.
> +	shifted by one day if there is a date range without an end time.
>
> 	* org.el (org-try-structure-completion): New function.
>
> @@ -4445,8 +4442,8 @@
>
> 2008-06-17  Bastien Guerry  <bzg@altern.org>
>
> -	* org-export-latex.el (org-export-latex-preprocess): Added
> -	support for blockquotes.
> +	* org-export-latex.el (org-export-latex-preprocess):
> +	Add support for blockquotes.
>
> 2008-06-17  Carsten Dominik  <dominik@science.uva.nl>
>
> @@ -4529,8 +4526,7 @@
> 2008-06-17  Carsten Dominik  <dominik@science.uva.nl>
>
> 	* org-exp.el (org-export-preprocess-hook): New hook.
> -	(org-export-preprocess-string): Call
> -	`org-export-preprocess-hook'.
> +	(org-export-preprocess-string): Call `org-export-preprocess-hook'.
>
> 	* org.el (org-font-lock-hook): New variable.
> 	(org-font-lock-hook): New function.
>
>
> _______________________________________________
> Emacs-diffs mailing list
> Emacs-diffs@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-diffs
>





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs/lisp/org org.el ChangeLog
  2009-09-01  6:49 ` [Emacs-diffs] emacs/lisp/org org.el ChangeLog Carsten Dominik
@ 2009-09-01 16:17   ` Stefan Monnier
  2009-09-02  9:32     ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-09-01 16:17 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs developers

> I have my default-major-mode set to `org-mode'.

> In the function where you placed your comment, I am calling
> customize-save-variable.  IIRC, it happened to me that my custom
> file did not have a .el extension, and that, when the custom file
> was visited in order to write the modified variable, org-mode
> was selected for that file and messed it up, somehow.

> I don't know if this could still happen, but I believe
> this was the issue, and to be safe I scoped a the default
> value for default-major-mode into that call.

> What do you want me to do about it?

Report a bug for it.

> Remove it and hope for the best, or explain it in a commentary?

I don't have any strong opinion on it (other than the fact that
default-major-mode should be replaced by (default-value 'major-mode),
which is a bit more troublesome in let), but if you keep it, then please
add a comment explaining that it's a workaround for a bug in cutomize
(or somesuch).


        Stefan




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs/lisp/org org.el ChangeLog
  2009-09-01 16:17   ` Stefan Monnier
@ 2009-09-02  9:32     ` Carsten Dominik
  0 siblings, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2009-09-02  9:32 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs developers


On Sep 1, 2009, at 6:17 PM, Stefan Monnier wrote:

>> I have my default-major-mode set to `org-mode'.
>
>> In the function where you placed your comment, I am calling
>> customize-save-variable.  IIRC, it happened to me that my custom
>> file did not have a .el extension, and that, when the custom file
>> was visited in order to write the modified variable, org-mode
>> was selected for that file and messed it up, somehow.
>
>> I don't know if this could still happen, but I believe
>> this was the issue, and to be safe I scoped a the default
>> value for default-major-mode into that call.
>
>> What do you want me to do about it?
>
> Report a bug for it.

I will, if that happens to me again.

>
>> Remove it and hope for the best, or explain it in a commentary?
>
> I don't have any strong opinion on it (other than the fact that
> default-major-mode should be replaced by (default-value 'major-mode),
> which is a bit more troublesome in let), but if you keep it, then  
> please
> add a comment explaining that it's a workaround for a bug in cutomize
> (or somesuch).

OK, I got rid of this in my development version, and I will push my
changes to Emacs soon.

- Carsten


>
>
>        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-02  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1MhPCj-0000qh-TC@cvs.savannah.gnu.org>
2009-09-01  6:49 ` [Emacs-diffs] emacs/lisp/org org.el ChangeLog Carsten Dominik
2009-09-01 16:17   ` Stefan Monnier
2009-09-02  9:32     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).